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.
problem with notifications and contact core . not trigged
Re: problem with notifications and contact core . not trigge
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
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
Prod Support Team
Re: problem with notifications and contact core . not trigge
Is the XI user configured to use SMTP?
Former Nagios Employee.
me.
me.
Re: problem with notifications and contact core . not trigge
No, its set to use postfix
Mediagrif
Prod Support Team
Prod Support Team
Re: problem with notifications and contact core . not trigge
Anything useful in here?
Code: Select all
tail -n50 /var/log/maillogFormer Nagios Employee.
me.
me.
Re: problem with notifications and contact core . not trigge
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
Prod Support Team
Re: problem with notifications and contact core . not trigge
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.
me.
Re: problem with notifications and contact core . not trigge
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
does it matther if i have AD intergration?
user authenticate to a active directory
Mediagrif
Prod Support Team
Prod Support Team
Re: problem with notifications and contact core . not trigge
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) -
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
Re: problem with notifications and contact core . not trigge
[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
[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
Prod Support Team