<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns0="urn:schemas-microsoft-com:office:smarttags">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Century Gothic";
panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hey everyone,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am trying to debug a problem that I will describe below,
but for the life of me I cannot locate the debugging info for NRPE. I
enabled debugging in the nrpe.cfg and I'm tailing the /var/log/messages
but only the standard messages appear there.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Here is what I am trying to do:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>On the Nagios Host I am running the following command
manually.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> ./check_nrpe
-H app-dev -p 5666 -c check_tcp -a 1 5 as400 449<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>On the Nagios Remote this the corresponding command in the
nrpe.cfg.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> command[check_tcp]=/usr/local/nagios/libexec/check_tcp
-w $ARG1$ -c $ARG2$ -H $ARG3$ -p $ARG$<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>On the Nagios Host I get the following error.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> CHECK_NRPE:
Error receiving data from daemon.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am currently using the nrpe daemon to call other plugins
(i.e. Check_disk & check_load) which work fine but I am not passing arguments.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Now, I have reconfigured the nrpe daemon by running "./configure
--enable-command-args" and I have set the "don't_blame_nrpe=1"
to. After recompiling nrpe I replaced the check_nrpe on the Nagios host
as well as replaced the /usr/sbin/nrpe with the newly built file.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>What else am I missing? Am I passing the arguments
incorrectly?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks in advance for any help.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Century Gothic"><span style='font-size:
10.0pt;font-family:"Century Gothic"'>Mark T. Pearson<br>
</span></font><i><font size=1 face="Century Gothic"><span style='font-size:
9.0pt;font-family:"Century Gothic";font-style:italic'>Senior Network Engineer<br>
</span></font></i><font size=1 face="Century Gothic"><span style='font-size:
9.0pt;font-family:"Century Gothic"'><a href="BLOCKED::http://www.uft.org/"
title="http://www.uft.org/">UFT Welfare Fund</a><br>
52 Broadway, 8<sup>th</sup> Floor<br>
<ns0:place w:insAuthor="Mark Pearson" w:insDate="2005-11-17T15:03:00Z"
w:endInsAuthor="Mark Pearson" w:endInsDate="2005-11-17T15:03:00Z"><ns0:City
w:insAuthor="Mark Pearson" w:insDate="2005-11-17T15:03:00Z"
w:endInsAuthor="Mark Pearson" w:endInsDate="2005-11-17T15:03:00Z"><st1:place
w:st="on"><st1:City w:st="on">New York</st1:City></ns0:City></st1:place>, <ns0:State
w:insAuthor="Mark Pearson" w:insDate="2005-11-17T15:03:00Z"
w:endInsAuthor="Mark Pearson" w:endInsDate="2005-11-17T15:03:00Z"><st1:State
w:st="on">NY</st1:State></ns0:State> <ns0:PostalCode w:insAuthor="Mark Pearson"
w:insDate="2005-11-17T15:03:00Z" w:endInsAuthor="Mark Pearson"
w:endInsDate="2005-11-17T15:03:00Z"><st1:PostalCode w:st="on">10004</st1:PostalCode><br>
</ns0:PostalCode></ns0:place>(212) 539-0605 </span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<FONT SIZE=3><BR>
<BR>
*******************************************************************************<BR>
The views, opinions, and judgments expressed in this message are solely those of the author. The message contents have not been reviewed or approved by the UFT Welfare Fund.<BR>
*******************************************************************************<BR>
</FONT>
</body>
</html>