returned an invaled return code 255

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: returned an invaled return code 255

Post by ariarlet »

Thanks!

In the other server in local run correct but de nagios x said that cant not read the log
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: returned an invaled return code 255

Post 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?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: returned an invaled return code 255

Post by ariarlet »

can't read log

and the other

same error: code 255

but the two servers local run correctly
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: returned an invaled return code 255

Post 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?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: returned an invaled return code 255

Post by ariarlet »

the check_nrpe test run correctly
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: returned an invaled return code 255

Post by ariarlet »

And the other servers my check_log3 run good 0 problems
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: returned an invaled return code 255

Post 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.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: returned an invaled return code 255

Post by ariarlet »

the files are same
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: returned an invaled return code 255

Post 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.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
ariarlet
Posts: 61
Joined: Wed Apr 22, 2015 11:04 am

Re: returned an invaled return code 255

Post 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 ?
Locked