Hi Guys,
I have been trying to get the following variables working
Notification Type: ACKNOWLEDGEMENT
Service: Aruba AP Status
Host: Khipu-WIFI
Address: 172.20.0.14
State: WARNING
Info:
WARN-Down AP: Steven-Test WARN-Down AP: d8:c7:c8:c9:34:08 WARN-Down AP: d8:c7:c8:c9:b9:92 CAMPUS AP-UP: 4 CAMPUS AP-Down: 3 RAP UP: 9 RAP Down: 17
Date/Time: 19/06/2012 17:08:18
Author: %notificationauthor%
Comment: %notificationcomment%
Running XI 3.1
Any suggestions?
Notification Variables do not work
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notification Variables do not work
are you using xi_service_notification_handler for this contact?
If so can you post your command definition for xi_service_notification_handler
If so can you post your command definition for xi_service_notification_handler
Re: Notification Variables do not work
HI Scott,
Looking at this the macros doesnt seem to be define in the event handler /usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_event.php --handler-type=service --host="$HOSTNAME$" --service="$SERVICEDESC$" --hostaddress="$HOSTADDRESS$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --hosteventid=$HOSTEVENTID$ --hostproblemid=$HOSTPROBLEMID$ --servicestate=$SERVICESTATE$ --servicestateid=$SERVICESTATEID$ --lastservicestate=$LASTSERVICESTATE$ --lastservicestateid=$LASTSERVICESTATEID$ --servicestatetype=$SERVICESTATETYPE$ --currentattempt=$SERVICEATTEMPT$ --maxattempts=$MAXSERVICEATTEMPTS$ --serviceeventid=$SERVICEEVENTID$ --serviceproblemid=$SERVICEPROBLEMID$ --serviceoutput="$SERVICEOUTPUT$" --longserviceoutput="$LONGSERVICEOUTPUT$"
It is using this event handler .
Thanks
Arnab
Looking at this the macros doesnt seem to be define in the event handler /usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_event.php --handler-type=service --host="$HOSTNAME$" --service="$SERVICEDESC$" --hostaddress="$HOSTADDRESS$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --hosteventid=$HOSTEVENTID$ --hostproblemid=$HOSTPROBLEMID$ --servicestate=$SERVICESTATE$ --servicestateid=$SERVICESTATEID$ --lastservicestate=$LASTSERVICESTATE$ --lastservicestateid=$LASTSERVICESTATEID$ --servicestatetype=$SERVICESTATETYPE$ --currentattempt=$SERVICEATTEMPT$ --maxattempts=$MAXSERVICEATTEMPTS$ --serviceeventid=$SERVICEEVENTID$ --serviceproblemid=$SERVICEPROBLEMID$ --serviceoutput="$SERVICEOUTPUT$" --longserviceoutput="$LONGSERVICEOUTPUT$"
It is using this event handler .
Thanks
Arnab
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notification Variables do not work
Arnab,
What you will want to do is add the following to that handler
What you will want to do is add the following to that handler
Code: Select all
--notificationauthor="$NOTIFICATIONAUTHOR$" --notificationcomments="$NOTIFICATIONCOMMENT$"