Notifications not delivered

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
comfone
Posts: 127
Joined: Fri May 01, 2015 3:28 am

Notifications not delivered

Post by comfone »

Hi there

I do have an Issue with Nagios XI. For all new contacts I create Notifications are not delivered. Viewing the Nagios log everything looks fine however.

This is a excerpt from Nagios Debug Log. The Contact which is not working is IPXSignalling

[1539267260.125572] [032.0] [pid=21314] ** Service Notification Attempt ** Host: 'csvdb008', Service: 'SSG-ETDRS-SET-ROUTINGLOOP', Type: NORMAL, Options: 0, Current State: 0, Last Notification: Thu Jan 1 00:00:00 1970
[1539267260.125595] [032.0] [pid=21314] Notification viability test passed.
[1539267260.125600] [032.1] [pid=21314] Current notification number: 2 (incremented)
[1539267260.125605] [032.2] [pid=21314] Creating list of contacts to be notified.
[1539267260.125633] [032.1] [pid=21314] Service notification will NOT be escalated.
[1539267260.125652] [032.1] [pid=21314] Adding normal contacts for service to notification list.
[1539267260.125656] [032.2] [pid=21314] Adding members of contact group 'sysadmins' for service to notification list.
[1539267260.125667] [032.2] [pid=21314] ** Checking service notification viability for contact 'sysadmin'...
[1539267260.125682] [032.2] [pid=21314] We shouldn't notify this contact about OK service states.
[1539267260.125687] [032.2] [pid=21314] Not adding contact 'sysadmin'
[1539267260.125692] [032.2] [pid=21314] Adding members of contact group 'noc-email' for service to notification list.
--
[1539267260.125710] [032.2] [pid=21314] Adding contact 'pedasi' to notification list.
[1539267260.125715] [032.2] [pid=21314] ** Checking service notification viability for contact 'noc.team'...
[1539267260.125724] [032.2] [pid=21314] We shouldn't notify about this recovery.
[1539267260.125729] [032.2] [pid=21314] Not adding contact 'noc.team'
[1539267260.125733] [032.2] [pid=21314] Adding members of contact group 'IPXSignallings' for service to notification list.
[1539267260.125738] [032.2] [pid=21314] ** Checking service notification viability for contact 'IPXSignalling'...
[1539267260.125747] [032.2] [pid=21314] ** Service notification viability for contact 'IPXSignalling' PASSED.
[1539267260.125752] [032.2] [pid=21314] Adding contact 'IPXSignalling' to notification list.
[1539267260.125759] [032.2] [pid=21314] ** Notifying contact 'IPXSignalling'
[1539267260.125813] [032.2] [pid=21314] Raw notification command: /usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_notification.php --notification-type=service --contact="$CONTACTNAME$" --contactemail="$CONTACTEMAIL$" --type=$NOTIFICATIONTYPE$ --escalated="$NOTIFICATIONISESCALATED$" --author="$NOTIFICATIONAUTHOR$" --comments="$NOTIFICATIONCOMMENT$" --host="$HOSTNAME$" --hostaddress="$HOSTADDRESS$" --hostalias="$HOSTALIAS$" --hostdisplayname="$HOSTDISPLAYNAME$" --service="$SERVICEDESC$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --servicestate=$SERVICESTATE$ --servicestateid=$SERVICESTATEID$ --lastservicestate=$LASTSERVICESTATE$ --lastservicestateid=$LASTSERVICESTATEID$ --servicestatetype=$SERVICESTATETYPE$ --currentattempt=$SERVICEATTEMPT$ --maxattempts=$MAXSERVICEATTEMPTS$ --serviceeventid=$SERVICEEVENTID$ --serviceproblemid=$SERVICEPROBLEMID$ --serviceoutput="$SERVICEOUTPUT$" --longserviceoutput="$LONGSERVICEOUTPUT$" --datetime="$LONGDATETIME$" --notesurl="$SERVICENOTESURL$" --action="$SERVICENOTES$"
[1539267260.125935] [032.2] [pid=21314] Processed notification command: /usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_notification.php --notification-type=service --contact="IPXSignalling" --contactemail="[email protected]" --type=RECOVERY --escalated="0" --author="" --comments="" --host="csvdb008" --hostaddress="10.20.160.64" --hostalias="ROAM3 PROD" --hostdisplayname="ROAM3 PROD" --service="SSG-ETDRS-SET-ROUTINGLOOP" --hoststate=UP --hoststateid=0 --servicestate=OK --servicestateid=0 --lastservicestate=WARNING --lastservicestateid=1 --servicestatetype=HARD --currentattempt=2 --maxattempts=2 --serviceeventid=1224821 --serviceproblemid=0 --serviceoutput="OK: ok" --longserviceoutput="" --datetime="Thu Oct 11 14:14:20 UTC 2018" --notesurl="https://wiki.comfone.com/index.php5/Sig ... SG)#Alarms" --action=""

Following instruction does not return any record however

cat /var/log/maillog | grep [email protected]

Thanks for your help
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notifications not delivered

Post by scottwilkerson »

Under Admin -> Manage Email Settings what is selected?

The notification handler you are using is for XI Users.

If you login to the UI as IPXSignalling and click the username in upper right, and go to Notification Preferences what boxes are selected?

Under Notification Methods, what boxes are selected?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
comfone
Posts: 127
Joined: Fri May 01, 2015 3:28 am

Re: Notifications not delivered

Post by comfone »

Thanks this helped. I just created a contact and no user. After creating a user the notifications are delivered.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notifications not delivered

Post by scottwilkerson »

comfone wrote:Thanks this helped. I just created a contact and no user. After creating a user the notifications are delivered.
Great!

Glad it is resolved.

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked