(Return code of 25 is out of bounds)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: (Return code of 25 is out of bounds)

Post by jdalrymple »

I suspect this is what's happening to you bosecorp:

Code: Select all

# Workarounds

# workaround for rc 25 bug
# duplicate jobs from gearmand result in exit code 25 of plugins
# because they are executed twice and get killed because of using
# the same ressource.
# Sending results (when exit code is 25 ) will be skipped with this
# enabled.
workaround_rc_25=off
I think we can tackle this problem by setting things right in the orphaned hosts thread:

http://support.nagios.com/forum/viewtop ... 16&t=31797

Let's just put solving this problem on hold until your gearman queues are working properly.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: (Return code of 25 is out of bounds)

Post by bosecorp »

this is the output

UNKNOWN - The WMI query had problems. You might have your username/password wrong or the user's access level is too low. Wmic error text on the next line.
[wmi/wmic.c:196:main()] ERROR: Login to remote object.
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied


it doesn't make any sense. this account has access to the server. I tried with my own account and same result. but regardless. it also happens with SNMP devices and we only use a community string

another thing that I noticed in a SNMP device with multiple of services of the same type some will have this error and of others won;t
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: (Return code of 25 is out of bounds)

Post by jdalrymple »

As I mentioned in my previous post - this is almost 100% certainly due to the problems with your gearman configuration. Note the comments from the bottom of the worker.conf file that I posted. I suspect that your checks are taking so long that the work is getting submitted again before the prior check has completed and been returned to the gearman job server, hence the error code 25s as described above. Let's tackle getting your orphans gone and service times down, then I am almost certain this problem will just go away.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: (Return code of 25 is out of bounds)

Post by bosecorp »

Implemented the change and everything is looking really good
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: (Return code of 25 is out of bounds)

Post by ssax »

That's great to hear, can we mark this thread as resolved and lock the topic?
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: (Return code of 25 is out of bounds)

Post by bosecorp »

yes, go ahead and close this ticket
Locked