Have you set us Postfix or other such mail agent to actually send the mail?

 

From: Zama Ques [mailto:quesz...@yahoo.in] 
Sent: 17 April 2013 08:01
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Receiving mail alert for failed services

 

Hi All ,

 

 

I was trying to configure to send alert mails for failed services in Nagios
. For this , I tried the following configuration

 

=====

 /usr/local/nagios/etc/objects/contacts.cfg 

 

define contact{
        contact_name                    zamanl                  ; Short name
of user
        use                                      generic-contact         ;
Inherit default values from generic-contact template (defined above)
        alias                                    Nagios Admin            ;
Full name of user

        email                                  za...@server.example.com
<mailto:za...@server.example.com>         ; <<***** CHANGE THIS TO YOUR
EMAIL ADDRESS ******
        }

 

 

define contactgroup{
        contactgroup_name       nagiosadmins
        alias                                 Nagios Administrators
        members                         zamanl
        }

 

 

Restarted nagios service without any errors and it looks like notifications
are generated for failed services by looking at system log file

 

 

[@server ~]# tail -f /var/log/messages
Apr 17 11:26:52 server nagios: SERVICE NOTIFICATION: zamanl;mgthost;Total
Processes;CRITICAL;notify-service-by-email;PROCS CRITICAL: 312 processes
Apr 17 11:27:22 server nagios: SERVICE NOTIFICATION: zamanl;host1;Total
Processes;CRITICAL;notify-service-by-email;PROCS CRITICAL: 313 processes
Apr 17 11:27:22 server nagios: SERVICE NOTIFICATION: zamanl;host2;Total
Processes;CRITICAL;notify-service-by-email;PROCS CRITICAL: 313 processes

But I have not received any mail messages for the notification .

 

[@server ~]$ id
uid=501(zaman) gid=501(zaman) groups=501(zaman)
[@server ~]# mail
No mail for zaman
[@server ~]# hostname 
server.example.com

 

Kindly suggest what needs to be done to receive alert mail for failed
services ? 

 

Any help will be highly appreciated .

 

Thanks

Zaman

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
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