Page 1 of 1
Adding a acknowledgement Link to Nagios Alert Emails
Posted: Thu Jan 30, 2014 4:03 pm
by dmitry
Hello everybody,
How can i add an acknowledgement link into alerts emails ? Thanks for your advices
---
Nagios XI 2012R2.3
Re: Adding a acknowledgement Link to Nagios Alert Emails
Posted: Thu Jan 30, 2014 4:50 pm
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?

Acknowledging directly from the email is not the easiest task, but it is possible.
Re: Adding a acknowledgement Link to Nagios Alert Emails
Posted: Thu Jan 30, 2014 5:14 pm
by dmitry
Could you help me with this ? Thank you
Re: Adding a acknowledgement Link to Nagios Alert Emails
Posted: Fri Jan 31, 2014 12:42 pm
by sreinhardt
What are you looking for additional help with specifically? Were you refering to ack from email as abrist had mentioned?
Re: Adding a acknowledgement Link to Nagios Alert Emails
Posted: Fri Jan 31, 2014 2:48 pm
by dmitry
Acknowledging directly from the email is not the easiest task, but it is possible.
I need help with this. Thank you
Re: Adding a acknowledgement Link to Nagios Alert Emails
Posted: Fri Jan 31, 2014 3:06 pm
by tmcdonald
Have you tried using the rapid response link in the email?
Re: Adding a acknowledgement Link to Nagios Alert Emails
Posted: Fri Jan 31, 2014 6:16 pm
by dmitry
Yes, but is this possible to use a direct link to acknowledgments ?
Re: Adding a acknowledgement Link to Nagios Alert Emails
Posted: Mon Feb 03, 2014 1:01 pm
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.
Re: Adding a acknowledgement Link to Nagios Alert Emails
Posted: Thu Feb 06, 2014 3:42 pm
by dmitry
Thank you!
Re: Adding a acknowledgement Link to Nagios Alert Emails
Posted: Thu Feb 06, 2014 3:47 pm
by abrist
You are most welcome. Best of luck!