Hello everybody,
How can i add an acknowledgement link into alerts emails ? Thanks for your advices
---
Nagios XI 2012R2.3
Adding a acknowledgement Link to Nagios Alert Emails
Re: Adding a acknowledgement Link to Nagios Alert Emails
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.
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.
"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.
Re: Adding a acknowledgement Link to Nagios Alert Emails
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
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.
Re: Adding a acknowledgement Link to Nagios Alert Emails
I need help with this. Thank youAcknowledging directly from the email is not the easiest task, but it is possible.
Re: Adding a acknowledgement Link to Nagios Alert Emails
Have you tried using the rapid response link in the email?
Former Nagios employee
Re: Adding a acknowledgement Link to Nagios Alert Emails
Yes, but is this possible to use a direct link to acknowledgments ?
Re: Adding a acknowledgement Link to Nagios Alert Emails
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:
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.
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>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.
"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.
Re: Adding a acknowledgement Link to Nagios Alert Emails
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.
"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.