I'm experiencing some issues when setting up my Nagios XI instance.
I'd like to deploy a feature that a direct link to host / service will be included in a notification.
What I did until now is as follows:
1) From Nagios Core Configuration Manager I added a new host / service template and updated 'Notes URL' with the following content:
https://monitoring.eu.antennasoftware.c ... $HOSTNAME$
https://monitoring.eu.antennasoftware.c ... RVICEDESC$
2) I added new host / service that is using the above templates
3) I modified 'xi_host_notification_handler' and 'xi_service_notification_handler' commands and appended the following strings respectively:
--notes_url="$HOSTNOTESURL$"
--notes_url="$SERVICENOTESURL$"
4) I changed my notification messages both for host / service alert to include the following variables respectively:
URL: %notes_url%
I saved everything, reloaded the configuration and so on. Now, when receiving a notification alert, the following line is included in the message:
URL: https://monitoring.eu.antennasoftware.c ... rvice=TEST
It looks like '&' character is missing. I've checked the template configuration file and everything seems to be find there:
Code: Select all
define service {
name TEST
service_description Global network issues
initial_state o
max_check_attempts 1
check_interval 1
retry_interval 1
check_period 24x7
notification_interval 15
notification_period 24x7
notification_options u,r,c,f,s
notifications_enabled 1
contact_groups IT - All
notes_url https://monitoring.eu.antennasoftware.com/nagios/cgi-bin/extinfo.cgi?type=2&host=$HOSTNAME$&service=$SERVICEDESC$
register 0
}Please, let me know if you'll need any details about licensing, etc.
I'm looking forward to hearing from you.
Regards