Meh! I tried APIs and JsonQuery but it was all too complicated
In the end I did
grep -B39 problem_has_been_acknowledged=0 /usr/local/nagios/var/status.dat|grep -B14 current_state=1|grep host_name
Once per minute from cron and it works a treat
Search found 2 matches
- Tue Jan 03, 2017 10:49 am
- Forum: Open Source Nagios Projects
- Topic: Get overall status for Desktop
- Replies: 2
- Views: 647
- Sun Jan 01, 2017 10:39 am
- Forum: Open Source Nagios Projects
- Topic: Get overall status for Desktop
- Replies: 2
- Views: 647
Get overall status for Desktop
Hi All, Just upgraded from Nagios2 to Nagios4 so I can try the jsonquery but I can't get the answer I am looking for. I would like to grab (using curl I hope) a simple yes no answer to the question "Are there any unacknowledged host or service problems"? This will control the colour of the...