Host DOWN
Dmitry Chorine
dmitryc at drumbeatdigital.com
Wed Mar 3 15:39:52 CET 2004
Jag,
What do you mean to run check-host-command from command line?
According to checkcommands.cfg
########################################################################
########
#
# SAMPLE HOST CHECK COMMANDS
#
########################################################################
########
# This command checks to see if a host is "alive" by pinging it
# The check must result in a 100% packet loss or 5 second (5000ms) round
trip
# average time to produce a critical error.
# Note: Only one ICMP echo packet is sent (determined by the '-p 1'
argument)
# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w
3000.0,80% -c 500
0.0,100% -p 1
}
Command line was used
$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
Where do I type this commmand? Its obviosly not a shell command
-----Original Message-----
From: Jag [mailto:agrajag at dragaera.net]
Sent: Tuesday, March 02, 2004 5:35 PM
To: Dmitry Chorine
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Host DOWN
On Tue, 2004-03-02 at 14:02, Dmitry Chorine wrote:
> I get host down of local server where I run nagios from :)
>
> So its very weird..
>
> ***** Nagios *****
>
> Notification Type: PROBLEM
> Host: tama
> State: DOWN
> Address: 192.168.3.33
> Info: (No output!)
>
> Date/Time: Tue Mar 2 13:46:17 EST 2004
I've found that when it says 'Info: (No output!)', the plugin is usually
outputing something to stderr, and nagios isn't paying attention to
that. Does anyone know why nagios ignores stderr? stderr is a very
useful debugging tool.
I suggest trying to run your check-host-command plugin from the command
line and seeing what it says. That may tell you why its returning an
error state.
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&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