Page 1 of 1

Notification Not getting from XI

Posted: Thu Sep 22, 2016 6:59 am
by abodage
Hi Team,

I am getting test email from Nagios XI. But no actual notification getting from XI. But in Notification tab it shows that notification is sent to xyz contact.
this is xi_host_event_handler:

Code: Select all

/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_event.php --handler-type=host --host="$HOSTNAME$" --hostaddress="$HOSTADDRESS$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --lasthoststate=$LASTHOSTSTATE$ --lasthoststateid=$LASTHOSTSTATEID$ --hoststatetype=$HOSTSTATETYPE$ --currentattempt=$HOSTATTEMPT$ --maxattempts=$MAXHOSTATTEMPTS$ --hosteventid=$HOSTEVENTID$ --hostproblemid=$HOSTPROBLEMID$ --hostoutput="$HOSTOUTPUT$" --longhostoutput="$LONGHOSTOUTPUT$" --hostdowntime=$HOSTDOWNTIME$
xi_host_notification_handler

Code: Select all

 	/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_notification.php --notification-type=host --contact="$CONTACTNAME$" --contactemail="$CONTACTEMAIL$" --type=$NOTIFICATIONTYPE$ --escalated="$NOTIFICATIONISESCALATED$" --author="$NOTIFICATIONAUTHOR$" --comments="$NOTIFICATIONCOMMENT$" --host="$HOSTNAME$" --hostaddress="$HOSTADDRESS$" --hostalias="$HOSTALIAS$" --hostdisplayname="$HOSTDISPLAYNAME$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --lasthoststate=$LASTHOSTSTATE$ --lasthoststateid=$LASTHOSTSTATEID$ --hoststatetype=$HOSTSTATETYPE$ --currentattempt=$HOSTATTEMPT$ --maxattempts=$MAXHOSTATTEMPTS$ --hosteventid=$HOSTEVENTID$ --hostproblemid=$HOSTPROBLEMID$ --hostoutput="$HOSTOUTPUT$" --longhostoutput="$LONGHOSTOUTPUT$" --datetime="$LONGDATETIME$" --notes="$_HOSTNOTES$"
and this is the email body :

Code: Select all

***** Nagios XI Alert *****

%alertsummary%

Notification Type: %type%
Host: %host%
State: %hoststate%
Address: %hostaddress%
OID: %hosteventid%
Info: %hostoutput%
Date/Time: %datetime%

Respond: %responseurl%
Nagios URL: %xiserverurl%
plz advise.

Thanks.

Re: Notification Not getting from XI

Posted: Thu Sep 22, 2016 11:26 am
by rkennedy
Can you show us a screenshot of the notification tab, and also the contact definition for the person that should have received the email? This should help to see what's going on exactly.

Also -- click the username you're logged in as in the top right, and look at the Notification Preferences & Notification Methods pages - are they enabled here?

Re: Notification Not getting from XI

Posted: Fri Sep 23, 2016 12:48 am
by abodage
Hi rkennedy,

This is resolved.

Thank you.

Re: Notification Not getting from XI

Posted: Fri Sep 23, 2016 10:13 am
by rkennedy
Sounds good, closing it up!