Hello
Im wondering if it is possible to add a acknowledge link to notification emails.
Our emails are currently something like:
Notification Type: PROBLEM
Service: Some Service
Host: A host
Address: FQDN.TO.HOST.COM
State: CRITICAL
Date/Time: Wed May 6 01:01:01 CEST 2018
Additional Info:
1010
And we are out of the office and keep getting pestered with emails every 5 minutes or so
It would be nice to recieve something like
Notification Type: PROBLEM
Service: Some Service
Host: A host
Address: FQDN.TO.HOST.COM
State: CRITICAL
Date/Time: Wed May 6 01:01:01 CEST 2018
Additional Info:
1010
Please click here to automatically acknowledge this service problem
And if we click that URL, Nagios automatically acknowledges the problem and doesnt keep sending emails (as if you entered the GUI and did it)
Add a acknowledge link to notification emails?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Add a acknowledge link to notification emails?
You can use macros to build the URL the same as adding it to the message
Such as, for Ack'ing a service
for Ack'ing a host
Such as, for Ack'ing a service
Code: Select all
http://YOUR_SERVER_IP/nagios/cgi-bin/cmd.cgi?cmd_typ=34&host=$HOSTNAME$&service=$SERVICEDESC$
Code: Select all
http://YOUR_SERVER_IP/nagios/cgi-bin/cmd.cgi?cmd_typ=33&host=$HOSTNAME$
Re: Add a acknowledge link to notification emails?
scottwilkerson wrote:You can use macros to build the URL the same as adding it to the message
Such as, for Ack'ing a servicefor Ack'ing a hostCode: Select all
http://YOUR_SERVER_IP/nagios/cgi-bin/cmd.cgi?cmd_typ=34&host=$HOSTNAME$&service=$SERVICEDESC$
Code: Select all
http://YOUR_SERVER_IP/nagios/cgi-bin/cmd.cgi?cmd_typ=33&host=$HOSTNAME$
If I click that link, dont i have to login? or have some kind of permissions?
Ideally, a person should be able to click on it anon
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Add a acknowledge link to notification emails?
We have this feature in Nagios XI but by default Core is behind Basic Auth, so yes they would have to login.
Re: Add a acknowledge link to notification emails?
I truly apologize as the title and the post is not what we were looking for.
Making a new thread.
Making a new thread.
Re: Add a acknowledge link to notification emails?
Locking this thread, we will continue in the other: https://support.nagios.com/forum/viewto ... 999#bottom
Former Nagios employee