Commit graph

4 commits

Author SHA1 Message Date
Adam Williamson
8286b8f6c8 Port check_nagios_notifications.py to Python 3
Saw from one of the emails this morning that this isn't running
because there's no python2 on whatever system it was trying to
run on. This ports it to Python 3 (thanks, 2to3) and cleans up
the formatting (thanks, black). I tested it with a random sample
file I found lying around the internet -
https://github.com/bahamas10/node-nagios-status-parser/blob/master/status.dat
and it seems to do what it's supposed to do.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-08-14 08:58:54 -07:00
Stephen Smoogen
68ddf2b343 all this nagios stuff assumes python2 which will not work on F30+ 2020-04-24 21:34:19 +02:00
Kevin Fenzi
fc15d5bf36 additional fix for new status.dat location in nagios 2017-03-14 16:00:37 +00:00
Stephen Smoogen
8cf72ff116 put in the first run at new nagios configs 2017-01-05 00:55:16 +00:00