NSClient++ Help (#1) - Use NRPEClient (#486) - Message List
Use NRPEClient
Hi,
I'm new user of NSClient ++ and I need to use NRPEClient to used NSClient as NRPE Proxy.
I'm trying to pass the final host ip address by args to the NRPE Proxy but it seems that this function is not working in NSCLIENT.
check_remote=-H $ARG1$ -c $ARG2$ -a $ARG3$
if Nagios, check command is like :
check_nrpe -H nrpeproxyip -c check_remote -a $HOSTADDRESS$ CheckServiceState CheckAll?
NSClient log
2009-12-13 00:04:41: debug:CACHEmodules\NRPEClient\NRPEClient.cpp:86: Added NRPE Client: check_remote = host: $ARG1$, port: 5666, timeout: 10, ssl: 1, buffer_length: 1024 2009-12-13 00:07:35: debug:NSClient++.cpp:1073: Injecting: check_remote: 192.168.1.250, CheckServiceState, CheckAll 2009-12-13 00:07:35: debug:modules\NRPEClient\NRPEClient.cpp:129: Rewrote command arguments: CheckAll 2009-12-13 00:07:36: debug:NSClient++.cpp:1109: Injected Result: WARNING 'Socket error: Failed to connect to host: 255.255.255.25510049: L'adresse demandée n'est pas valide dans son contexte. '
Thanks for your help
kinai
12/13/09 00:35:44 (3 years ago)
-
Message #1520
Humm, something is fishy with the ip address so it seems to be a problem with NSCLient++...
Michael Medin
mickem12/13/09 16:44:31 (3 years ago) -
Message #1521
Checked the code and substituting hostname (and port and what not) is not supported apparently.
The only thing replaced is command/argument so this will not work in the current version I am afraid, sorry.
Michael Medin
mickem12/13/09 16:47:32 (3 years ago)








