[Nagiosplug-help] Custom Plugins - NRPE: Unable to read output on Solaris

Vinícius de Figueiredo viniciusfs at gmail.com
Fri Jul 20 18:53:48 CEST 2007


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




More information about the Help mailing list