[RADIATOR] verifying online sessions with SNMP

Michael ringo at vianet.ca
Thu Nov 1 13:07:42 CDT 2012


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


More information about the radiator mailing list