Hi All,

Very common problem, I know, but I can't figure it out.

Nagios is not sending email alerts for outages.  It had worked before,
and then stopped.  I suspect a permissions or file ownership issue, as
I think I fixed this problem once before by chowning most of
/etc/nagios/ to nagios:nagios.

I see alerts in nagios.log:

[1316623404] SERVICE NOTIFICATION:
james;gm72;DISK_VAR;CRITICAL;notify-by-email;CHECK_NRPE: Socket
timeout after 10 seconds.

I see nothing in /var/log/maillog.

Postfix is running, and I can send mail from the command line no problem.

I don't see any errors in /var/log/messages either, or in any log file.


The DISK_VAR service alert is deefined like this:

# check /var disk partition on http-servers
define service{
        use                             generic-service
        hostgroup_name                  http-servers
        service_description             DISK_VAR
        max_check_attempts              6
        normal_check_interval           30
        retry_check_interval            20
        contact_groups                  g-admins
        check_command                   check_nrpe!$HOSTNAME$!check_var
}


Here is the contact group definition:

# 'g-admins' contact group definition
define contactgroup{
        contactgroup_name       g-admins
        alias                   g-admins
        members                 james
}


And here is my contact definition:

# 'james' contact definition
define contact{
        contact_name                    james
        alias                           james
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    c,r
        host_notification_options       d,r
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           [email protected]
        }


So, as far as I can tell, I should be getting emailed alerts, but I'm not.

Thanks in advance for any help.

-J

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to