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.
Not getting notifications for normal services
-
chitrangada
- Posts: 32
- Joined: Sat Aug 10, 2013 8:20 am
Re: Not getting notifications for normal services
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?
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?
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
chitrangada
- Posts: 32
- Joined: Sat Aug 10, 2013 8:20 am
Re: Not getting notifications for normal services
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?
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?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Not getting notifications for normal services
Can you share your service definition that is not properly notifying you?
-
chitrangada
- Posts: 32
- Joined: Sat Aug 10, 2013 8:20 am
Re: Not getting notifications for normal services
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
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
Last edited by chitrangada on Tue Oct 29, 2013 4:19 am, edited 1 time in total.
Re: Not getting notifications for normal services
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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
chitrangada
- Posts: 32
- Joined: Sat Aug 10, 2013 8:20 am
Re: Not getting notifications for normal services
Okay, thank you so much 