Am i stupid? (check_ping)

Subhendu Ghosh sghosh at sghosh.org
Thu Apr 24 08:12:19 CEST 2003


And the outpuut of 
"/bin/ping -n -c 5 192.168.224.254" is ??

also check $? (return code and the stderr channel.

-sg


On Thu, 24 Apr 2003, Jan Johansson wrote:

> >run the check_ping on the commandline with "-v" option
> >
> >It will print out the exact syntax being used.
> >
> >run the exact syntax and post all output.
> 
> hooch:/etc/nagios# /usr/lib/nagios/plugins/check_ping -v -H
> 192.168.224.254 -w 500.0,20%% -c 1000.0,60%%
> /bin/ping -n -c 5 192.168.224.254 ==> PING OK - Packet loss = 0%, RTA =
> 60.10 ms
> 500.000000:20% 1000.000000:60%
> hooch:/etc/nagios#
> 
> and yet. 
> 
> ndc4-vpn-1  PING  WARNING 04-24-2003 08:06:13 0d 3h 14m 15s 3/3 PING
> WARNING Packet loss = 0%, RTA = 52.90 ms  
> 
> define service{
>         use                             generic-service         ; Name
> of service template to use
> 
>         host_name                       ndc4-vpn-1   
>         service_description             PING
>         is_volatile                     0   
>         check_period                    24x7   
>         max_check_attempts              3
>         normal_check_interval           5
>         retry_check_interval            1
>         contact_groups                  router-admins
>         notification_interval           240
>         notification_period             24x7
>         notification_options            c,r
>         check_command                   check_ping!500.0,20%!1000.0,60%
>         }
> 

-- 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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