How to find active check status for a service?

Ton Voon tonvoon at gmail.com
Fri Jul 16 00:22:40 CEST 2010


On 15 Jul 2010, at 22:08, Paul M. Dubuc wrote:

> Is there some programmatic way to find out whether or not active  
> checks are
> enabled or disabled for a service in Nagios.   We have a requirement  
> for an
> audit to provide notifications for certain critical services that  
> may have
> their active checks disabled so they aren't left that way any longer  
> than
> necessary.

If you don't mind setting it global wide, you can use the  
retained_(host|service)_attribute_mask: http://nagios.sourceforge.net/docs/3_0/configmain.html

This was added by Ethan a few years back, inspired by some code we  
contributed from Opsview for our slave cluster failover logic, where  
we reset certain flags in the retained.dat file on a reload. This  
means you can strip the "active_checks_enabled" to always be based on  
the configuration file setting.

Ton


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list