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!
trouble with check_radius_adv (or check_radius_ih)
Re: trouble with check_radius_adv (or check_radius_ih)
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.
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)
Thanks for the update! Glad it's working for you
Re: trouble with check_radius_adv (or check_radius_ih)
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.