Page 1 of 1

state dependency

Posted: Fri Oct 19, 2012 8:38 am
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-

Re: state dependency

Posted: Sun Oct 21, 2012 5:25 pm
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