<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.gmailquote
{mso-style-name:gmail_quote;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>James,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> It doesn’t sound the same – but the last time I
ran into this it was because the SUDO session for all users required TTY. The
NRPE session doesn’t have a TTY. But for us this caused the REMOTE NRPE call
to fail. It sounds like you are able to do the remote call properly…so
probably not the same thing.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Erik<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
nagiosplug-help-bounces@lists.sourceforge.net
[mailto:nagiosplug-help-bounces@lists.sourceforge.net] <b>On Behalf Of </b>James
Bewley<br>
<b>Sent:</b> Wednesday, January 16, 2008 8:44 AM<br>
<b>To:</b> nagiosplug-help@lists.sourceforge.net<br>
<b>Subject:</b> [Nagiosplug-help] NRPE returns correct data,while Nagios shows
"No Output"<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>Hi all, <br>
<br>
I've written some custom plugins that monitor some software around a
cluster. I can run them on the individual cluster nodes with "sudo
-u /usr/local/nagios/libexec/plugin.pl" and i get a single line printed to
stdout and the correct return value. <br>
<br>
All looks good?<br>
<br>
So then I run the nrpe client on the nagios server to retrieve the values
returned from the plugin like so:<br>
"sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H cluster_node -t 30
-c check_remote_plugin" <br>
<br>
Which also prints the expected string and return value ( which is something
like "plugin:OK blahh text \n")<br>
and returns the correct value ( 0 in this OK state).<br>
<br>
So far so good?<br>
<br>
But when I go to the nagios servers web page (status grid) I get WARNING
"(No output!)" <br>
<br>
I've been scratching my head about this for a while now, can anyone over a
solution??<br>
<br>
James<br>
james at avbrief dot com<br>
<br>
<o:p></o:p></p>
</div>
</body>
</html>