Page 1 of 1

Notifications not being issued

Posted: Sat Jun 01, 2013 4:01 pm
by rks
I am running Nagios XI on RHEL5.

I have enabled notifications globally.

Code: Select all

## /usr/local/nagios/etc/nagios.cfg
...
enable_notifications=1
# ...
I have enabled notifications for my device and service template:

Code: Select all

# /usr/local/nagios/etc/static/templates/host.cfg
define host {
       name                                     ctv-server
       use                                      linux-server
       contact_groups                           ctvadmins
       notifications_enabled                    1
       register                                 0
}

define service {
       name                                     ctv-service
       use                                      local-service
       contact_groups                           ctvadmins
       notifications_enabled                    1
       register                                 0
}
I have configured the contacts with specific notifications:

Code: Select all

define contact {
        contact_name                            ctvadmin
        alias                                   C TV Administrator
        host_notification_period                ctvadmin_notification_times
        service_notification_period             ctvadmin_notification_times
        host_notification_options               d,u,r,f,s
        service_notification_options            w,u,c,r,f,s
        host_notification_commands              notify-host-by-email
        service_notification_commands           notify-service-by-email
        email                                   [email protected]
        use                                     xi_contact_generic
        }


define contactgroup {
        contactgroup_name                       ctvadmins
        alias                                   C TV Administrators
        members                                 ctvadmin
        }


The test email from nagios XI console succeeds.

Yet, I do not see notifications issued when a host or a service goes down.
I see the following messages in /usr/local/nagios/var/nagios/log:

Code: Select all

# tail -f /usr/local/nagios/var/nagios.log
//...
[1370120018] SERVICE NOTIFICATION: ctvadmin;ctv-xjabprd-2;Jabber CM1;CRITICAL;notify-service-by-email;CRITICAL - Socket timeout after 10 seconds
which seems to indicate that the notification was initiated - I do not see the email in my inbox.
How do I troubleshoot this?

thanks

Re: Notifications not being issued

Posted: Sat Jun 01, 2013 5:47 pm
by rks
The "notification settings" page in Nagios XI says that the feature is only
available in the enterprise edition (I am running an eval version):
Screen Shot 2013-06-01 at 3.41.16 PM.png
I assume this restriction applies only to the notification settings page of Nagios XI
and not to notifications themselves, which is a part of Nagios core.

pl help

thanks,

Re: Notifications not being issued

Posted: Mon Jun 03, 2013 12:17 am
by rks
I notice in /var/log/maillog that

Code: Select all

un  3 00:50:08 ctv-cache postfix/pickup[3307]: 38D08160D: uid=500 from=<nagios>
Jun  3 00:50:08 ctv-cache postfix/cleanup[16017]: 38D08160D: message-id=<[email protected]>
Jun  3 00:50:08 ctv-cache postfix/qmgr[1392]: 38D08160D: from=<[email protected]>, size=797, nrcpt=1 (queue active)
Jun  3 00:50:09 ctv-cache postfix/smtp[16026]: 38D08160D: to=<[email protected]>, relay=rcdn-mx-01.cisco.com[72.163.7.166]:25, delay=0.93, delays=0.02/0/0.83/0.08, dsn=5.0.0, status=bounced (host rcdn-mx-01.cisco.com[72.163.7.166] said: 553 Domain of sender address <[email protected]> does not resolve. (in reply to MAIL FROM command))
However, I have a valid settings in Admin -> Manage Email Settings:
Screen Shot 2013-06-02 at 10.15.44 PM.png
Where does it obtain the email settings from?

thanks,

Re: Notifications not being issued

Posted: Mon Jun 03, 2013 12:18 pm
by abrist
rks wrote: Where does it obtain the email settings from?
XI send email through the phpmailer function. The settings are a combination of what you enter in the "manage email settings" page and the XI server's hostname.
rks wrote:Jun 3 00:50:09 ctv-cache postfix/smtp[16026]: 38D08160D: to=<[email protected]>, relay=rcdn-mx-01.cisco.com[72.163.7.166]:25, delay=0.93, delays=0.02/0/0.83/0.08, dsn=5.0.0, status=bounced (host rcdn-mx-01.cisco.com[72.163.7.166] said: 553 Domain of sender address <[email protected]> does not resolve. (in reply to MAIL FROM command))
This error message seems to imply that your nagios xi server is lacking an FQDN, and your smtp server requires it. Try changing your XI server's hostname to an FQDN, or talk to your email admin to have the restrictions loosened for mail coming from the XI server.