<html xmlns:v="urn:schemas-microsoft-com:vml" 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)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><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"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@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;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@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 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Disregard this email.  It appears I had a
brain cloud (Joe vs. the Volcano, lol) and left the "4" off my last
argument on the remote host.  UGH!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks anyway,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 color=navy face="Century Gothic"><span
style='font-size:10.0pt;font-family:"Century Gothic";color:navy'>Mark T.
Pearson<br>
</span></font><i><font size=1 color=navy face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:navy;font-style:italic'>Senior
Network Engineer<br>
</span></font></i><font size=1 color=navy face="Century Gothic"><span
style='font-size:9.0pt;font-family:"Century Gothic";color:navy'><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>
</span></font><font size=1 face="Century Gothic"><span style='font-size:9.0pt;
font-family:"Century Gothic"'><ns0:place w:insAuthor="Mark Pearson"
 w:insDate="2005-11-17T15:30:00Z" w:endInsAuthor="Mark Pearson"
 w:endInsDate="2005-11-17T15:30:00Z"><ns0:City w:insAuthor="Mark Pearson"
  w:insDate="2005-11-17T15:30:00Z" w:endInsAuthor="Mark Pearson"
  w:endInsDate="2005-11-17T15:30:00Z"><st1:place w:st="on"><st1:City w:st="on"><font
    color=navy><span style='color:navy'>New York</span></font></st1:City></ns0:City></st1:place><font
 color=navy><span style='color:navy'>, </span></font><ns0:State
  w:insAuthor="Mark Pearson" w:insDate="2005-11-17T15:30:00Z"
  w:endInsAuthor="Mark Pearson" w:endInsDate="2005-11-17T15:30:00Z"><st1:State
  w:st="on"><font color=navy><span style='color:navy'>NY</span></font></st1:State></ns0:State><font
 color=navy><span style='color:navy'> </span></font><ns0:PostalCode
  w:insAuthor="Mark Pearson" w:insDate="2005-11-17T15:30:00Z"
  w:endInsAuthor="Mark Pearson" w:endInsDate="2005-11-17T15:30:00Z"><st1:PostalCode
  w:st="on"><font color=navy><span style='color:navy'>10004</span></font></st1:PostalCode><br>
 </ns0:PostalCode></ns0:place><font color=navy><span style='color:navy'>(212)
539-0605 </span></font></span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Mark Pearson
[mailto:Mark.Pearson@uftwf.org] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, November 17, 2005
3:13 PM<br>
<b><span style='font-weight:bold'>To:</span></b>
'nagios-users@lists.sourceforge.net'<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Nagios-users] How to
debug NRPE</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<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>
New York, NY 10004<br>
(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>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><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>
*******************************************************************************<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>