Need help with nrpe and check_memory

Brian Erickson brian.erickson at apigroupinc.us
Thu Dec 30 00:26:29 CET 2004


Everyone,
 
I am trying to get NRPE to use check_memory from a remote server, but I keep
getting: 
 
CHECK_NRPE: Error receiving data from daemon.
 
My services.cfg looks like this:
 
define service{
        use                     generic-service         ; Name of service
        host_name               buri
        service_description     Total Memory
        is_volatile             0
        check_period            24x7
        max_check_attempts      3
        normal_check_interval   5
        retry_check_interval    1
        contact_groups          network-admins
        notification_interval   60
        notification_period     none
        notification_options    c,r
        check_command           check_rem_mem
        }
 
My checkcommands.cfg looks like this:
 
# 'check_rem_mem' command definition
define command{
        command_name    check_rem_mem
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_mem
        }
 
and on the remote server, the nrpe.cfg looks like this:
 
command[check_mem]=/var/lib/nagios/check_memory -t total -w 30 -c 10
 
I am using Nagios 1.2, both machines are FC2 and check_memory works fine on
the remote machine, when run from there.
 
Thanks in advance.
 
Brian Erickson
Network Manager
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041229/e8cb2fd5/attachment.html>


More information about the Users mailing list