remote NRPE help on different port
Posted: Mon Aug 06, 2012 3:18 pm
with some help I have things almost done, but one thing is still failing and not sure where to look. I have the client linux server running NRPE on the default 5666 port. I will be running checks against numerous webservers behind a loadbalancer with one public IP so the port will dictate which server to test.
So my host and service looks like this;
define host{
use linux-remote
host_name WS1
address 1.1.1.1
_tcport 5667
}
define service{
use generic-service,srv-pnp
host_name WS1
service_description Server Load
check_command check_nrpe!check_load
}
That service is stuck at critical, and I don't see anything on the client side (as if it's not getting there). When I run the check from the server to the client it works from the command line, here is the server check and client syslog entry;
Server
/usr/lib/nagios/plugins/check_nrpe -H n.WS1.domain.com -p 5667 -c check_load
OK - load average: 0.48, 0.51, 0.30|load1=0.480;15.000;30.000;0; load5=0.510;10.000;25.000;0; load15=0.300;5.000;20.000;0;
Client
Aug 6 16:01:12 WS1 nrpe[6952]: Running command: /usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
Aug 6 16:01:12 WS1 nrpe[6952]: Command completed with return code 0 and output: OK - load average: 0.92, 0.50, 0.33|load1=0.920;15.000;30.000;0; load5=0.500;10.000;25.000;0; load15=0.330;5.000;20.000;0;
Aug 6 16:01:12WS1 nrpe[6952]: Return Code: 0, Output: OK - load average: 0.92, 0.50, 0.33|load1=0.920;15.000;30.000;0; load5=0.500;10.000;25.000;0; load15=0.330;5.000;20.000;0;
I had some help with the _tcp entry, the PING OK works, but I am sure that's just hitting the loadbalancer. I did also test by having the nrpe-client listen on 5667, told the loadbalancer to forward to that port and had the same results, both at the GUI server level (critical) as well as command line test (passed and worked).
Any help or ideas are appreciated.
So my host and service looks like this;
define host{
use linux-remote
host_name WS1
address 1.1.1.1
_tcport 5667
}
define service{
use generic-service,srv-pnp
host_name WS1
service_description Server Load
check_command check_nrpe!check_load
}
That service is stuck at critical, and I don't see anything on the client side (as if it's not getting there). When I run the check from the server to the client it works from the command line, here is the server check and client syslog entry;
Server
/usr/lib/nagios/plugins/check_nrpe -H n.WS1.domain.com -p 5667 -c check_load
OK - load average: 0.48, 0.51, 0.30|load1=0.480;15.000;30.000;0; load5=0.510;10.000;25.000;0; load15=0.300;5.000;20.000;0;
Client
Aug 6 16:01:12 WS1 nrpe[6952]: Running command: /usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
Aug 6 16:01:12 WS1 nrpe[6952]: Command completed with return code 0 and output: OK - load average: 0.92, 0.50, 0.33|load1=0.920;15.000;30.000;0; load5=0.500;10.000;25.000;0; load15=0.330;5.000;20.000;0;
Aug 6 16:01:12WS1 nrpe[6952]: Return Code: 0, Output: OK - load average: 0.92, 0.50, 0.33|load1=0.920;15.000;30.000;0; load5=0.500;10.000;25.000;0; load15=0.330;5.000;20.000;0;
I had some help with the _tcp entry, the PING OK works, but I am sure that's just hitting the loadbalancer. I did also test by having the nrpe-client listen on 5667, told the loadbalancer to forward to that port and had the same results, both at the GUI server level (critical) as well as command line test (passed and worked).
Any help or ideas are appreciated.