Page 1 of 1
Passive Service SElf check
Posted: Wed Nov 22, 2017 6:01 am
by saleemthupsee
Hello,
I've noticed that on a passive check, if there are 2 ok status in sequence, the passive service does not process any event handler on the last Ok status received but registers it.
Is there a way to initiate a self check to trigger the event handler. I did one send custom notification it did trigger the event handlers. Is there a way that can be done in automatic ?
SAleem
Re: Passive Service SElf check
Posted: Wed Nov 22, 2017 11:54 am
by kyang
The event handler is triggered when there is a self-check? Is that correct?
Could you tell us what the event handler will do if the state is in OK.
Re: Passive Service SElf check
Posted: Thu Nov 23, 2017 3:11 am
by saleemthupsee
the event handler will update the status of another passive service. That displays the overall status of audio, video on channels flowing out of a broadcast facility. (In audio visual broadcast system, audio, video on a tv channel are depedant on serveral services/servers)
Re: Passive Service SElf check
Posted: Mon Nov 27, 2017 11:21 am
by kyang
If the passive check is OK, then you are wanting to recheck itself again through the event handler? Correct?
Is the status update somehow different every time a check is placed? Is that the reason for rechecking with an event handler?
How do you have this event handler set up? What macro's did you indicate for it to trigger on an OK state?
Re: Passive Service SElf check
Posted: Tue Nov 28, 2017 5:11 am
by saleemthupsee
If the passive check is OK, then you are wanting to recheck itself again through the event handler? Correct? - Thats correct !
Is the status update somehow different every time a check is placed? Is that the reason for rechecking with an event handler? - Yes because i want to update another passive service to indicate the real status - decorrelated from the service being monitored
How do you have this event handler set up? - event handler is setup through a script command and triggered through Manage service notification handler. Assigned through contact management
What macro's did you indicate for it to trigger on an OK state? The variable from $SErvicestate$
Re: Passive Service SElf check
Posted: Tue Nov 28, 2017 11:27 am
by kyang
I think the best solution to this is to use freshness checking on this passive check. Freshness checking will put the service into a critical state when no passive check has been received (you can set the timeframe). Then set the event handler to the service state "critical" to recheck for status when a check has not been triggered in x amount of time.
Starting on page 8, it talks about freshness checking and how to set it up.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf