Another status.cgi output filtering question

Marc Powell marc at ena.com
Wed Sep 16 16:02:56 CEST 2009


On Sep 16, 2009, at 7:50 AM, Tarak Patel wrote:

> Hi All,
>
> I was wondering if its possible to filter items from status.cgi  
> depending on check_period and/or notification_period. I am using  
> host=all&servicestatustypes=28&serviceprops=393258&hostprops=393258  
> as status.cgi options and it produces following filters:
>
> Host Properties: Not In Scheduled Downtime & Has Not Been  
> Acknowledged & Checks Enabled & Active Checks & In Hard State
> Service Status Types:All Problems
> Service Properties: Not In Scheduled Downtime & Has Not Been  
> Acknowledged & Active Checks Enabled & Active Checks & In Hard State
>
> I would like to display only checks that have check_period of 24x7  
> during non-working hours.

That level of filtering is not available. The available hostprops and  
serviceprops filtering values can be found in include/cgiutils.h in  
the section '/****************** HOST AND SERVICE FILTER PROPERTIES   
*******************/'. The values are additive. Your example --

Not In Scheduled Downtime & Has Not Been Acknowledged & Active Checks  
Enabled & Active Checks & In Hard State
2	+	8	+	32 	+ 	131072	+	262144	=	393258

--
Marc


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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