NRPE revised

Justin Cobb jcobb at optibrand.com
Mon Sep 27 22:42:07 CEST 2004


Tim Wolak wrote:

> All,
>
> I am able to get NRPE to respond back with NRPE v2.0 but still am not 
> getting any data.  Here is my check command file, services file and 
> the nrpe.cfg.  Thanks in advance.
>
> Check command
>
> # 'check_nrpe' command definition
>
> define command{
>
>         command_name    check_nrpe
>
>         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$
>
>         }
>
> Service file
>
> Service definition
>
> define service{
>
>         use                             generic-service         ;
>
>         host_name                       chilorms3
>
>         service_description             DISK
>
>         is_volatile                     0
>
>         check_period                    24x7
>
>         max_check_attempts              3
>
>         normal_check_interval           5
>
>         retry_check_interval            1
>
>         contact_groups                  linux-admins
>
>         notification_interval           240
>
>         notification_period             24x7
>
>         notification_options            c,r
>
>         check_command                   check_nrpe!check_disk
>
>         }
>
> NRPE Config
>
> # The following examples use hardcoded command arguments...
>
> #command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
>
> #command[check_load]=/usr/local/nagios/libexec/check_load
>
> #command[check_load]=/usr/local/nagios/libexec/check_load
>
> command[check_disk]=/usr/local/nagios/libexec/check_disk -w 85 -c 65 
> -x /dev/hda1
>
> #command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 
> -p /dev/hdb1
>
> #command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 
> 5 -c 10 -s Z
>
> #command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 
> 150 -c 200
>
> #command[check_disk]=/usr/local/nagios/libexec/check_disk
>
> Tim Wolak
>
> *Server Engineer*
>
> *Computershare Investor Services*
>
> 2 N. LaSalle
>
> Chicago, Il 60602
>
> 312.588.4992 x4971
>
>
>
> **********************************************************************
>
> This message is intended for the sole use of the intended recipient. 
> The message and any files transmitted with it
> may contain material that is confidential and/or legally
> privileged. Any review, reliance or distribution by others or
> forwarding without express permission is strictly prohibited.
> If you are not the intended recipient, please contact the
> sender and delete all copies.
> ***********************************************************************

It's possible you aren't defining your local check correctly. The 
definition below will run the
command check_disk1 on the remote machine. check_disk1 is defined in the 
nrpe.cfg file. You then need to call the check_disk_rm command from 
nagios in your services file


#check remote disk
define command{
        command_name    check_disk_rm
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_disk1
        }


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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