Search found 9 matches

by mikej
Wed Mar 13, 2013 12:34 pm
Forum: Open Source Nagios Projects
Topic: notification_period not honoured on host config?
Replies: 15
Views: 35876

Re: notification_period not honoured on host config?

Thanks, abrist.

After adding a notification_period directive to a specific service check within the server.domain.com.cfg file, I was no longer receiving notifications outside the timeperiod indicated. This really helped me clear up this issue. Thank you for your assistance, much appreciated.

Mike
by mikej
Wed Mar 13, 2013 10:59 am
Forum: Open Source Nagios Projects
Topic: notification_period not honoured on host config?
Replies: 15
Views: 35876

Re: notification_period not honoured on host config?

Okay so one last follow-up then. If I leave the notification_period directive in the generic-service template definition, <-- that will be honoured even if I specificy a notification_period directive on each specific service check defined in server.domain.com.cfg? IE no matter what is in the specifi...
by mikej
Wed Mar 13, 2013 10:44 am
Forum: Open Source Nagios Projects
Topic: notification_period not honoured on host config?
Replies: 15
Views: 35876

Re: notification_period not honoured on host config?

Thanks for that abrist, I think I'm almost there. If I have the generic-host template: define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap dete...
by mikej
Wed Mar 13, 2013 10:24 am
Forum: Open Source Nagios Projects
Topic: notification_period not honoured on host config?
Replies: 15
Views: 35876

Re: notification_period not honoured on host config?

Sorry, a clearer question is:

Does the child override the parent? Or the parent override the child?

IE:

server.domain.com.cfg custom directive is overridden by whats in templates.cfg
or
templates.cfg custom directive is overridden by whats in server.domain.com.cfg

Thanks for your help.
by mikej
Wed Mar 13, 2013 10:20 am
Forum: Open Source Nagios Projects
Topic: notification_period not honoured on host config?
Replies: 15
Views: 35876

Re: notification_period not honoured on host config?

Yes, it's set in the generic-service template. But... I would have thought that if we have a notification_period directive on the child (in this case the host config) it would override the service checks on each? I guess what I'm asking is if the child (server.domain.com.cfg) has a custom directive,...
by mikej
Wed Mar 13, 2013 8:21 am
Forum: Open Source Nagios Projects
Topic: notification_period not honoured on host config?
Replies: 15
Views: 35876

Re: notification_period not honoured on host config?

After rereading the documentation, the linux-server template in templates.cfg has a value that is inherited from the generic-host template: define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event ha...
by mikej
Wed Mar 13, 2013 7:38 am
Forum: Open Source Nagios Projects
Topic: notification_period not honoured on host config?
Replies: 15
Views: 35876

Re: notification_period not honoured on host config?

Thanks again for your help. Below are two service checks for the host in question (there are no notification time periods defined for each of them specifically). define service{ use generic-service,srv-pnp host_name server.domain.com service_description PING check_command check_ping!100.0,20%!500.0,...
by mikej
Tue Mar 12, 2013 4:41 pm
Forum: Open Source Nagios Projects
Topic: notification_period not honoured on host config?
Replies: 15
Views: 35876

Re: notification_period not honoured on host config?

Thanks for the quick response. Yes, the time is correct. I double-checked it against an NTP server and it matches other servers to. Regarding the service checks, do I need to specify the notification_period directive for each service check within the host.cfg file? I might be mistaken but I thought ...
by mikej
Tue Mar 12, 2013 12:49 pm
Forum: Open Source Nagios Projects
Topic: notification_period not honoured on host config?
Replies: 15
Views: 35876

notification_period not honoured on host config?

I'm having troubles getting Nagios to honor a notification_period setting for a predefined timeperiod. My timeperiod definition is called 'sleep' as in, do not notify me between midnight and 7am. it looks like this: define timeperiod{ timeperiod_name sleep alias Not Middle of Night sunday 07:00-23:5...