arguments in commands
Posted: Tue Jan 24, 2017 5:07 am
Hello everyone,
to follow up my first topic : https://support.nagios.com/forum/viewto ... =6&t=41911
It worked for one server, but not for another ...
when I try to launch the check from Nagios server, I got this :
return code "DOWN" is normal right now.
I'm currently using 0.5.0.62 2016-09-14 agent on both servers, same nsclient.ini, same boot.ini, same Tools and plugins of my own, same Perl version, same command for both ...
I tried this :
and it worked ...
here is the definition of command in both nsclient.ini :
and in Nagios Webportal :
Do you have any ideas on how to fix that ?
Please ask for more informations if needed
Thank you
to follow up my first topic : https://support.nagios.com/forum/viewto ... =6&t=41911
It worked for one server, but not for another ...
when I try to launch the check from Nagios server, I got this :
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H WORKINGSERVER-c windows_flexlm -a "--port 22222"
DOWNCode: Select all
/usr/local/nagios/libexec/check_nrpe -H NOTWORKINGSERVER-c windows_flexlm -a "--port 22222"
The command (windows_flexlm) returned an invalid return code: 255I'm currently using 0.5.0.62 2016-09-14 agent on both servers, same nsclient.ini, same boot.ini, same Tools and plugins of my own, same Perl version, same command for both ...
I tried this :
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H NOTWORKINGSERVER-c windows_flexlm -a "22222"
DOWNhere is the definition of command in both nsclient.ini :
Code: Select all
windows_flexlm=perl check_flexlm.pl --port $ARG1$Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -c windows_flexlm -a "--port $ARG1$"Do you have any ideas on how to fix that ?
Please ask for more informations if needed
Thank you