How to make Nagios ping

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


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




More information about the Users mailing list