Hosts checks when host can't be pinged.

Arno Lehmann al at its-lehmann.de
Thu May 26 13:00:03 CEST 2005


Hello,

D.S. wrote:
> 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 :)

It's not timing out. It doesn't deliver any output and exits indicating 
  down state. Just what you told it to.

See the following, and try that instead:

> elf:/usr/lib/nagios/plugins # ./check_dummy --help
> check_dummy (nagios-plugins 1.4) 1.14
> Copyright (c) 1999 Ethan Galstad <nagios at nagios.org>
> Copyright (c) 1999-2004 Nagios Plugin Development Team
>         <nagiosplug-devel at lists.sourceforge.net>
> 
> This plugin will simply return the state corresponding to the numeric value
> of the <state> argument with optional text.
> 
> Usage: check_dummy <integer state> [optional text]
> 
> Options:
>  -h, --help
>     Print detailed help screen
>  -V, --version
>     Print version information
> 
> Send email to nagios-users at lists.sourceforge.net if you have questions
> regarding use of this software. To submit patches or suggest improvements,
> send email to nagiosplug-devel at lists.sourceforge.net
> elf:/usr/lib/nagios/plugins # ./check_dummy 0 "not checked"; echo $?
> OK: not checked
> 0


Arno

> --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

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
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