Hosts checks when host can't be pinged.

D.S. org_nagios at L93.com
Thu May 26 03:47:19 CEST 2005


I have several hosts behind a firewall that does not allow pings and
would like to only monitor their status only by services and not via
hosts.cfg.  To this end I've added this generic in hosts:

define host{
        name                            generic-d    ; The name of this
host template - referenced in other host
        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 restarts

        check_command           dummy
        parents                 rw-pix
        max_check_attempts      10
#        check_interval         0
        notification_interval   120
        notification_period     24x7
        notification_options    d,u,r

        register                        0       ; DONT REGISTER THIS
DEFINITION
- ITS NOT A REAL HOST, JUST A TEMPLATE!
        }

The "dummy" check command is defined as:

define command{
        command_name    dummy
        command_line    $USER1$/check-dummy 1
        }

But I'm getting:
[05-25-2005 16:06:04] HOST ALERT: dns1;DOWN;HARD;10;(No output!)
Host Down[05-25-2005 16:06:04] HOST ALERT: dns1;DOWN;SOFT;9;(No output!)
Host Down[05-25-2005 16:06:04] HOST ALERT: dns1;DOWN;SOFT;8;(No output!)
Host Down[05-25-2005 16:06:04] HOST ALERT: dns1;DOWN;SOFT;7;(No output!)
Host Down[05-25-2005 16:06:04] HOST ALERT: dns1;DOWN;SOFT;6;(No output!)
Host Down[05-25-2005 16:06:04] HOST ALERT: dns1;DOWN;SOFT;5;(No output!)
Host Down[05-25-2005 16:06:04] HOST ALERT: dns1;DOWN;SOFT;4;(No output!)
Host Down[05-25-2005 16:06:04] HOST ALERT: dns1;DOWN;SOFT;3;(No output!)
Host Down[05-25-2005 16:06:04] HOST ALERT: dns1;DOWN;SOFT;2;(No output!)
Host Down[05-25-2005 16:06:04] HOST ALERT: dns1;DOWN;SOFT;1;(No output!)

... How can the dummy script time out?  Am I doing something wrong?  Is
there a way I can just turn off host checks and rely on service checks? 
let me know :)

--David





-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&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