Add a acknowledge link to notification emails?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
riahc3
Posts: 58
Joined: Thu Apr 05, 2018 9:36 am

Add a acknowledge link to notification emails?

Post 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)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Add a acknowledge link to notification emails?

Post 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$
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
riahc3
Posts: 58
Joined: Thu Apr 05, 2018 9:36 am

Re: Add a acknowledge link to notification emails?

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Add a acknowledge link to notification emails?

Post by scottwilkerson »

We have this feature in Nagios XI but by default Core is behind Basic Auth, so yes they would have to login.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
riahc3
Posts: 58
Joined: Thu Apr 05, 2018 9:36 am

Re: Add a acknowledge link to notification emails?

Post by riahc3 »

I truly apologize as the title and the post is not what we were looking for.

Making a new thread.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Add a acknowledge link to notification emails?

Post by tmcdonald »

Locking this thread, we will continue in the other: https://support.nagios.com/forum/viewto ... 999#bottom
Former Nagios employee
Locked