check_ping: %s: Warning threshold must be integer or percentage

Network Administrator mis-netadmin at dept.fuller.edu
Sat Feb 25 01:31:04 CET 2006


I notice that every once in a while an unreachable host will generate 
the following emailed message from my RedHat Fedora Core3 nagios server:

***** Nagios  *****

Notification Type: PROBLEM
Host: server_name
State: DOWN
Address: ip_address
Info: check_ping: %s: Warning threshold must be integer or percentage!


Is this the expected threshold warning message or has the 
checkcommand.cfg and/or services.cfg file been incorrectly configured 
for the check_ping command? Useage designates the following:

Usage: check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%
   [-p packets] [-t timeout] [-L] [-4|-6]


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

services.cfg file:
# Service definition
define service{
         use                             generic-service
         host_name                       server_name
         service_description             PING
         is_volatile                     0
         check_period                    24x7
         max_check_attempts              10
         normal_check_interval           2
         retry_check_interval            1
         contact_groups                  linux-admins
         notification_interval           120
         notification_period             24x7
         notification_options            c,r
         check_command                   check_ping!1000,90%!5000,95%
         }


Looking through the FAQ I only found Article F0214; but this did not 
address my question.

Irwin Dulan II
Network Administrator
Fuller Theological Seminary



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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