RADIUS monitor Return code of 126 is out of bounds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jericho_g
Posts: 38
Joined: Thu Mar 07, 2013 5:10 pm

RADIUS monitor Return code of 126 is out of bounds

Post by jericho_g »

I have Nagios XI running on 64-bit Centos 5.6. I used the RADIUS config wizard to setup a new monitor for a RADIUS host. However I'm getting this error on all service checks for this monitor:

Return code of 126 is out of bounds - plugin may not be executable

The command associated with the service is:
check_radius_server_adv!-u "adv-radius-svc" -p "*********" -s "************"

However this command doesn't exist in /usr/local/nagios/libexec. (There is a script named check_radius_adv). The current version of the RADIUS config wizard is version 1.3 (latest).

Any ideas on how I can resolve this?

Thanks
-Jericho
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: RADIUS monitor Return code of 126 is out of bounds

Post by sreinhardt »

What are the permissions on that radius plugin?

Code: Select all

ll //usr/local/nagios/libexec/check_radius_adv
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
jericho_g
Posts: 38
Joined: Thu Mar 07, 2013 5:10 pm

Re: RADIUS monitor Return code of 126 is out of bounds

Post by jericho_g »

-rwxr-xr-x. 1 root root 23327 Dec 3 2012 /usr/local/nagios/libexec/check_radius_adv
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: RADIUS monitor Return code of 126 is out of bounds

Post by lmiltchev »

Run the following command:

Code: Select all

chown nagios:nagios /usr/local/nagios/libexec/check_radius_adv
and see if this is going to fix your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked