Page 1 of 1

ACK other Services in same host when certain Service is ACKd

Posted: Fri Aug 03, 2018 11:34 am
by MrWoodward
Is there a way to setup a Service such that when it is ACK'd, all other alerting Services (at that time) on the same Host are automatically ACK'd with the same ACK message?

Re: ACK other Services in same host when certain Service is

Posted: Fri Aug 03, 2018 3:07 pm
by npolovenko
@MrWoodward, You could acknowledge all services at once with the use of the Mass Acknowledgment Component. That's the only way I could think off. Otherwise, you could come up with your own custom script using external commands:
https://old.nagios.org/developerinfo/ex ... ndlist.php

Re: ACK other Services in same host when certain Service is

Posted: Fri Aug 03, 2018 3:26 pm
by MrWoodward
Otherwise, you could come up with your own custom script using external commands
I think this is probably the correct answer for me.

Is there a way to trigger such a custom script to run when someone ACKs a service?

If not, I think I can integrate such code into the custom check plugin that I wrote. But I'd rather the script run on the ACK, rather than when it follows up on the next check.

Re: ACK other Services in same host when certain Service is

Posted: Fri Aug 03, 2018 4:48 pm
by npolovenko
@MrWoodward, I don't think you can trigger a script on a service acknowledgment without modifying the sourcecode.

Re: ACK other Services in same host when certain Service is

Posted: Mon Aug 06, 2018 12:08 pm
by MrWoodward
Ok, thanks for the help. I think I know how to accomplish what I'm trying to do.

Re: ACK other Services in same host when certain Service is

Posted: Mon Aug 06, 2018 12:57 pm
by lmiltchev
Sounds good! Is it OK if we lock this thread?

Re: ACK other Services in same host when certain Service is

Posted: Tue Aug 07, 2018 8:38 am
by MrWoodward
Sure thing. Thanks for the help.