<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
I had some issues getting the nrpe client to run some checks properly in <br>Solaris 10. It was the 'unable to read plugin output' error when running <br>'check_oracle' and some others that output multi-line text. In the end I <br>was unable to figure out whether it was *nix permissions, RBAC, <br>build/lib issues, an old shell, env vars, or some other subtle issue. <br>I'm not certain, but there may be pre-compiled binaries available for <br>Solaris 8. Anyway, good luck.<br><br>Grant Lowe wrote:<br>> Hi Philip,<br>><br>> First, thanks for the reply. I appreciate the help.<br>><br>> Well, I changed my nrpe configuration around, so hopefully I don't need to enable command-line arguments via the "dont_blame_nrpe" directive now. Please let me know if this sounds and looks good.<br>><br>> On the nagios server, I now get this error:<br>><br>> [root@nagios-test objects]# /usr/lib/nagios/plugins/check_nrpe -H 172.20.60.50 -n -c check_disk<br>> NRPE: Unable to read output<br>> [root@nagios-test objects]#<br>><br>> So it seems like the syntax is ok as the remote host is not complaining in syslog.<br>><br>> I know the command runs ok on the remote host as I get this:<br>><br>> myhost /usr2/glowe> /opt/csw/libexec/nagios-plugins/check_disk -w 20 -c 10<br>> DISK CRITICAL - free space: / 1023 MB (52% inode=83%); /usr 917 MB (47% inode=85%); /var 1735 MB (43% inode=95%); /var/run 13530 MB (99% inode=99%); /tmp 13530 MB (99% inode=99%)<br>> nyhost /usr2/glowe><br>><br>> My nrpe.cfg file for check_disk looks like this:<br>><br>> command[check_disk]=/opt/csw/libexec/nagios-plugins/check_disk -w 20 -c 10<br>><br>> So what am I doing wrong, to get the "Unable to read output" in syslog?<br>><br>><br>><br>> ----- Original Message ----<br>> From: Philip Marcus <pmarcus@structuredcommons.com><br>> To: Grant Lowe <glowe@sbcglobal.net><br>> Cc: nagiosplug-help@lists.sourceforge.net<br>> Sent: Saturday, October 4, 2008 8:15:21 PM<br>> Subject: Re: [Nagiosplug-help] Error: Request contained command arguments, but argument option is not enabled!<br>><br>> Hey Grant,<br>><br>> By default, the nrpe daemon does not allow remote command line<br>> arguments to be passed to it.<br>><br>> To enable this, you'll need to recompile it using something like<br>> "./configure --enable-command-args".<br>><br>> If you've already done this, make sure the nrpe.cfg file has the option:<br>><br>> dont_blame_nrpe=1 instead of the default which is 0. (restart the<br>> nrpe after changing config options).<br>><br>> These details are documented in the SECURITY file packaged in the<br>> nrpe.tar.gz. Their are security implications with enabling remote<br>> command line arguments to be passed to nrpe.<br>><br>> Of course, you can bypass all this by setting static warning,<br>> critical, and partition arguments in the nrpe.cfg file, and just<br>> calling that command without arguments.<br>><br>> Hope this helps,<br>><br>> Philip<br>><br>><br>><br>><br>> On Tue, Sep 30, 2008 at 11:21 AM, Grant Lowe <glowe@sbcglobal.net> wrote:<br>> <br>>> Hi all,<br>>><br>>> I have a nagios 3.0.3 server running on RHEL 5.2. The client is Solaris 8 running nrpe 2.10.<br>>><br>>> I get this in the Solaris logs:<br>>><br>>> Sep<br>>> 30 10:36:08 myhost nrpe[7179]: [ID 396531 daemon.error] Error: Request<br>>> contained command arguments, but argument option is not enabled!<br>>> Sep 30 10:36:08 myhost nrpe[7179]: [ID 900267 daemon.error] Client request was invalid, bailing out...<br>>><br>>> But if I run it locally, it comes back fine:<br>>><br>>> myserver /tmp> /opt/csw/libexec/nagios-plugins/check_disk -w 90 -c 95 /dev/dsk/c0t0d0s0<br>>> DISK OK - free space: / 1023 MB (52% inode=83%);| /=923MB;1917;1912;0;2007<br>>> myserver /tmp><br>>><br>>> Here's what I get from the server side:<br>>><br>>> [root@nagios-test<br>>> libexec]# /usr/lib/nagios/plugins/check_nrpe -H 172.20.60.50 -t 60 -n<br>>> check_disk -a -w 90 -c 95 /dev/dsk/c0t0d0s0<br>>> CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.<br>>> [root@nagios-test libexec]#<br>>><br>>> It's<br>>> seems to me that it's a configuration error, but I'm not sure what to<br>>> fix. Please help and don't be too hard on me as I'm kind of new to<br>>> this. :-)<br>>><br>>> -------------------------------------------------------------------------<br>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>>> Build the coolest Linux based applications with Moblin SDK & win great prizes<br>>> Grand prize is a trip for two to an Open Source event anywhere in the world<br>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/<br>>> _______________________________________________<br>>> Nagiosplug-help mailing list<br>>> Nagiosplug-help@lists.sourceforge.net<br>>> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help<br>>> ::: Please include plugins version (-v) and OS when reporting any issue.<br>>> ::: Messages without supporting info will risk being sent to /dev/null<br>>><br>>> <br>><br>><br>> -------------------------------------------------------------------------<br>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>> Build the coolest Linux based applications with Moblin SDK & win great prizes<br>> Grand prize is a trip for two to an Open Source event anywhere in the world<br>> http://moblin-contest.org/redirect.php?banner_id=100&url=/<br>> _______________________________________________<br>> Nagiosplug-help mailing list<br>> Nagiosplug-help@lists.sourceforge.net<br>> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help<br>> ::: Please include plugins version (-v) and OS when reporting any issue. <br>> ::: Messages without supporting info will risk being sent to /dev/null<br>><br>><br>> <br><br></body>
</html>