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.
Include notes_url in the Notification Messages
Include notes_url in the Notification Messages
Last edited by comfone on Wed Feb 24, 2016 12:18 pm, edited 1 time in total.
Re: Include notes_url in the Notification Messages
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:
CCM->Commands->xi_host_notification_handler->Edit, save & apply configuration.
Next, add the following two lines to your notification messages options:
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):
The procedure for setting up this for service notifications is similar. Let me know if you get stuck on something. Thank you!
Modify the "xi_host_notification_handler" by adding the following to the end of the command:
Code: Select all
--notesurl="$HOSTNOTESURL$" --actionurl="$HOSTACTIONURL$"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>Send a custom notification to test your setup. You should see something like this (in the actual email):
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!
Re: Include notes_url in the Notification Messages
It worked.
Thank you.
Thank you.
Re: Include notes_url in the Notification Messages
That is good to hear. Shall we close this post?
Be sure to check out our Knowledgebase for helpful articles and solutions!