BUG: "notification_interval" from the "serviceescalation"s is ignored/is not parsed
Ilya Ruprecht
ilya_ruprecht at gmx.de
Tue Sep 4 09:38:04 CEST 2007
Hi all!
<testbed description>
Following situation: Debian 4.0 + Nagios 3.0b1.
I defined a service-template SSH:
########################################################
define service{
name check-ssh-service
check_command check_ssh
service_description SSH
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 10
retry_check_interval 1
contact_groups linux-admins
notification_options w,u,c,r
notification_interval 60
notification_period 24x7
register 0
########################################################
Then i defined a hostgroup, for which i use the SSH service
########################################################
define hostgroup{
hostgroup_name vpn-server
alias VPN-Gateways
members vpn-gw1-remote,vpn-gw1-local
}
########################################################
Now i defined a service that uses the SSH-template and
is applied to the group "vpn-server"
########################################################
define service{
use check-ssh-service
notes SSH auf Linux-Servern
hostgroup_name vpn-server
service_description SSH
}
########################################################
And at last i defined two service-escalations for SSH
(i've set the intervals so short only for testing purposes)
########################################################
define serviceescalation{
hostgroup_name vpn-server
service_description SSH
first_notification 1
last_notification 5
notification_interval 3
contact_groups linux-admins
}
define serviceescalation{
hostgroup_name vpn-server
service_description SSH
first_notification 5
last_notification 0
notification_interval 10
contact_groups linux-admins
}
########################################################
"interval_length" is set to 60 seconds in nagios.cfg.
</testbed description>
<main>
"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.
</main>
Addendum:
I installed Nagios 3.0b2 and tested the serviceescalations with it - with the same result.
Ilya.
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
-------------------------------------------------------------------------
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/
More information about the Developers
mailing list