How to see active check and notifications state without GUI

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Chummerss
Posts: 2
Joined: Thu Jan 13, 2011 4:27 am

How to see active check and notifications state without GUI

Post 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...
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post 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.
Chummerss
Posts: 2
Joined: Thu Jan 13, 2011 4:27 am

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

Post 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,
Locked