check_radius issue after 3.2.1 update

Assaf Flatto nagios at flatto.net
Fri Apr 30 23:02:53 CEST 2010


Alex wrote:
>
> I had check_radius running perfectly on nagios 3.2.0. I ran ‘yum 
> update’ on CentOS and there was a new nagios package available.
>
> Now nagios reports “Auth Error” when checking that service. The weird 
> part is that it works just fine if I issue the command from CLI, but 
> when nagios service runs it I can’t even see a radius request coming 
> from the nagios system to the radius server.
>
> define command {
>
> command_name check_radius
>
> command_line $USER1$/check_radius -H $HOSTADDRESS$ -F 
> /etc/radiusclient/radiusclient.conf -u nagios -p nagioscheck
>
> }
>
> [root at owl plugins]# ./check_radius.bak -V
>
> check_radius v1994 (nagios-plugins 1.4.13)
>
> [root at owl plugins]# ./check_radius -V
>
> check_radius v1.4.14 (nagios-plugins 1.4.14)
>
> [root at owl plugins]# /usr/lib/nagios/plugins/check_radius -H zeus2 -F 
> /etc/radiusclient/radiusclient.conf -u nagios -p nagioscheck
>
> Auth OK
>
> [root at owl plugins]# /usr/lib/nagios/plugins/check_radius.bak -H zeus2 
> -F /etc/radiusclient/radiusclient.conf -u nagios -p nagioscheck
>
> Auth OK
>
> (On radius server when running check_radius from command line)
>
> [root at zeus2 ~]# tcpdump -i eth0 dst port 1645
>
> tcpdump: listening on eth0
>
> 10:13:39.204207 owl.domain.36491 > zeus2.domain.datametrics: 
> rad-access-req 58 [id 9] Attr[ Service_type{Authenticate Only} 
> User{nagios} Pass [|radius] (DF)
>
> 10:13:46.022804 owl.domain.46966 > zeus2.domain.datametrics: 
> rad-access-req 58 [id 10] Attr[ Service_type{Authenticate Only} 
> User{nagios} Pass [|radius] (DF)
>
> I don’t see any packets coming in when the nagios service is checking 
> for it.
>
> Thanks for any suggestions
>
> Alex
>
Try executing the scriot as the nagios use not as root and see what the 
output is .
root and nagios have differing env setting in the shell , and there 
might be the problem in your response.

Assaf

-- 
Never , Ever Cut a Deal With a Dragon


------------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list