Notification Not getting from XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
abodage
Posts: 29
Joined: Tue Feb 16, 2016 1:45 am

Notification Not getting from XI

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Notification Not getting from XI

Post 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?
Former Nagios Employee
abodage
Posts: 29
Joined: Tue Feb 16, 2016 1:45 am

Re: Notification Not getting from XI

Post by abodage »

Hi rkennedy,

This is resolved.

Thank you.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Notification Not getting from XI

Post by rkennedy »

Sounds good, closing it up!
Former Nagios Employee
Locked