Nagios/Icinga2 check available

Hi, if someone is interested, I just wrote a first ckeck for nagios. It’s really simple, it just counts the jobs which are not in OK state (counting image and file check seperatly). If the count is above a threshold, it’s warning/critical. Defaults to critical if a single state isn’t OK.

Feel free to fork, suggest, test here:

p.s.: Just wrote it in half an hour with limited testing, so expect it running on Ubuntu with Python 3.5. May run on other systems, but not tested.


Example usage:
python3 -i localhost -u admin -p password