NRPE: Unable to read output
Posted: Wed Apr 01, 2015 1:45 am
I have download the check_zfs.pl from the exchange site, and get a "NRPE: Unable to read output" when I use it, it runs well without nrpe both as root and as the nagios user.
this is the output that I get, I also showed the output from "check_swap.pl" which works fine.
This is the output from the client:
root@W96248:global # id
uid=0(root) gid=0(root)
root@W96248:global # ls -l check_zfs.pl
-rwxr-xr-x 1 nagios bin 18390 Mar 31 15:15 check_zfs.pl
root@W96248:global # ./check_nrpe -H 127.0.0.1
NRPE v2.14
root@W96248:global # ./check_nrpe -H 127.0.0.1 -t 30 -c check_zfs -a '-p'
NRPE: Unable to read output
root@W96248:global # ./check_zfs.pl -p
OK: ZFS on W96248 - No zfs failures detected
root@W96248:global # ./check_nrpe -H 127.0.0.1 -t 30 -c check_swap -a '-w 30% -c 20% -m swap'
OK: Available swap (85.0%) > warning threshold (30.0%)|available=57729836kB free=49087576kB allocated=8169424kB reserved=472836kB used=8642260kB
root@W96248:global # su - nagios
Oracle Corporation SunOS 5.10 Generic Patch January 2005
-bash-3.2$ cd /opt/nagios/libexec
-bash-3.2$ ./check_zfs.pl -p
OK: ZFS on W96248 - No zfs failures detected
-bash-3.2$ id
uid=346(nagios) gid=139(nagios)
-bash-3.2$ ./check_nrpe -H 127.0.0.1 -t 30 -c check_zfs -a '-p'
NRPE: Unable to read output
-bash-3.2$
this is the output that I get, I also showed the output from "check_swap.pl" which works fine.
This is the output from the client:
root@W96248:global # id
uid=0(root) gid=0(root)
root@W96248:global # ls -l check_zfs.pl
-rwxr-xr-x 1 nagios bin 18390 Mar 31 15:15 check_zfs.pl
root@W96248:global # ./check_nrpe -H 127.0.0.1
NRPE v2.14
root@W96248:global # ./check_nrpe -H 127.0.0.1 -t 30 -c check_zfs -a '-p'
NRPE: Unable to read output
root@W96248:global # ./check_zfs.pl -p
OK: ZFS on W96248 - No zfs failures detected
root@W96248:global # ./check_nrpe -H 127.0.0.1 -t 30 -c check_swap -a '-w 30% -c 20% -m swap'
OK: Available swap (85.0%) > warning threshold (30.0%)|available=57729836kB free=49087576kB allocated=8169424kB reserved=472836kB used=8642260kB
root@W96248:global # su - nagios
Oracle Corporation SunOS 5.10 Generic Patch January 2005
-bash-3.2$ cd /opt/nagios/libexec
-bash-3.2$ ./check_zfs.pl -p
OK: ZFS on W96248 - No zfs failures detected
-bash-3.2$ id
uid=346(nagios) gid=139(nagios)
-bash-3.2$ ./check_nrpe -H 127.0.0.1 -t 30 -c check_zfs -a '-p'
NRPE: Unable to read output
-bash-3.2$