Page 1 of 1

Nagios automatic notifications not working

Posted: Fri Oct 26, 2012 8:09 am
by Mayur
Hi All,

I am working on nagios to monitor my 4 remote servers (ubuntu servers). I have configured services and everything seems to be working fine except Notifications.
Nagios does not send any notification when state changes of any services though I have tried all options like notifications_enabled = 1 and all notificaiton related commands.

I can send the custom notification for a particular service from GUI so mail configurations are ok.
I am not able to get the root cause.

Can somebody please help me ?

Re: Nagios automatic notifications not working

Posted: Fri Oct 26, 2012 10:05 am
by yancy
Hi Mayur,

Have you checked to see if the file: /usr/local/nagios/etc/objects/templates.cfg

contains the following:

Code: Select all

define contact{
        name                            generic-contact
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f,s
        host_notification_options       d,u,r,f,s
        service_notification_commands   notify-service-by-email
        host_notification_commands      notify-host-by-email
        register                        0
        }
also, have you defined a generic-contact?

Re: Nagios automatic notifications not working

Posted: Fri Oct 26, 2012 10:33 am
by inventsekar
Hi Mayur,
Did you install Nagios Core as per the quickstart install guide??