Page 2 of 5
Re: returned an invaled return code 255
Posted: Fri May 08, 2015 8:44 am
by ariarlet
Thanks!
In the other server in local run correct but de nagios x said that cant not read the log
Re: returned an invaled return code 255
Posted: Fri May 08, 2015 9:20 am
by jolson
Okay, so now you can run it on the local server fine, but XI still gets an error. Which error does XI get?
Re: returned an invaled return code 255
Posted: Fri May 08, 2015 9:29 am
by ariarlet
can't read log
and the other
same error: code 255
but the two servers local run correctly
Re: returned an invaled return code 255
Posted: Fri May 08, 2015 9:50 am
by jolson
Interesting. Is nagios able to perform any checks on the remote hosts? CheckDisk, for example?
I'm thinking that it's possible nagios isn't able to return any result from your NSClient boxes. Can you confirm or deny this?
Re: returned an invaled return code 255
Posted: Fri May 08, 2015 10:10 am
by ariarlet
the check_nrpe test run correctly
Re: returned an invaled return code 255
Posted: Fri May 08, 2015 10:13 am
by ariarlet
And the other servers my check_log3 run good 0 problems
Re: returned an invaled return code 255
Posted: Fri May 08, 2015 10:14 am
by jolson
Can you compare the NSClient.ini files between your working servers and your non-working servers? There must a difference somewhere that we're missing.
Re: returned an invaled return code 255
Posted: Fri May 08, 2015 10:25 am
by ariarlet
the files are same
Re: returned an invaled return code 255
Posted: Fri May 08, 2015 10:35 am
by jolson
Are the NSClient versions the same?
What about the perl scripts - are they the same? You'll also want to check on the perl versions.
Is it possible that the perl versions on the two non-working servers are using non-standard exit codes? Nagios needs a 0-3 exit code to interpret results properly.
Re: returned an invaled return code 255
Posted: Fri May 08, 2015 10:43 am
by ariarlet
yes, the same version.
But, I do not understand why it works locally and from nagios not working. I did the same in other servers and it works perfectly while in two servers returns me the error 255 I got it solved as you said but it only works locally , not remotely . And in other servers you can not read the logs locally instead reads perfectly .
Both versions as .ini are the same. The only thing that varies servers can not read the logs is the location of nsclient not found in the C : if not in D :, may be that the problem to be played by nagios xi ?