[RADIATOR] verifying online sessions with SNMP

Michael ringo at vianet.ca
Mon Nov 5 14:18:47 CST 2012


I see my snmp problem is due to missing MIBs, and Radiator has switched 
to numerical snmp queries in the latest version/patch set:

2012-09-25 :
     Updated all Nas/*.pm modules to use numeric OIDs instead of 
sysmbolic, since some recent versions of snmp tools install without MIBs.

Guess someone may still want to add the error detection though.



On 01/11/12 02:07 PM, Michael wrote:
> I'm having some issues with verifying online session with the
> DefaultSimultaneousUse option.  I keep seeing that sessions are "gone
> away".  Messages in the log such as:
> Thu Nov  1 04:45:41 2012: INFO: Session 0196B6A4 for username at
> 0.0.0.0: has gone away
>
> But, the sessions where NOT "gone away" and should have been counted,
> and this login request should have been rejected.  I found out by
> manually running the snmp query that the snmp query is not working:
> # /usr/bin/snmpget -c "xxxxx" 0.0.0.0
> iso.org.dod.internet.private.enterprises.9.9.150.1.1.3.1.2.26740905
> iso.org.dod.internet.private.enterprises.9.9.150.1.1.3.1.2.26740905:
> Unknown Object Identifier
> (org.dod.internet.private.enterprises.9.9.150.1.1.3.1.2.26740905)
>
> I see in the snmpget routine in Radius/SNMP.pm, the error checking
> doesn't seem to include this error.  Should it be added:
> <SNIP>
>       my $result = `$command`;
>       if ($result =~ /error/i || $result =~ /no response/i || $result =~
> /timeout/i || $result =~ /Unknown Object Identifier/ )
>       {
> <SNIP>
>
>
> After changing this myself, i can now see the problem in the logs:
> Thu Nov  1 12:08:06 2012: ERR: The command '/usr/bin/snmpget -c "xxxx"
> 0.0.0.0
> iso.org.dod.internet.private.enterprises.9.9.150.1.1.3.1.2.26740905
> 2>&1' failed with an error:
> iso.org.dod.internet.private.enterprises.9.9.150.1.1.3.1.2.26740905:
> Unknown Object Identifier
> (org.dod.internet.private.enterprises.9.9.150.1.1.3.1.2.26740905)
>
> Now i see i have an snmpget problem.
>
>
>
> Michael
> _______________________________________________
> radiator mailing list
> radiator at open.com.au
> http://www.open.com.au/mailman/listinfo/radiator
>
>


More information about the radiator mailing list