Adding a acknowledgement Link to Nagios Alert Emails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Adding a acknowledgement Link to Nagios Alert Emails

Post by dmitry »

Hello everybody,
How can i add an acknowledgement link into alerts emails ? Thanks for your advices


---
Nagios XI 2012R2.3
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Adding a acknowledgement Link to Nagios Alert Emails

Post by abrist »

XI includes rapid response urls, but those do not immediately acknowledge - it take a couple clicks. Is the rapid response url not rapid enough? :P
Acknowledging directly from the email is not the easiest task, but it is possible.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Re: Adding a acknowledgement Link to Nagios Alert Emails

Post by dmitry »

Could you help me with this ? Thank you
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Adding a acknowledgement Link to Nagios Alert Emails

Post by sreinhardt »

What are you looking for additional help with specifically? Were you refering to ack from email as abrist had mentioned?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Re: Adding a acknowledgement Link to Nagios Alert Emails

Post by dmitry »

Acknowledging directly from the email is not the easiest task, but it is possible.
I need help with this. Thank you
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Adding a acknowledgement Link to Nagios Alert Emails

Post by tmcdonald »

Have you tried using the rapid response link in the email?
Former Nagios employee
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Re: Adding a acknowledgement Link to Nagios Alert Emails

Post by dmitry »

Yes, but is this possible to use a direct link to acknowledgments ?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Adding a acknowledgement Link to Nagios Alert Emails

Post by abrist »

It is possible, but not easy, nor is it truly supported. You can add the following links to the email to take you to the host/service acknowledge page in core:

Code: Select all

http://<ip>/nagios/cgi-bin/cmd.cgi?cmd_typ=33&host=<hostname>
http://<ip>/nagios/cgi-bin/cmd.cgi?cmd_typ=33&host=<hostname>&service=<service description>
BUT: If your hostname or service name includes NON-ALPHANUMERICS, this will not work as those characters need to be url encoded. So you will have to write a new notification script to do so.

ADDITIONAL BUT: This will still not get you to the point of auto-acknowledging as it will still require you to submit the acknowledge. For auto acknowledge, you will need a second script that gets run from a url (so you may need to create a cgi) that will write an acknowledgement to the nagiso command pipe.
http://old.nagios.org/developerinfo/ext ... mand_id=40
This will be automatic, but a big pita to implement.

Maybe someone here has a simpler solution.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
dmitry
Posts: 19
Joined: Wed Sep 18, 2013 3:10 pm

Re: Adding a acknowledgement Link to Nagios Alert Emails

Post by dmitry »

Thank you!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Adding a acknowledgement Link to Nagios Alert Emails

Post by abrist »

You are most welcome. Best of luck!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked