zorkian / nagios-api

A REST-like, JSON interface to Nagios
BSD 3-Clause "New" or "Revised" License
587 stars 171 forks source link

Nagios4 #53

Open deathstone opened 10 years ago

deathstone commented 10 years ago

It is possible to use "NAGIOS-API" with Nagios 4 ?? The connection is done well, but no return of the check. thank you

xzhai1 commented 9 years ago

@deathstone, it works for me, you just to make sure you give it the right path to the cmd file and dat file. Use locate to find the absolute path to your nagios.cmd and status.dat -- for me they are /usr/local/nagios/var/rw/nagios.cmd and /usr/local/nagios/var/status.dat

tnniras commented 1 year ago

For me it's not working with NagiOS 4:

root@localhost:~/nagios-api# ./nagios-api -c /usr/local/nagios/var/rw/nagios.cm d -s /usr/local/nagios/var/status.dat File "./nagios-api", line 1021 except ValueError,e: ^