nagios isn't running well

Eric Hill eric at spins.com
Fri Jan 17 01:34:22 CET 2003


Okay, I was in training last week. Nagios is still not seeing any machines
via check-host-command or check_ping, and everything libexec is sitting
right where it oughta. This is FreeBSD 3.5.

-eric

checkcommands.cfg:
-----------------
# 'check_ping' command definition
define command{
        command_name    check_ping
        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c
$ARG2$ -p 5
        }

# 'check-host-alive' command definition
define command{
        command_name    check-host-alive
        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w 100,80% -c
500,100% -p 1
        }

hosts.cfg:
---------
# 'nt1' host definition
define host{
        use                     generic-host            ; Name of host
template to use
        host_name               comet
        alias                   Corp. File/Print Server
        address                 192.168.1.3
        check_command           check-host-alive
        max_check_attempts      10
        notification_interval   120
        notification_period     24x7
        notification_options    d,u,r
        }

su'd as user nagios:
-------------------
> ./check_ping -H comet.spins.com -w 100,80% -c 500,100%
PING OK - Packet loss = 0%, RTA = 0.20 ms

error message in nagios:
-----------------------
Status Information:		check_ping: %s: Warning threshold must be
integer or percentage!

ps aux:
------
nagios 15549  0.0  2.5  1124  740  ??  Ss    4:35PM   0:00.09
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg




-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en




More information about the Users mailing list