> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of VinÃcius de Figueiredo > Sent: Friday, July 20, 2007 11:52 AM > To: [email protected] > 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 [email protected] 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
