Nagios Monitoring Server
Code: Select all
[root@alphprdfuse2i objects]# /usr/local/nagios/libexec/check_nrpe -H 3.34.2.87 -c check_remote_container_heap_avail
RESPONSE on Nagios Server
UNKNOWN - No Server URL given
RESPONSE on NRPE Server
[1562874869] CONN_CHECK_PEER: checking if host is allowed: 3.239.245.209 port 6837
[1562874869] Connection from 3.239.245.209 port 6837
[1562874869] is_an_allowed_host (AF_INET): is host >3.239.245.209< an allowed host >3.239.245.209<
[1562874869] is_an_allowed_host (AF_INET): is host >3.239.245.209< an allowed host >3.239.245.209<
[1562874869] is_an_allowed_host (AF_INET): host is in allowed host list!
[1562874869] Host address is in allowed_hosts
[1562874869] Host 3.239.245.209 is asking for command 'check_remote_container_heap_avail' to be run...
[1562874869] Running command: /usr/local/nagios/libexec/check_jmx4perl
[1562874869] Command completed with return code 3 and output: UNKNOWN - No Server URL given
[1562874869] Return Code: 3, Output: UNKNOWN - No Server URL given
[1562874869] Connection from 3.239.245.209 closed.
The other complete test
Code: Select all
[root@alphprdfuse2i objects]# /usr/local/nagios/libexec/check_nrpe -H 3.34.2.87 -c check_remote_container_heap_avail -a "--user passthru --password B@dC0mpany --url http://localhost:9090/jolokia --mbean java.lang:type=Memory --attribute HeapMemoryUsage --path used --base java.lang:type=Memory/HeapMemoryUsage/max --critical :85"
NRPE: Command 'check_remote_container_heap_avail!--user passthru --password B@dC0mpany --url http://localhost:9090/jolokia --mbean java.lang:type=Memory --attribute HeapMemoryUsage --path used --base java.lang:type=Memory/HeapMemoryUsage/max --critical :85' not defined
RESPONSE on NRPE Server
[1562874997] CONN_CHECK_PEER: checking if host is allowed: 3.239.245.209 port 31413
[1562874997] Connection from 3.239.245.209 port 31413
[1562874997] is_an_allowed_host (AF_INET): is host >3.239.245.209< an allowed host >3.239.245.209<
[1562874997] is_an_allowed_host (AF_INET): is host >3.239.245.209< an allowed host >3.239.245.209<
[1562874997] is_an_allowed_host (AF_INET): host is in allowed host list!
[1562874997] Host address is in allowed_hosts
[1562874997] Host 3.239.245.209 is asking for command 'check_deltafadec_container_heap!--user deltafadec --password B@dM0nk3y --url
http://localhost:9093/jolokia --mbean java.lang:type=Memory --attribute HeapMemoryUsage --path used --base java.lang:type=Memory/HeapMemoryUsage/max --critical :85' to be run...
[1562874997] NRPE: Command 'check_deltafadec_container_heap!--user deltafadec --password B@dM0nk3y --url
http://localhost:9093/jolokia --mbean java.lang:type=Memory --attribute HeapMemoryUsage --path used --base java.lang:type=Memory/HeapMemoryUsage/max --critical :85' not defined
[1562874997] Return Code: 3, Output: NRPE: Command 'check_deltafadec_container_heap!--user deltafadec --password B@dM0nk3y --url
http://localhost:9093/jolokia --mbean java.lang:type=Memory --attribute HeapMemoryUsage --path used --base java.lang:type=Memory/HeapMemoryUsage/max --critical :85' not defined
[1562874997] Connection from 3.239.245.209 closed.
It looks like the data is being passed to NRPE
One thing that looks strange, The argument in the Nagios command do not match the argument in the in the nrpe.log file.
Thats me, cut and paste. sorry.
The only other thing I can thing of is that either the NRPE agent had some issues when it was compiled or that it was not restarted.
It is not that the agent is not being recycled. I recycle it each time I make a change to config.
so, I'm leaning more towards something happened or didn't happen when compiled. can you give me some pointers, I'll try to build it again.