Include notes_url in the Notification Messages

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
comfone
Posts: 127
Joined: Fri May 01, 2015 3:28 am

Include notes_url in the Notification Messages

Post 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.
Last edited by comfone on Wed Feb 24, 2016 12:18 pm, edited 1 time in total.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Include notes_url in the Notification Messages

Post 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!
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
comfone
Posts: 127
Joined: Fri May 01, 2015 3:28 am

Re: Include notes_url in the Notification Messages

Post by comfone »

It worked.
Thank you.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Include notes_url in the Notification Messages

Post by tgriep »

That is good to hear. Shall we close this post?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked