CPU, Memory staus = NRPE Unable to read output
Posted: Sat Feb 28, 2015 1:21 pm
I sent a new server this weekend. Its RHEL6x64, latest patches.
I installed the linux-nape from the link on my NXI server, which also is the latest.
On CPU, memory, open files its all NRPE unreadable... other items are fine
[root@nagios libexec]# ./check_nrpe -H x.x.x.x -c check_cpu_stats -a '-w 85 -c 95'
NRPE: Unable to read output
I ran the local check_cpu_stats.sh and got this:
[root@host1 libexec]# ./check_cpu_stats.sh
./check_cpu_stats.sh: line 139: [: 0.00: integer expression expected
./check_cpu_stats.sh: line 142: [: 0.00: integer expression expected
./check_cpu_stats.sh: line 152: [: 0.05: integer expression expected
./check_cpu_stats.sh: line 156: [: 0.05: integer expression expected
./check_cpu_stats.sh: line 160: [: 0.00: integer expression expected
./check_cpu_stats.sh: line 164: [: 99.90: integer expression expected
CPU STATISTICS OK: user=0.05% system=0.05% iowait=0.00% idle=99.90% | user=0.05% system=0.05% iowait=0.00%;30;100 idle=99.90%
So I am comparing this device to a working device I setup a week ago, which is the same OS, and the modules seem to be the same.
My NXI GUI the setting commands look the same. One works one does not. I did update my wizard to the latest version as well.
So at this point I have manually/locally run checks and I get feedback from both, locally
Also, just an FYI, the nrpe install script is overwriting the iptable files. I had two entries in mine.... the time i installed the agent. Beautiful!!
# Generated by iptables-save v1.4.7 on Sat Feb 28 12:48:05 2015
*filter
:INPUT ACCEPT [5:260]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5667 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5666 -j ACCEPT
COMMIT
# Completed on Sat Feb 28 12:48:05 2015
I installed the linux-nape from the link on my NXI server, which also is the latest.
On CPU, memory, open files its all NRPE unreadable... other items are fine
[root@nagios libexec]# ./check_nrpe -H x.x.x.x -c check_cpu_stats -a '-w 85 -c 95'
NRPE: Unable to read output
I ran the local check_cpu_stats.sh and got this:
[root@host1 libexec]# ./check_cpu_stats.sh
./check_cpu_stats.sh: line 139: [: 0.00: integer expression expected
./check_cpu_stats.sh: line 142: [: 0.00: integer expression expected
./check_cpu_stats.sh: line 152: [: 0.05: integer expression expected
./check_cpu_stats.sh: line 156: [: 0.05: integer expression expected
./check_cpu_stats.sh: line 160: [: 0.00: integer expression expected
./check_cpu_stats.sh: line 164: [: 99.90: integer expression expected
CPU STATISTICS OK: user=0.05% system=0.05% iowait=0.00% idle=99.90% | user=0.05% system=0.05% iowait=0.00%;30;100 idle=99.90%
So I am comparing this device to a working device I setup a week ago, which is the same OS, and the modules seem to be the same.
My NXI GUI the setting commands look the same. One works one does not. I did update my wizard to the latest version as well.
So at this point I have manually/locally run checks and I get feedback from both, locally
Also, just an FYI, the nrpe install script is overwriting the iptable files. I had two entries in mine.... the time i installed the agent. Beautiful!!
# Generated by iptables-save v1.4.7 on Sat Feb 28 12:48:05 2015
*filter
:INPUT ACCEPT [5:260]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5667 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5666 -j ACCEPT
COMMIT
# Completed on Sat Feb 28 12:48:05 2015