NRPE cannot work

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
li744831579
Posts: 1
Joined: Thu Jun 12, 2014 9:03 pm

NRPE cannot work

Post 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
rajesh.mehra
Posts: 35
Joined: Mon Jan 27, 2014 2:38 am
Location: New Delhi, India

Re: NRPE cannot work

Post by rajesh.mehra »

Hi

It seems problem in your script not in nagios configuration.

Correct your script ...
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE cannot work

Post 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.
Locked