NSClient++ Help (#1) - Use NRPEClient (#486) - Message List
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 :
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
Humm, something is fishy with the ip address so it seems to be a problem with NSCLient++...
Michael Medinmickem12/13/09 16:44:31 (3 years ago)
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 Medinmickem12/13/09 16:47:32 (3 years ago)
Is it a complex work to add this function ? Do you planned to add this to next release or to a nightly update ?
Thanks,kinai12/13/09 21:16:22 (3 years ago)