Handler for "HOST UP" event not called

capt at krastel.ru capt at krastel.ru
Fri Jul 1 13:13:40 CEST 2005



Hello, nagios users!

I created handler for my host up/down events.
For "down" event handler calls, but when host assumed be up,
no handler called. Why?

My nagios version:
/var/log/nagios # nagios

Nagios 1.2
Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org)
Last Modified: 02-02-2004
License: GPL
...
/var/log/nagios # rpm -q nagios
nagios-1.2-0




My config:
=============================================================================
define host{
        name                            generic-host    ; The name of this host
template - reference
        notifications_enabled           1       ; Host notifications are enabled
        event_handler_enabled           1       ; Host event handler is enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status information
across program restarts
        retain_nonstatus_information    1       ; Retain non-status information
across program resta

        check_command           check-host-alive
        max_check_attempts      10
        notification_interval   120
        notification_period     24x7
        notification_options    d,u,r

        register                        0       ; DONT REGISTER THIS DEFINITION
- ITS NOT A REAL HOS
        }

define host{
        use                     generic-host            ; Name of host template
to use
        host_name               planetsky-gw
        alias                   PlanetSky server router
        address                 10.10.182.188
        event_handler           dialup_planetsky_on_off
        max_check_attempts      3
        }
=============================================================================


My nagios.log :
=============================================================================
[1120212931] HOST ALERT: planetsky-gw;DOWN;SOFT;1;CRITICAL - Plugin timed out
after 10 seconds
[1120212931] HOST EVENT HANDLER:
planetsky-gw;DOWN;SOFT;1;dialup_planetsky_on_off
[1120212941] HOST ALERT: planetsky-gw;DOWN;SOFT;2;CRITICAL - Plugin timed out
after 10 seconds
[1120212941] HOST EVENT HANDLER:
planetsky-gw;DOWN;SOFT;2;dialup_planetsky_on_off
[1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;3;CRITICAL - Plugin timed out
after 10 seconds
[1120212951] HOST EVENT HANDLER:
planetsky-gw;DOWN;SOFT;3;dialup_planetsky_on_off
[1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;4;/bin/ping -n -U -c 1
62.33.182.88
[1120212951] HOST EVENT HANDLER:
planetsky-gw;DOWN;SOFT;4;dialup_planetsky_on_off
[1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;5;/bin/ping -n -U -c 1
62.33.182.88
[1120212951] HOST EVENT HANDLER:
planetsky-gw;DOWN;SOFT;5;dialup_planetsky_on_off
[1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;6;/bin/ping -n -U -c 1
62.33.182.88
[1120212951] HOST EVENT HANDLER:
planetsky-gw;DOWN;SOFT;6;dialup_planetsky_on_off
[1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;7;/bin/ping -n -U -c 1
62.33.182.88
[1120212951] HOST EVENT HANDLER:
planetsky-gw;DOWN;SOFT;7;dialup_planetsky_on_off
[1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;8;/bin/ping -n -U -c 1
62.33.182.88
[1120212951] HOST EVENT HANDLER:
planetsky-gw;DOWN;SOFT;8;dialup_planetsky_on_off
[1120212951] HOST ALERT: planetsky-gw;DOWN;SOFT;9;/bin/ping -n -U -c 1
62.33.182.88
[1120212951] HOST EVENT HANDLER:
planetsky-gw;DOWN;SOFT;9;dialup_planetsky_on_off
[1120212951] HOST ALERT: planetsky-gw;DOWN;HARD;10;/bin/ping -n -U -c 1
62.33.182.88
[1120212951] HOST NOTIFICATION:
janem;planetsky-gw;DOWN;host-notify-by-email;/bin/ping -n -U -c 1 62
[1120212951] HOST NOTIFICATION:
capt;planetsky-gw;DOWN;host-notify-by-email;/bin/ping -n -U -c 1 62.
[1120212951] HOST EVENT HANDLER:
planetsky-gw;DOWN;HARD;10;dialup_planetsky_on_off
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
!!!!!!Handler called!!!!!

..
..
..
[1120214134] HOST ALERT: planetsky-gw;UP;HARD;10;(Host assumed to be up)
[1120214134] SERVICE ALERT: planetsky-gw;ssh;OK;HARD;3;SSH OK - OpenSSH_3.4p1
Debian 1:3.4p1-1.woody
[1120214134] SERVICE ALERT: planetsky-gw;ssh;OK;HARD;3;SSH OK - OpenSSH_3.4p1
Debian 1:3.4p1-1.woody
[1120214134] SERVICE NOTIFICATION: capt;planetsky-gw;ssh;OK;notify-by-email;SSH
OK - OpenSSH_3.4p1 D
============================================================================

Where is "HOST EVENT HANDLER: planetsky-gw;UP;..." ????!!!!!!!!



Help me, please.
Alexander







----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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