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 On Linux machine everything works well from Nagios and locally. # ./check_nrpe -H 10.121.240.170 -c check_cpu CPU OK - CPU usage in 1%|cpu=1%;80;90 # ./check_nrpe -H localhost -c check_cpu CPU OK - CPU usage in 12%|cpu=12%;80;90 All other checks that I run on this Solaris box from Nagios are OK: # ./check_nrpe -H 10.121.240.171 -c check_disk DISK OK - free space: / 5433 MB (55% inode=93%);| /=4314MB;9826;9836;0;9846 All permissions and command definitions on nrpe.cfg are OK. I'm stuck here, anyone can help me? My custom scripts source codes can be found here: http://vinicius.oitobits.net/arquivo/plugins-check_cpu-e-check_ram-para-nagios/ I don't know why these scripts works locally but can't be executed by check_nrpe on Solaris. Thanks. And sorry about my really bad English. vinícius. http://vinicius.oitobits.net http://www.oitobits.net ------------------------------------------------------------------------- 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
