SCHEDULE_FORCED_HOST_SVC_CHECKS problem

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
mark.nesterovych
Posts: 6
Joined: Mon Sep 03, 2012 3:52 am

SCHEDULE_FORCED_HOST_SVC_CHECKS problem

Post 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 ?
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: SCHEDULE_FORCED_HOST_SVC_CHECKS problem

Post 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.
mark.nesterovych
Posts: 6
Joined: Mon Sep 03, 2012 3:52 am

Re: SCHEDULE_FORCED_HOST_SVC_CHECKS problem

Post 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.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: SCHEDULE_FORCED_HOST_SVC_CHECKS problem

Post 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
Locked