Nagios automatic notifications not working

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Mayur
Posts: 1
Joined: Fri Oct 26, 2012 7:20 am

Nagios automatic notifications not working

Post 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 ?
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Nagios automatic notifications not working

Post 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?
User avatar
inventsekar
Posts: 37
Joined: Fri Jul 20, 2012 11:29 am

Re: Nagios automatic notifications not working

Post by inventsekar »

Hi Mayur,
Did you install Nagios Core as per the quickstart install guide??
Locked