returned an invaled return code 255
Re: returned an invaled return code 255
You're right - it is odd that it's working locally but not remotely. Have you tried restarting NSClient already?
Please open services.msc and find NSClient++ - restart the service and re-try the check from Nagios.
Please open services.msc and find NSClient++ - restart the service and re-try the check from Nagios.
Re: returned an invaled return code 255
ooooh great now this run 
but now you need another server than not read
but now you need another server than not read
Re: returned an invaled return code 255
Could you please rephrase this sentence? I am not sure what you mean.but now you need another server than not read
Re: returned an invaled return code 255
Now I have no servers that instead reads the logs locally if
Re: returned an invaled return code 255
Do you have a server that reads logs remotely instead of locally - or something similar?
I'm still not 100% clear on what you're asking.
I'm still not 100% clear on what you're asking.
Re: returned an invaled return code 255
yes, the server have got logs.
Local this program is running but remot not run.
And the other server remot not run, this error is:
Sorry my english is bad.
Local this program is running but remot not run.
And the other server remot not run, this error is:
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_nrpe -H [SERVER] -p 5666 -c check_log3 -t 30 -a -p "unable" -l "D:/alert_enetvae.log" -c 1
OUTPUT: Plug-in error: time out after 15 seconds
Re: returned an invaled return code 255
Let's try giving your command a longer timeout:
How does that work for you?
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 10.82.4.115 -p 5666 -c check_log3 -t 30 -a -p "unable" -l "D:/alert_enetvae.log" -t 45 -c 1 Re: returned an invaled return code 255
then not read the second -t but i write
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_nrpe -H [HOST] -p 5666 -c check_log3 -t 30 -a -p "unable" -l "D:/alert_enetvae.log" -a -t 45 -a -c 1
OUTPUT: Cannot read $ARG2$
Re: returned an invaled return code 255
Sorry - I missed that you already had a timeout added. Here, try the following:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H [HOST] -p 5666 -c check_log3 -t 30 -a -p "unable" -l "D:/alert_enetvae.log" -a --no-timeout -a -c 1http://exchange.nagios.org/directory/Pl ... pl/detailsThis plugin will set an internal time-out alarm based on the $TIMEOUT
setting found in utils.pm. You can use the --no-timeout option to disable
this.
Re: returned an invaled return code 255
thanks
but then this not read arg2 = D:/alert_enetvae.log but in server there are logs. And the other server i haver got same problem, local the program run good
but then this not read arg2 = D:/alert_enetvae.log but in server there are logs. And the other server i haver got same problem, local the program run good
Code: Select all
OUTPUT: Cannot read $ARG2$