Notification Interval problem

J. Eric Steidley Eric.Steidley at collectiveview.com
Sun Oct 19 05:13:50 CEST 2008


I am having an issue where notification are going out every minute,
regardless of what I have set in templates and service definitions.  I am
running Nagios 3.0.3 on CentOS / RHEL 5 (2.6.18-92.1.10.el5)  It also does
this with the same config files on Nagios 2.x box, so I assume it is
something in my config, but I can't seem to find the problem.  Any ideas?
 

Sample of notifications log, note that it sent out nags every minute:
SERVER1 win-mem CRITICAL 10-16-2008 00:09:22 eric notify-service-cv
Connection refused 
SERVER1 win-mem CRITICAL 10-16-2008 00:09:22 ericcell notify-service-cv
Connection refused 
SERVER1 win-mem CRITICAL 10-16-2008 00:09:22 nagiosadmin notify-by-rss
Connection refused 
SERVER1 win-mem CRITICAL 10-16-2008 00:08:22 eric notify-service-cv
Connection refused 
SERVER1 win-mem CRITICAL 10-16-2008 00:08:22 ericcell notify-service-cv
Connection refused 
SERVER1 win-mem CRITICAL 10-16-2008 00:08:22 nagiosadmin notify-by-rss
Connection refused 
SERVER1 win-mem CRITICAL 10-16-2008 00:07:22 eric notify-service-cv Memory
usage: total:863.22 Mb - used: 519.74 Mb (60%) - free: 343.48 Mb (40%) 
SERVER1 win-mem CRITICAL 10-16-2008 00:07:22 ericcell notify-service-cv
Memory usage: total:863.22 Mb - used: 519.74 Mb (60%) - free: 343.48 Mb
(40%) 
SERVER1 win-mem CRITICAL 10-16-2008 00:07:22 nagiosadmin notify-by-rss
Memory usage: total:863.22 Mb - used: 519.74 Mb (60%) - free: 343.48 Mb
(40%) 
SERVER1 win-mem CRITICAL 10-16-2008 00:06:22 eric notify-service-cv Memory
usage: total:863.22 Mb - used: 520.20 Mb (60%) - free: 343.01 Mb (40%) 
SERVER1 win-mem CRITICAL 10-16-2008 00:06:22 ericcell notify-service-cv
Memory usage: total:863.22 Mb - used: 520.20 Mb (60%) - free: 343.01 Mb
(40%) 
SERVER1 win-mem CRITICAL 10-16-2008 00:06:22 nagiosadmin notify-by-rss
Memory usage: total:863.22 Mb - used: 520.20 Mb (60%) - free: 343.01 Mb
(40%) 
SERVER1 win-mem CRITICAL 10-16-2008 00:05:22 eric notify-service-cv Memory
usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb (40%) 
SERVER1 win-mem CRITICAL 10-16-2008 00:05:22 ericcell notify-service-cv
Memory usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb
(40%) 
SERVER1 win-mem CRITICAL 10-16-2008 00:05:22 nagiosadmin notify-by-rss
Memory usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb
(40%) 
SERVER1 win-mem CRITICAL 10-16-2008 00:04:23 eric notify-service-cv Memory
usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb (40%) 
SERVER1 win-mem CRITICAL 10-16-2008 00:04:22 ericcell notify-service-cv
Memory usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb
(40%) 
SERVER1 win-mem CRITICAL 10-16-2008 00:04:22 nagiosadmin notify-by-rss
Memory usage: total:863.22 Mb - used: 520.09 Mb (60%) - free: 343.13 Mb
(40%) 
 

in NAGIOS.CFG
interval_length=60
 
in OBJECTS/SERVERS.CFG
define service {
     host_name                     SERVER1
     service_description           std-nagios.asp
     use                           critical-service
     check_command                 check_asp!$HOSTADDRESS$!/nagios.asp!good
     notification_interval         10
     notification_period           24x7
     notification_options          c,r ; CRITICAL, Recovery
}
define service {
     name                          critical-service
     service_description           Service Checks every 1 minute
     is_volatile                   1 ; True
     max_check_attempts            3
     normal_check_interval         1
     retry_check_interval          1
     active_checks_enabled         1 ; True
     passive_checks_enabled        1 ; True
     check_period                  24x7
     parallelize_check             0 ; False
     obsess_over_service           0 ; False
     check_freshness               0 ; False
     freshness_threshold           361
     event_handler_enabled         1 ; True
     low_flap_threshold            0
     high_flap_threshold           0
     flap_detection_enabled        1 ; True
     process_perf_data             1 ; True
     retain_status_information     1 ; True
     retain_nonstatus_information  1 ; True
     notification_interval         10
     notification_period           24x7
     notification_options          c,r ; CRITICAL, Recovery
     notifications_enabled         1 ; True
     contact_groups                cv-critical
     register                      0 ; False
}

inSTATUS.DAT
hoststatus {
        host_name=SERVER1
        modified_attributes=0
        check_command=check-host-alive
        check_period=24x7
        notification_period=awakehours
        check_interval=1.000000
        retry_interval=1.000000
        event_handler=
        has_been_checked=1
        should_be_scheduled=1
        check_execution_time=4.032
        check_latency=0.250
        check_type=0
        current_state=0
        last_hard_state=0
        last_event_id=0
        current_event_id=0
        current_problem_id=0
        last_problem_id=0
        plugin_output=PING OK - Packet loss = 0%, RTA = 3.60 ms
        long_plugin_output=
        performance_data=rta=3.598000ms;3000.000000;5000.000000;0.000000
pl=0%;80;100;0
        last_check=1224277872
        next_check=1224277942
        check_options=0
        current_attempt=1
        max_attempts=10
        current_event_id=0
        last_event_id=0
        state_type=1
        last_state_change=1222329089
        last_hard_state_change=1222329089
        last_time_up=1224277882
        last_time_down=0
        last_time_unreachable=0
        last_notification=0
        next_notification=0
        no_more_notifications=0
        current_notification_number=0
        current_notification_id=0
        notifications_enabled=1
        problem_has_been_acknowledged=0
        acknowledgement_type=0
        active_checks_enabled=1
        passive_checks_enabled=1
        event_handler_enabled=1
        flap_detection_enabled=1
        failure_prediction_enabled=1
        process_performance_data=1
        obsess_over_host=1
        last_update=1224277892
        is_flapping=0
        percent_state_change=0.00
        scheduled_downtime_depth=0
        }
 
servicestatus {
        host_name=SERVER1
        service_description=std-nagios.asp
        modified_attributes=0
        check_command=check_asp!$HOSTADDRESS$!/nagios.asp!good
        check_period=24x7
        notification_period=24x7
        check_interval=1.000000
        retry_interval=1.000000
        event_handler=
        has_been_checked=1
        should_be_scheduled=1
        check_execution_time=0.126
        check_latency=0.159
        check_type=0
        current_state=0
        last_hard_state=0
        last_event_id=0
        current_event_id=0
        current_problem_id=0
        last_problem_id=0
        current_attempt=1
        max_attempts=3
        current_event_id=0
        last_event_id=0
        state_type=1
        last_state_change=1222329089
        last_hard_state_change=1222329089
        last_time_ok=1224277833
        last_time_warning=0
        last_time_unknown=0
        last_time_critical=0
        plugin_output=HTTP OK HTTP/1.1 200 OK - 0.085 second response time
        long_plugin_output=
        performance_data=time=0.085371s;;;0.000000 size=269B;;;0
        last_check=1224277833
        next_check=1224277893
        check_options=0
        current_notification_number=0
        current_notification_id=0
        last_notification=0
        next_notification=0
        no_more_notifications=0
        notifications_enabled=1
        active_checks_enabled=1
        passive_checks_enabled=1
        event_handler_enabled=1
        problem_has_been_acknowledged=0
        acknowledgement_type=0
        flap_detection_enabled=1
        failure_prediction_enabled=1
        process_performance_data=1
        obsess_over_service=0
        last_update=1224277892
        is_flapping=0
        percent_state_change=0.00
        scheduled_downtime_depth=0
        }
 



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list