Page 1 of 1

Add a acknowledge link to notification emails?

Posted: Fri May 18, 2018 8:24 am
by riahc3
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)

Re: Add a acknowledge link to notification emails?

Posted: Fri May 18, 2018 10:32 am
by scottwilkerson
You can use macros to build the URL the same as adding it to the message

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$
for Ack'ing a host

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?

Posted: Sun May 20, 2018 3:21 pm
by riahc3
scottwilkerson wrote:You can use macros to build the URL the same as adding it to the message

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$
for Ack'ing a host

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

Re: Add a acknowledge link to notification emails?

Posted: Mon May 21, 2018 8:14 am
by scottwilkerson
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?

Posted: Mon May 21, 2018 1:25 pm
by riahc3
I truly apologize as the title and the post is not what we were looking for.

Making a new thread.

Re: Add a acknowledge link to notification emails?

Posted: Mon May 21, 2018 2:04 pm
by tmcdonald
Locking this thread, we will continue in the other: https://support.nagios.com/forum/viewto ... 999#bottom