problem with notifications and contact core . not trigged

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
psteam
Posts: 32
Joined: Fri Dec 02, 2011 12:03 pm
Location: Montreal, Quebec

problem with notifications and contact core . not trigged

Post by psteam »

Hi there,
I am having a strange problem. I have Nagios xi and using sendmail(postfix) for notifications.
When I create a nagiosxi user (able to login from admin- manage user) and put a checkmark | create notification contact. I have no issue receiving alerts from email or sms.
However when I create a contact from Nagios core itself. Notifications are not being sent. Not even triggered it seems. I have added 2 contacts to the same service . and purposely made it go critical I can see on the notification service tab that an alert was sent to the nagiosxi user but note the core contact.
I saw a documentation talking about creating a new service and host alert commands. I did those steps same problem.
https://assets.nagios.com/downloads/nag ... ntacts.pdf

I even on the contact core setup variable service_notification =1 etc…. same problem

I copied my Nagios xi contact from the Nagios core and just changed the email… same problem.
The reason is that we have many contacts that are distribution mail list that should alert is a service goes critical but I don’t want these contact to be able to login the interface.
psteam
Posts: 32
Joined: Fri Dec 02, 2011 12:03 pm
Location: Montreal, Quebec

Re: problem with notifications and contact core . not trigge

Post by psteam »

If this helps here are the settings of both contacts
define contact {
contact_name testcontact2
alias testcontact2
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period testcontact2_notification_times
service_notification_period testcontact2_notification_times
host_notification_options d,u,r,f,s,
service_notification_options w,u,c,r,f,s,
email [email protected]
host_notifications_enabled 1
service_notifications_enabled 1
use xi_contact_generic
}

define contact {
contact_name testcontact1
alias testcontact1
host_notification_period xi_timeperiod_24x7
service_notification_period xi_timeperiod_24x7
host_notification_options d,u,r,f,s,n,
service_notification_options w,u,c,r,f,s,n,
email [email protected]
use xi_contact_generic
}

testcontact2====> this contact is in both core and xi manage users
testcontact1=====> this contact is only in nagios core
Mediagrif
Prod Support Team
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: problem with notifications and contact core . not trigge

Post by hsmith »

Is the XI user configured to use SMTP?
Former Nagios Employee.
me.
psteam
Posts: 32
Joined: Fri Dec 02, 2011 12:03 pm
Location: Montreal, Quebec

Re: problem with notifications and contact core . not trigge

Post by psteam »

No, its set to use postfix
Mediagrif
Prod Support Team
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: problem with notifications and contact core . not trigge

Post by hsmith »

Anything useful in here?

Code: Select all

tail -n50 /var/log/maillog
Former Nagios Employee.
me.
psteam
Posts: 32
Joined: Fri Dec 02, 2011 12:03 pm
Location: Montreal, Quebec

Re: problem with notifications and contact core . not trigge

Post by psteam »

nothing really i have put additional alerting contact and i see the new contact being sent alerts but not my test contact 1 ... the new contact are nagios xi contact
You do not have the required permissions to view the files attached to this post.
Mediagrif
Prod Support Team
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: problem with notifications and contact core . not trigge

Post by hsmith »

Do you have access to your mail server logs? It almost sounds like the contact emails are getting filtered, where the user ones are not.
Former Nagios Employee.
me.
psteam
Posts: 32
Joined: Fri Dec 02, 2011 12:03 pm
Location: Montreal, Quebec

Re: problem with notifications and contact core . not trigge

Post by psteam »

evem if that was the case i should see on the service notification that nagios sent to that contact...


does it matther if i have AD intergration?
user authenticate to a active directory
Mediagrif
Prod Support Team
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: problem with notifications and contact core . not trigge

Post by rkennedy »

Let's check out your nagios.log. AD shouldn't have an affect on notifications.

Can you run the following and post the output (prior to this, try to trigger the notifications) -

Code: Select all

tail -n500 /usr/local/nagios/var/nagios.log
Former Nagios Employee
psteam
Posts: 32
Joined: Fri Dec 02, 2011 12:03 pm
Location: Montreal, Quebec

Re: problem with notifications and contact core . not trigge

Post by psteam »

[1454529594] SERVICE NOTIFICATION: ajdazeve;rbv1appmets1;check_appServerNone;OK;xi_service_notification_handler;Nbr_AppServer: 4
[1454529594] SERVICE NOTIFICATION: psmessages;rbv1appmets1;check_appServerNone;OK;xi_service_notification_handler;Nbr_AppServer: 4
[1454529621] SERVICE ALERT: rbv1appmets1;check_appServerNone;CRITICAL;HARD;1;No appserver monitoring or running
[1454529621] SERVICE NOTIFICATION: ajdazeve;rbv1appmets1;check_appServerNone;CRITICAL;xi_service_notification_handler;No appserver monitoring or running
[1454529621] SERVICE NOTIFICATION: psmessages;rbv1appmets1;check_appServerNone;CRITICAL;xi_service_notification_handler;No appserver monitoring or running
Mediagrif
Prod Support Team
Locked