Re: [Nagios-users] How to find active check status for a service?

2010-07-15 Thread Ton Voon

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@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


Re: [Nagios-users] How to find active check status for a service?

2010-07-15 Thread Paul M. Dubuc
Holger Weiß wrote:
> * Paul M. Dubuc  [2010-07-15 17:08]:
>> 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.
>
> You could parse the status file, see
>
> ftp://ftp.in-berlin.de/pub/users/weiss/nagios/tools/disabled-notifications
>
> for an example.

Thanks!  Using MK Livestatus 
(http://mathias-kettner.de/checkmk_livestatus.html) is also a possibility.

Paul Dubuc

--
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@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


Re: [Nagios-users] How to find active check status for a service?

2010-07-15 Thread Holger Weiß
* Paul M. Dubuc  [2010-07-15 17:08]:
> 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.

You could parse the status file, see

ftp://ftp.in-berlin.de/pub/users/weiss/nagios/tools/disabled-notifications

for an example.

Holger

--
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@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


[Nagios-users] How to find active check status for a service?

2010-07-15 Thread Paul M. Dubuc
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.

Thanks,
Paul Dubuc

--
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@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