state dependency

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
tobi0812
Posts: 1
Joined: Fri Oct 19, 2012 8:25 am

state dependency

Post by tobi0812 »

Hi,
i have a host with several services. If i restart the host the services still have the state OK. I want them quickly to become unknown.
Can i write a little program which erases parts of a retention or status file which will be activatet by an eventhandler? Which files are that? Or is there a different way?
thank you-
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: state dependency

Post by jsmurphy »

in the nagios.cfg file you can tell it to not retain state information... this won't however set it to "unknown" it will set it to "pending..." like it does when you first add a host.

More info: http://nagios.sourceforge.net/docs/3_0/ ... nformation
Locked