Page 1 of 1

Nagios E-mail Notifications

Posted: Mon Jul 23, 2012 10:28 am
by linuxderp
Hello,

I'm fairly new to Nagios but have set it up to successfully monitor 10 Windows servers. However, e-mail notifications haven't worked since the VPS I'm hosting Nagios Core on was moved by the hosting company to a different server in a different location. No configuration changes have occurred on the VPS itself (running CentOS 6).

Sendmail is running.

The contact.cfg file default except for using my e-mail address:

Code: Select all

define contact{
        contact_name             nagiosadmin             ; Short name of user
        use                             generic-contact         ; Inherit default values from generic-contact template (defined above)
        alias                           Nagios Admin            ; Full name of user
        email                         [email protected]       ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
        }


I can't think of what it could be. It's probably something stupid that I'm missing. Any ideas?

Thanks.

Re: Nagios E-mail Notifications

Posted: Mon Jul 23, 2012 4:44 pm
by agriffin
You said that sendmail is running, but not whether it's working. You should try sending a test email from the command line like this:

Code: Select all

echo test | mail [email protected]
If this doesn't work then it is a configuration problem with sendmail, not with Nagios.