Page 1 of 1

SCHEDULE_FORCED_HOST_SVC_CHECKS problem

Posted: Mon Sep 03, 2012 3:55 am
by mark.nesterovych
Hello.
We have a host with active and passive checks.
Looks like SCHEDULE_FORCED_HOST_SVC_CHECKS trigger all check for reschedule, both active and passive.
Check of passive service moving them to critical state.

Why SCHEDULE_FORCED_HOST_SVC_CHECKS schedule passive checks with active ?

Re: SCHEDULE_FORCED_HOST_SVC_CHECKS problem

Posted: Mon Sep 03, 2012 6:41 pm
by jsmurphy
Probably because there are legitimate reasons for wanting to force a passive check. Usually you would force a passive check because there was a problem... you have fixed it and you want to manually clear it to see if the problem still triggers. Whether this should still be the case when you are forcing all services would probably divide the floor.

If you perceive this as a problem for you and your environment then you could probably create a quick script that will take the current status and echo it back if the trigger time for the last event was less than x hours otherwise reset it to ok, then assign that as the check_command for your passive services.

Re: SCHEDULE_FORCED_HOST_SVC_CHECKS problem

Posted: Tue Sep 04, 2012 2:19 am
by mark.nesterovych
Got it.
Can you please advice if there is any command to schedule only active checks from particular host ?
If not, thinks such command can be helpful not only for me.

Thank you.

Re: SCHEDULE_FORCED_HOST_SVC_CHECKS problem

Posted: Tue Sep 04, 2012 5:05 pm
by jsmurphy
There's no existing command I am aware of to schedule only active services (which is why I suggested the script in my previous post)... you can make the suggestion to add it over in the ideas forum: http://support.nagios.com/forum/viewforum.php?f=20