Page 1 of 1

Not getting notifications for normal services

Posted: Tue Oct 22, 2013 4:53 am
by chitrangada
Hi,

I have created various hosts and services and have set the notification interval, period, options etc values for both host and service. Although i am getting notifications for host when it is DOWN or changes its state. But not getting any status of service. By the way, i am using NConf to generate config files and to deploy it on Nagios server. Can anyone please guide me regarding nagios notification feature ?

One more thing, i opened nagios.log file to check for any error regarding this but found a new one i.e

"[1382425605] Caught SIGHUP, restarting...
[1382425605] Error: Cannot open resource file '/etc/nagios3/resource.cfg' for reading!"

Please guide me for this too.

Thanks in advance.

Re: Not getting notifications for normal services

Posted: Tue Oct 22, 2013 2:51 pm
by nscott
We'll be able to help you much better if you show us the configs that are generated for your particular host. Where those are, I'm not sure, as it depends on your Linux distribution. But they are probably under /etc/nagios or /usr/local/nagios/etc. In the mean time, you can probably check yourself, the directive is in the Nagios configs. Here is a sample host:

host {
... lots of directives...
notifications_options d,f,s
}

The notifications is going to be our first investigative report. This should contain an s. The s in the directive means notify us on State change. f means flapping, etc. Can you find something like this?

Re: Not getting notifications for normal services

Posted: Thu Oct 24, 2013 1:41 am
by chitrangada
Hi,

I have not set 's' in notification_options directive. If i don't set it then it should notify user after every interval (its equal to notification_interval directive). Right?

Re: Not getting notifications for normal services

Posted: Thu Oct 24, 2013 5:06 pm
by slansing
Can you share your service definition that is not properly notifying you?

Re: Not getting notifications for normal services

Posted: Sat Oct 26, 2013 4:11 am
by chitrangada
Hi, its solved.

It was due to notifcation_interval value. Previously, I had set it to 0(assumed that i will be notified after every min) but yesterday i reset it on 5 and assumed that i will be notified after every 5mins. Can you please tell me why it wasn't sending out emails when interval was set to '0' ? Is it for no notification to user?

Please clarify this. Thanks for your time :)

Re: Not getting notifications for normal services

Posted: Mon Oct 28, 2013 11:35 am
by abrist
From the documentation (http://nagios.sourceforge.net/docs/3_0/ ... tions.html):
If you set this value to 0, Nagios will not re-notify contacts about problems for this service - only one problem notification will be sent out.

Re: Not getting notifications for normal services

Posted: Tue Oct 29, 2013 4:19 am
by chitrangada
Okay, thank you so much :)