Restarts resetting soft critical states

Andreas Ericsson ae at op5.se
Mon Nov 2 13:02:14 CET 2009


On 10/29/2009 08:50 PM, Frost, Mark {PBG} wrote:
> You think you know an application and every once in a while you get a surprise...
>
> Both the reporting server and the distributed node share the same attributes for retention and soft states:
>
> soft_state_dependencies=0
> passive_host_checks_are_soft=1
> retain_state_information=1
> use_retained_program_state=1
> use_retained_scheduling_info=1
> retained_host_attribute_mask=0
> retained_service_attribute_mask=0
> retained_process_host_attribute_mask=0
> retained_process_service_attribute_mask=0
> retained_contact_host_attribute_mask=0
> retained_contact_service_attribute_mask=0
>
> While I would assume the restarts would disrupt Nagios a bit what with
> having to do start-time tasks again, I would not have expected that it
>  would "start over" with the status of some checks.
>
> What am I missing here?
>

It seems you haven't grasped how bitmasks work. When you set the mask to 0,
you essentially tell it to not let anything through. Set them to -1, or
leave them at the default values and you'll get the kind of state retention
you want.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
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