Re: Check Script not able to run
Posted: Tue May 31, 2016 4:50 am
Dear Box,
Below are the result:
[root@ccnagios01 libexec]# ./check_nrpe -H 192.168.38.144 -c nagios_memory
log from client:
May 31 17:48:01 rhel64-02 nrpe[32592]: Connection from 192.168.38.142 port 4290
May 31 17:48:01 rhel64-02 nrpe[32592]: Host address is in allowed_hosts
May 31 17:48:01 rhel64-02 nrpe[32592]: Handling the connection...
May 31 17:48:01 rhel64-02 nrpe[32592]: Host is asking for command 'nagios_memory' to be run...
May 31 17:48:01 rhel64-02 nrpe[32592]: Running command: /etc/nagios/nrpe.d/check_mem -uC -w 70 -c 90
May 31 17:48:01 rhel64-02 nrpe[32592]: Command completed with return code 3 and output:
May 31 17:48:01 rhel64-02 nrpe[32592]: Return Code: 3, Output: NRPE: Unable to read output
May 31 17:48:01 rhel64-02 nrpe[32592]: Connection from ▒Q{▒#177 closed.
[root@ccnagios01 libexec]# ./check_nrpe -H 192.168.38.144 -c nagios_cpu
log from client:
May 31 17:48:08 rhel64-02 nrpe[32596]: Connection from 192.168.38.142 port 6850
May 31 17:48:08 rhel64-02 nrpe[32596]: Host address is in allowed_hosts
May 31 17:48:08 rhel64-02 nrpe[32596]: Handling the connection...
May 31 17:48:08 rhel64-02 nrpe[32596]: Host is asking for command 'nagios_cpu' to be run...
May 31 17:48:08 rhel64-02 nrpe[32596]: Running command: /etc/nagios/nrpe.d/nagios_cpu.sh
May 31 17:48:10 rhel64-02 nrpe[32596]: Command completed with return code 0 and output: OK #012 user: 0%, system: 0%, iowait: 0%, idle: 100% #012 | cpu_user=0%;70;90; cpu_sys=0%;70;90; cpu_iowait=0%;70;90; cpu_idle=100%;
May 31 17:48:10 rhel64-02 nrpe[32596]: Return Code: 0, Output: OK #012 user: 0%, system: 0%, iowait: 0%, idle: 100% #012 | cpu_user=0%;70;90; cpu_sys=0%;70;90; cpu_iowait=0%;70;90; cpu_idle=100%;
May 31 17:48:10 rhel64-02 nrpe[32596]: Connection from ▒Q{▒#177 closed.
Thanks,
Kelvin
Below are the result:
[root@ccnagios01 libexec]# ./check_nrpe -H 192.168.38.144 -c nagios_memory
log from client:
May 31 17:48:01 rhel64-02 nrpe[32592]: Connection from 192.168.38.142 port 4290
May 31 17:48:01 rhel64-02 nrpe[32592]: Host address is in allowed_hosts
May 31 17:48:01 rhel64-02 nrpe[32592]: Handling the connection...
May 31 17:48:01 rhel64-02 nrpe[32592]: Host is asking for command 'nagios_memory' to be run...
May 31 17:48:01 rhel64-02 nrpe[32592]: Running command: /etc/nagios/nrpe.d/check_mem -uC -w 70 -c 90
May 31 17:48:01 rhel64-02 nrpe[32592]: Command completed with return code 3 and output:
May 31 17:48:01 rhel64-02 nrpe[32592]: Return Code: 3, Output: NRPE: Unable to read output
May 31 17:48:01 rhel64-02 nrpe[32592]: Connection from ▒Q{▒#177 closed.
[root@ccnagios01 libexec]# ./check_nrpe -H 192.168.38.144 -c nagios_cpu
log from client:
May 31 17:48:08 rhel64-02 nrpe[32596]: Connection from 192.168.38.142 port 6850
May 31 17:48:08 rhel64-02 nrpe[32596]: Host address is in allowed_hosts
May 31 17:48:08 rhel64-02 nrpe[32596]: Handling the connection...
May 31 17:48:08 rhel64-02 nrpe[32596]: Host is asking for command 'nagios_cpu' to be run...
May 31 17:48:08 rhel64-02 nrpe[32596]: Running command: /etc/nagios/nrpe.d/nagios_cpu.sh
May 31 17:48:10 rhel64-02 nrpe[32596]: Command completed with return code 0 and output: OK #012 user: 0%, system: 0%, iowait: 0%, idle: 100% #012 | cpu_user=0%;70;90; cpu_sys=0%;70;90; cpu_iowait=0%;70;90; cpu_idle=100%;
May 31 17:48:10 rhel64-02 nrpe[32596]: Return Code: 0, Output: OK #012 user: 0%, system: 0%, iowait: 0%, idle: 100% #012 | cpu_user=0%;70;90; cpu_sys=0%;70;90; cpu_iowait=0%;70;90; cpu_idle=100%;
May 31 17:48:10 rhel64-02 nrpe[32596]: Connection from ▒Q{▒#177 closed.
Thanks,
Kelvin