<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2>Everyone,</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial size=2>I am trying to get
NRPE to use check_memory from a remote server, but I keep getting:
</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial size=2>CHECK_NRPE: Error
receiving data from daemon.</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial size=2>My services.cfg
looks like this:</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial size=2>define
service{<BR>
use
generic-service ; Name of
service<BR>
host_name
buri<BR>
service_description Total
Memory<BR>
is_volatile
0<BR>
check_period
24x7<BR>
max_check_attempts
3<BR>
normal_check_interval
5<BR>
retry_check_interval
1<BR>
contact_groups
network-admins<BR>
notification_interval
60<BR>
notification_period
none<BR>
notification_options c,r</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2>
check_command
check_rem_mem<BR>
}</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial size=2>My checkcommands.cfg
looks like this:</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial size=2># 'check_rem_mem'
command definition<BR>define
command{<BR>
command_name
check_rem_mem<BR>
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c
check_mem<BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial size=2>and on the remote
server, the nrpe.cfg looks like this:</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2>command[check_mem]=/var/lib/nagios/check_memory -t total -w 30 -c
10</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial size=2>I am using Nagios
1.2, both machines are FC2 and check_memory works fine on the remote machine,
when run from there.</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial size=2>Thanks in
advance.</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial size=2>Brian
Erickson</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial size=2>Network
Manager</FONT></SPAN></DIV>
<DIV><SPAN class=322042123-29122004><FONT face=Arial
size=2></FONT></SPAN> </DIV></BODY></HTML>