Page 1 of 1

How to see active check and notifications state without GUI

Posted: Thu Jan 13, 2011 4:37 am
by Chummerss
Hi Folks,

I would like to write a script to check if any notifications or active check have been disabled, we check around 600 hosts, and 2600 services, so going through all those would be a pain. I know I could look at the tactical overview, but I would like an email sent on a regular basis, with what hosts or services have had the checks or notifications disabled...

I would appreciate any help or pointers that anyone can give...

Thanks...

Re: How to see active check and notifications state without GUI

Posted: Thu Jan 13, 2011 10:11 am
by mguthrie
You could probably write a simple check plugin that scanned through the nagios/var/objects.cache file. This is a compilation of all of the full configurations for everything in Nagios. Also, you could check exchange.nagios.org and see if someone has already written something like this.

Re: How to see active check and notifications state without GUI

Posted: Sat Jan 15, 2011 3:10 pm
by Chummerss
Thanks for this, just what i have been searchng for!

I will look into the cache file, and let you know how i get on...


Cheers,