<!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.2722.900" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>Hi all
-</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>I am having a bit of
trouble with NRPE....</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>NRPE
1.8</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>nagios host: RH
Linux 7.2</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>remote host: Solaris
8 x86</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>I am getting the
error:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>[nagios@vader
libexec]$ ./check_nrpe -H obiwan -c check_oracle_pmon<BR>CHECK_NRPE: Received 0
bytes. Are we allowed to connect to the host?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>I am running the
NRPE daemon on the remote host as such:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>[nagios@obiwan
~/bin]$./nrpe -c /opt/local/nagios/bin/nrpe.cfg --daemon</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>I can see that the
remote host is listening on the correct port:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>[nagios@obiwan
~/bin]$netstat -an | grep 5666<BR>
*.5666
*.*
0 0 65536 0
LISTEN<BR>192.168.100.78.5666 192.168.100.33.39932
5840 0 66608 0
TIME_WAIT<BR>192.168.100.78.5666 192.168.100.33.39990
5840 0 66608 0
TIME_WAIT</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>However - I cannot
see any PID associated with the NRPE daemon (output from ps
-ef)?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>The command (plugin)
that I am running on the remote host works fine:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>[nagios@obiwan
~/libexec]$./check_oracle --db PRACTICE<BR>PRACTICE OK - 1 PMON process(es)
running</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>Here are (from what
I can see) the relevant portions of nrpe.cfg:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003>allowed_hosts=127.0.0.1,
192.168.100.33</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003>command[check_oracle_pmon]=/opt/local/nagios/libexec/check_oracle
--db PRACTICE</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>Configurations on
my NAGIOS host:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003>checkcommands.cfg:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003># 'check_nrpe'
command definition<BR>define
command{<BR> command_name check_nrpe<BR> command_line $USER1$/check_nrpe
-H $HOSTADDRESS$ -c $ARG1$<BR> }</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003>services.cfg:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003># Service
Description -- Verify Oracle instance is running (checking for PMON)<BR>define
service{<BR> use ti-template<BR> host_name obiwan<BR> service_description Oracle
8i
PMON<BR> check_command check_nrpe!check_oracle_pmon<BR> }</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003>So...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>Am I missing the
obvious?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=697431400-28022003>TIA for sharing any
advice / experience...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=697431400-28022003>-D</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>David Levine</FONT></DIV>
<DIV><FONT face=Verdana size=2>Systems Administrator</FONT></DIV>
<DIV><FONT face=Verdana size=2>Ticket Innovations, Inc.</FONT></DIV>
<DIV><FONT face=Verdana size=2>1555 Mittel Blvd. Suite J</FONT></DIV>
<DIV><FONT face=Verdana size=2>Wood Dale, IL 60191</FONT></DIV>
<DIV><FONT face=Verdana size=2>Voice: 630-477-8329</FONT></DIV>
<DIV><FONT face=Verdana size=2>Fax: 630-787-9951</FONT></DIV>
<DIV><FONT face=Verdana size=2><A
href="mailto:dlevine@seasontickets.com">dlevine@seasontickets.com</A></FONT></DIV>
<DIV> </DIV></BODY></HTML>