Page 1 of 1

trouble with check_radius_adv (or check_radius_ih)

Posted: Fri Sep 02, 2011 12:26 pm
by kinnema
I'm having difficulties getting our Radius server checks to work properly. I've attempted to set the checks up using the Radius Server wizard, as well as running check_radius_adv and check_radius_ih from the command line of our Nagios host with little success. In XI the result of the check we get is "(No output returned from plugin) Enter Username: unable to resolve radius server: $. abort.", however if I run the check from the command line I get "WARNING: Reply-Msg differs! ('' != 'SBR2CL�������ʚ��*�������
����������������������ʚ��ͦ�') Access ACCEPT. (code = 2) | rtt=0.0029 rttms=2.9109 ".

I can see in the logs on the radius server, that it is sending a response:
09/02/2011 12:37:43 LDAPAUTH: Authentication attempt = 0, user = radiustest, server = s1 - Success
09/02/2011 12:37:43 Sent accept response for user radiustest to client NAGIOSHOST

Anyone have any ideas on what the issue could be?
Thanks!

Re: trouble with check_radius_adv (or check_radius_ih)

Posted: Tue Sep 06, 2011 2:44 pm
by kinnema
We've figured this out. It seems that maybe when check_radius_adv was added through the Plugin / Wizard manager it dropped the trailing $ in the comands.cfg file, so we changed this:

command_line $USER1$/check_radius_adv -r $HOSTADDRESS $ARG1$

to this:

command_line $USER1$/check_radius_adv -r $HOSTADDRESS$ $ARG1$

Everything is working as expected now.

Re: trouble with check_radius_adv (or check_radius_ih)

Posted: Tue Sep 06, 2011 3:10 pm
by mguthrie
Thanks for the update! Glad it's working for you

Re: trouble with check_radius_adv (or check_radius_ih)

Posted: Wed Dec 14, 2011 10:54 am
by pnnagios
I just ran into this issue too. After troubleshooting for quite some time, I found this post that saved the day. It seems that the $ is actually missing in the wizard source itself. I corrected it in the radiusserver.cfg file in the tempates folder, rezipped the wizard source, and then reimported the wizard. It then imported and worked as expected.