Re: [Nagios-users] "notification_interval" from the "serviceescalation" is ignored?
(Ilya: I have added the nagios-users mailing list back into the CC list. Always make sure to include the mailing list so that others can follow the discussion and possibly learn from it.) On Sat, 2007-09-01 at 09:35 +0200, [EMAIL PROTECTED] wrote: > > On Fri, 2007-08-31 at 09:56 +0200, Ilya Ruprecht wrote: > > > > > Ok, i understand. But netherless, something is wrong - > > > look at my posting: > > > > > > the "notification_interval" of SSH is set to 60, but i became > > > ALL notifications in 10 minute interval. > > > > In your original post, you said you defined this escalation: > > > > define serviceescalation{ > > hostgroup_name vpn-server > > service_description SSH > > first_notification 1 > > last_notification 5 > > notification_interval 3 > > contact_groups linux-admins > > } > > > > That escalation takes effect on the first notification, and thus > > notification_interval gets changed to "3". With the two escalations you > > defined, the "notification_interval 60" line from your service > > definition never takes effect. > > Exactly! That's what i mean! Neither the notification_interval from the > service-definition, nor > the notification_interval from the serviceescalation-definition was > considered. Yes, they are both considered. It's just that the notification_interval from your escalation overrides the value from the service definition. > But where then the 10-minutes interval came from? from the "check_interval" > from service-definition? Yes. That is what happens when you have a check_interval that is greater than the notification_interval. A notification_interval of "3" does not guarantee that notifications will be sent every 3 minutes. It only guarantees that consecutive notifications will be 3 or more minutes apart. If the check_interval is 10, then you will get notifications every 10 minutes. -- Rick Mohr Systems Developer Ohio Supercomputer Center - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] "notification_interval" from the "serviceescalation" is ignored?
On Thu, 2007-08-30 at 14:12 +0200, Ilya Ruprecht wrote: > Furthermore, the "notification_interval" in the service-part is described as > "Re-notify about service problems every XXX". > Note: "about service problems". > Now, if i set the notification_interval to a lower value then a > "normal_check_interval", i.e. "9", i get following warning-message > at nagios pre-flight-check: [snip] > But, hell, what the "normal_check_interval" have to do with > "notification_interval"?! > These two are completely different things! Or have i misunderstood something? Perhaps this will help clear things up. The "notification_interval" option sets an upper limit on how often notifications are sent. The "normal_check_interval" options controls how often the check is run. If notification_interval=10 and normal_check_interval=5, you can get a situation like this one (I'll use t=XX to try and convey the timeline when events occur). [t=0] Check runs. [t=0] Check fails. [t=0] Nagios sends notification. [t=5] Check runs [t=5] Check fails [t=5] Time since last notifications is 5 which is less than notification_interval=10. Nagios prevents notification. [t=10] Check runs. [t=10] Check fails. [t=10] Time since last notification is 10 which is greater than or equal to notification_interval=10. Nagios sends notification. However if notification_interval=5 and normal_check_interval=10, you get this. [t=0] Check runs. [t=0] Check fails. [t=0] Nagios sends notification. [t=10] Check runs. [t=10] Check fails. [t=10] Time since last notification is 10 which is greater than or equal to notification_interval=10. Nagios sends notification. Nagios only sends notifications immediately after a check (it won't resend an old value). So if normal_check_interval >= notification_interval, you effectively have notification_interval = normal_check_interval. That is why Nagios prints the warning message: "Warning: Service 'SSH' on host 'vpn-gw1-local' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval." That seems to be what is happening in your case. -- Rick Mohr Systems Developer Ohio Supercomputer Center - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] "notification_interval" from the "serviceescalation" is ignored?
Ilya Ruprecht wrote: > Hi all again! > > I installed Nagios 3.0b2 and tested the serviceescalations with it - with > the same result: > > "notification_interval" is ignored if i enter a value another then "0"(zero). > If i enter a zero - or even nothing - then i see in the webgui - > "Notify Only Once (No Re-notification)" in the "Notification Interval"-column > for > these hosts. > Even if I enter an clearly nonsense, like "jsdfjfsdakjl" - the value is > ignored and > the "pre-flight-check" dont brings an error. > > > It's a BUG! Isn't it? > It certainly appears to be, yes. -- Andreas Ericsson [EMAIL PROTECTED] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] "notification_interval" from the "serviceescalation" is ignored?
Hi all again! I installed Nagios 3.0b2 and tested the serviceescalations with it - with the same result: "notification_interval" is ignored if i enter a value another then "0"(zero). If i enter a zero - or even nothing - then i see in the webgui - "Notify Only Once (No Re-notification)" in the "Notification Interval"-column for these hosts. Even if I enter an clearly nonsense, like "jsdfjfsdakjl" - the value is ignored and the "pre-flight-check" dont brings an error. It's a BUG! Isn't it? Ilya - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null