<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi there, </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>I got the NRPE daemon running fine and installed the plugins on the remote
machine and tested them with the "nagios" user, so they all work locally on the
remote machine. $USER1$ points to the libexec directory with the check_nrpe
plugin in it: -</DIV>
<DIV> </DIV>
<DIV>$USER1$=/usr/local/nagios/libexec</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I am trying to use check_disk with a remote host
using NRPE and I've setup up the command definitions in the nrpe.cfg file to not
use parameters like so: -</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT
size=2>command[check_disk_root]=/usr/local/nagios/libexec/check_disk -w 50% -c
25% -p /</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2>I've set up my command definition for
check_nrpe like this: -</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT size=2>define command
{</FONT></FONT></FONT></DIV>
<DIV> command_name
check_nrpe</DIV>
<DIV> command_line
$USER1$/check_nrpe -H %HOSTADRESS$ -c $ARGS1$</DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2>}</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2></FONT></FONT></FONT> </DIV>
<DIV>and my remote service like this: -</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT size=2>define service
{</FONT></FONT></FONT></DIV>
<DIV> use
generic-check-disk</DIV>
<DIV> name
remote-root-part-service</DIV>
<DIV> service_description Root Partition
NRPE</DIV>
<DIV> check_command
check_nrpe!check_disk_root</DIV>
<DIV>
register 0</DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2>}</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT size=2>and linked to an actual
host with this: -</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT size=2>define service
{</FONT></FONT></FONT></DIV>
<DIV>
use remote-root-part-service</DIV>
<DIV> host_name
252</DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2>}</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT size=2>...which all works fine
and I've checked it with the -v flag on Nagios. </FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT size=2>If I switch to the Nagios
user "nagios" and execute this command from the shell, it works fine:
-</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2></FONT></FONT></FONT> </DIV>
<DIV>[root@localhost libexec]# ./check_nrpe -H <remote ip
address> -c check_disk_root<BR>DISK OK [725088 kB (73%) free on
/dev/sda8]<BR></DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT size=2>....but I always get an
orange Unknown for all remote services through the web interface with "no output
returned from plugin". </FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT size=2>Help! I've tried
absolutely everything I can think of. Nagios doesn't seem to complain, the NRPE
daemon is running and I can execute all plugins locally and also remote through
the shell. </FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT
size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><FONT size=2>At the end of my rope
here. Advice?</DIV></FONT></FONT></FONT></FONT></DIV></BODY></HTML>