Notification Variables do not work

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Notification Variables do not work

Post by arnab.roy »

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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notification Variables do not work

Post by scottwilkerson »

are you using xi_service_notification_handler for this contact?

If so can you post your command definition for xi_service_notification_handler
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: Notification Variables do not work

Post by arnab.roy »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notification Variables do not work

Post by scottwilkerson »

Arnab,

What you will want to do is add the following to that handler

Code: Select all

 --notificationauthor="$NOTIFICATIONAUTHOR$" --notificationcomments="$NOTIFICATIONCOMMENT$"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked