Receiving mail alert for failed services

Zama Ques queszama at yahoo.in
Wed Apr 17 09:01:27 CEST 2013


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                                  zaman at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130417/5dc4c8d3/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list