Page 1 of 1

NRPE cannot work

Posted: Thu Jun 12, 2014 9:09 pm
by li744831579
This is my servers run check_nrpe

Code: Select all

[nagios@smith2 libexec]$ ./check_nrpe -H 192.168.120.162    -c check_leak_connect 
OK - LeakedConnectionCount =  |  Avail=;1;2;
this is the remote host which is run nrpe

Code: Select all

[nagios@Smith3 libexec]$ /usr/local/nagios/libexec/check_LeakConnection.sh -w 1 -c 2 -h 192.168.120.162:9001 -s irms_product_zj_web_server -d irms_product_zj_ds
OK - LeakedConnectionCount = 0 |  Avail=10;1;2;  
this is the comman in the nrpe.cfg

Code: Select all

command[check_leak_connect]=/usr/local/nagios/libexec/check_LeakConnection.sh -w 1 -c 2 -h 192.168.120.162:9001 -s irms_product_zj_web_server -d irms_product_zj_ds
It cannot work ,How to solve the problem

Re: NRPE cannot work

Posted: Mon Jun 16, 2014 2:10 am
by rajesh.mehra
Hi

It seems problem in your script not in nagios configuration.

Correct your script ...

Re: NRPE cannot work

Posted: Tue Jul 01, 2014 10:28 am
by slansing
I agree, as you are manually running the plugin and getting the same output that takes NRPE out of the equation. I'd take a look at why it is always exiting with 0 and showing 0 leaked connections, unless that is actually true, in which case I don't see an issue. Your opening question was not that detailed.