Custom Plugins - NRPE: Unable to read output onSolaris
Marc Powell
marc at ena.com
Fri Jul 20 19:12:08 CEST 2007
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Vinícius de Figueiredo
> Sent: Friday, July 20, 2007 11:52 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Custom Plugins - NRPE: Unable to read output
> onSolaris
>
> I wrote two simple shell scripts to check CPU and RAM usage and return
> output in percentage. I tested locally and both scripts worked fine on
> Solaris and Linux servers.
>
> When I tried to run these scripts via NRPE from my Nagios server I got
> this error only on my Solaris machine:
>
> # ./check_nrpe -H 10.121.240.171 -c check_cpu
> NRPE: Unable to read output
>
> The same error when I tried to run via check_nrpe locally:
>
> # ./check_nrpe -H localhost -c check_cpu
> NRPE: Unable to read output
>
I see that you have a pension for testing as root. Don't. You should always test as the user that is going to be running the program. They'll almost certainly have higher access restrictions than root.
Can you successfully run your plugins on the Solaris box as the nrpe user? If so, try putting nrpe in debug mode and see what it complains about.
--
Marc
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list