How to make Nagios ping

Giedrius Astrauskas gastrauskas at burrelles.com
Mon Dec 30 17:37:01 CET 2002


Hi,

I guess this is a problem with my use of plugin, because when I run the same
command from the command line, I get an error:

./check_ping -H <real ip was here> -w 5000 -c 10000 -p 5
<wpl> was not set
Could not parse argumentsUsage:
 check_ping -H <host_address> -w <wrta>,<wpl>%% -c <crta>,<cpl>%%
       [-p packets] [-t timeout] [-L]

 check_ping (-h | --help) for detailed help
 check_ping (-V | --version) for version information


Giedrius

----- Original Message -----
From: "Giedrius Astrauskas" <gastrauskas at burrelles.com>
To: <Nagios-users at lists.sourceforge.net>
Sent: Monday, December 30, 2002 11:11 AM
Subject: [Nagios-users] How to make Nagios ping


> Hi,
>
> I am sure that there must be an easy solution to this, because when I was
> using NSCA, Nagios was pinging every time the NSCA client did not return
OK
> message.
>
> However, now I am attempting to simply make Nagios ping the client
computer
> without having installed anything (no NSCA, no NRPE, no plugins)on client
> computer.
> I inlcuded client computer in hosts.cfg, also I created new service entry
in
> services.cfg:
>
> define service{
>         use                             generic-service         ; Name of
> service template to use
>
>         host_name                       zsbld07
>         service_description             CheckPing
>         is_volatile                     0
>         check_period                    24x7
>         max_check_attempts              3
>         normal_check_interval           1
>         retry_check_interval            1
>         contact_groups                  windows-admins
>         notification_interval           60
>         notification_period             24x7
>         notification_options            w,u,c,r
>         check_command                   check_ping_m
>         }
>
> then I created command in checkcommands.cfg:
>
> # 'check_ping_m' command definition
> define command{
>         command_name    check_ping_m
>         command_line    $USER1$/check_ping -H <ip of the host is here,
> removed before posting> -w 5000 -c 10000 -p 5
>         }
>
>
> I installed plugins and above syntax I got from check_ping plugin's help.
> However, when I run Nagios, it displays the status of the above service as
> "UNKNOWN".
> Does it mean that I cannot simply make Nagios ping client computer wihtout
> having anything installed on client?
>
> Sorry, if the question sounds simple - I am still in the process of trying
> to understand how Nagios works.
> I would appreciate any advice.
> Thanks.
>
>
> Giedrius
>
>
>
> -------------------------------------------------------
> 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



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list