trouble with check_radius_adv (or check_radius_ih)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kinnema
Posts: 28
Joined: Thu Aug 25, 2011 2:27 pm

trouble with check_radius_adv (or check_radius_ih)

Post 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!
kinnema
Posts: 28
Joined: Thu Aug 25, 2011 2:27 pm

Re: trouble with check_radius_adv (or check_radius_ih)

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: trouble with check_radius_adv (or check_radius_ih)

Post by mguthrie »

Thanks for the update! Glad it's working for you
pnnagios
Posts: 47
Joined: Wed Dec 14, 2011 9:48 am

Re: trouble with check_radius_adv (or check_radius_ih)

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