Page 1 of 1

Include notes_url in the Notification Messages

Posted: Tue Feb 23, 2016 3:41 pm
by comfone
Hi All
We are running Nagios XI 5.2.3.
I would like to include the fields "Notes_URL" and "Notes" in the Notification Message as shown below.
How do I do that?

***** Nagios XI Alert *****

%alertsummary%

Notification Type: %type%

Service: %service%
Host: %host%
Address: %hostaddress%
State: %servicestate%
Info: %serviceoutput%
Date/Time: %datetime%
Wiki: <Notes_URL>
Action: <Notes>
Respond: %responseurl%
Nagios URL: %xiserverurl%

Thank you in advance for your help.

Re: Include notes_url in the Notification Messages

Posted: Tue Feb 23, 2016 5:33 pm
by lmiltchev
You will need to modify your default notification handler command, and the notification messages option.

Modify the "xi_host_notification_handler" by adding the following to the end of the command:

Code: Select all

--notesurl="$HOSTNOTESURL$" --actionurl="$HOSTACTIONURL$"
CCM->Commands->xi_host_notification_handler->Edit, save & apply configuration.

Next, add the following two lines to your notification messages options:

Code: Select all

Wiki: <a href="%notesurl%">%notesurl%</a>
Action: <a href="%actionurl%">%actionurl%</a>
Click on the username in the upper-right corner, then click on "Notification Messages" under "Notification Options". Add the above two lines in the "Host Alert Message" section, and click on "Update Settings".

Send a custom notification to test your setup. You should see something like this (in the actual email):
example01.PNG
The procedure for setting up this for service notifications is similar. Let me know if you get stuck on something. Thank you!

Re: Include notes_url in the Notification Messages

Posted: Wed Feb 24, 2016 12:18 pm
by comfone
It worked.
Thank you.

Re: Include notes_url in the Notification Messages

Posted: Wed Feb 24, 2016 6:02 pm
by tgriep
That is good to hear. Shall we close this post?