ACK other Services in same host when certain Service is ACKd

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MrWoodward
Posts: 66
Joined: Fri Jan 06, 2017 1:58 pm

ACK other Services in same host when certain Service is ACKd

Post 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?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
MrWoodward
Posts: 66
Joined: Fri Jan 06, 2017 1:58 pm

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

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post by npolovenko »

@MrWoodward, I don't think you can trigger a script on a service acknowledgment without modifying the sourcecode.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
MrWoodward
Posts: 66
Joined: Fri Jan 06, 2017 1:58 pm

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

Post by MrWoodward »

Ok, thanks for the help. I think I know how to accomplish what I'm trying to do.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Sounds good! Is it OK if we lock this thread?
Be sure to check out our Knowledgebase for helpful articles and solutions!
MrWoodward
Posts: 66
Joined: Fri Jan 06, 2017 1:58 pm

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

Post by MrWoodward »

Sure thing. Thanks for the help.
Locked