Page 13 of 13

Re: contacts.cfg is not working properly

Posted: Tue Nov 10, 2015 12:05 pm
by sinkak
i created new email [email protected]
still not working.

Code: Select all


define contact{
        contact_name                    wsawarn
        alias                           WSAWarn
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,f
        host_notification_options       u,f
        service_notification_commands   notify-service-by-email
        host_notification_commands      notify-host-by-email
        email                           [email protected]
       }


define contact{
        contact_name                    wsacritical
        alias                           WSACRITICAL
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    c
        host_notification_options       d
        service_notification_commands   notify-service-by-email
        host_notification_commands      notify-host-by-email
        service_notifications_enabled   1
        host_notifications_enabled      1
        email                           [email protected]
       }


###############################################################################
###############################################################################
#
# CONTACT GROUPS
#
###############################################################################
###############################################################################

# We only have one contact in this simple configuration file, so there is
# no need to create more than one contact group.

define contactgroup{
        contactgroup_name       DevNull
        members                 wsawarn
        }

define contactgroup{
        contactgroup_name       admins
        alias                   Nagios Administrators
        members                 wsawarn,wsacritical
        }

define contactgroup{
        contactgroup_name       Dustin-admins
        alias                   Dustin
        members                 wsawarn
        }

define contactgroup{
        contactgroup_name       sms-admins
        alias                   SMS
        members                 wsawarn
        }

define contactgroup{
        contactgroup_name       SmsOnlyOnce
        members                 wsawarn
        }

define contactgroup{
        contactgroup_name       Nagiosadmins
        alias                   Administrators
        members                 wsacritical
       }


Re: contacts.cfg is not working properly

Posted: Tue Nov 10, 2015 12:19 pm
by hsmith
Are alerts-warning and critical on the same email service? For example is alerts-warning on yahoo and critical is on something else? Let's get clarification on that.

Re: contacts.cfg is not working properly

Posted: Mon Nov 16, 2015 11:41 am
by sinkak
yes i checked with IT guy.
both emails are on same email service.

Re: contacts.cfg is not working properly

Posted: Mon Nov 16, 2015 12:32 pm
by hsmith
Okay, so from the Nagios support side of things:

You were not getting warnings from Nagios, but not critical email alerts. We went through your Nagios configuration, made a couple of changes and you were still not getting critical email alerts. We had you switch your critical contact's email address to the one that you were receiving warning emails on, and you started getting critical notifications. This confirms that the Nagios software is capable of sending out email addresses upon a critical email. At this point if is out of the hands of Nagios Support.

You may want to:

Have your IT guy look further into the email logs. They clearly can be sent out from the Nagios software, we proved this by switching the email address critical emails were sending to.
Figure out if you have DNS correctly set for this server. Email can be rejected if it can't reverse DNS lookup to a proper domain.
Look back at the first few pages of this thread and follow the steps I provided for having Nagios send email from an SMTP server. The Unixmen article is good, and should work fine. http://www.unixmen.com/send-alerts-nagi ... ail-yahoo/ for reference.

I hate to close this thread, but solutions have been provided, and at this point it is not Nagios malfunctioning, it is an issue with the email service bouncing back your emails. The Unixmen article should fix this.