Page 2 of 2

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

Posted: Thu Mar 19, 2015 3:30 pm
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.

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

Posted: Thu Mar 19, 2015 5:13 pm
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

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

Posted: Fri Mar 20, 2015 6:02 am
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.

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

Posted: Fri Mar 20, 2015 7:33 am
by bosecorp
Implemented the change and everything is looking really good

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

Posted: Fri Mar 20, 2015 9:35 am
by ssax
That's great to hear, can we mark this thread as resolved and lock the topic?

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

Posted: Fri Mar 20, 2015 11:33 am
by bosecorp
yes, go ahead and close this ticket