snmptable too slow to get sessions

Questions related to general functionality
Post Reply
broonu
Posts: 15
Joined: 28 May 2015, 17:26

snmptable too slow to get sessions

Post by broonu »

Hi all,

I have some accel-ppp servers with pppoe and in one of them i get this problem.
when i want do get stats everything is fine:

Code: Select all

root@monitoramento:~# time /usr/bin/snmpwalk -m +ACCEL-PPP-MIB -v 2c -c sobrasvr 10.29.0.218 ACCEL-PPP-MIB::accelPPPStat
ACCEL-PPP-MIB::statCoreUpTime.0 = Gauge32: 3957069 seconds
ACCEL-PPP-MIB::statCoreCPU.0 = INTEGER: 0
ACCEL-PPP-MIB::statCoreMemRss.0 = INTEGER: 22552576
ACCEL-PPP-MIB::statPPPStarting.0 = INTEGER: 0
ACCEL-PPP-MIB::statPPPActive.0 = INTEGER: 378
ACCEL-PPP-MIB::statPPPFinishing.0 = INTEGER: 0
ACCEL-PPP-MIB::statPPPOEStarting.0 = INTEGER: 0
ACCEL-PPP-MIB::statPPPOEActive.0 = INTEGER: 378

real    0m0.432s
user    0m0.020s
sys     0m0.000s
when i try to get sessions with snmptable, sometimes it didnt reply and sometimes reply with incomplete sessions and i get something like this:

Code: Select all

root@monitoramento:~# time snmptable -m +ACCEL-PPP-MIB -v2c -c sobrasvr 10.29.0.218 ACCEL-PPP-MIB::sessionTable
SNMP table: ACCEL-PPP-MIB::sessionTable

             sesSID sesIfName         sesUsername           sesIP sesType sesState      sesUptime       sesCallingSID             sesCalledSID
[...]
"89b05d3374776ee6"  "ppp330"       "71747320706"  179.X.X.X   pppoe   active    187 seconds "3a:02:71:32:8f:98" "eth4:00:50:56:a3:d1:10"
                  ?         ?                   ?               ?   pppoe   active     21 seconds "5a:02:71:2d:f3:9c" "eth3:00:50:56:a3:f6:fd"

real    1m12.897s
user    0m0.064s
sys     0m0.028s       
there is a best way to get all sessions in the NAS?
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: snmptable too slow to get sessions

Post by Dmitry »

you can try cli:
echo show sessions | nc 127.0.0.1 2001
broonu
Posts: 15
Joined: 28 May 2015, 17:26

Re: snmptable too slow to get sessions

Post by broonu »

Thank you Dmitry, this works well, as "accel-cmd show sessions" too, but im collecting this info in zabbix with snmp.
when i run snmptable against a accel-ppp, the cpu goes to 99%.
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: snmptable too slow to get sessions

Post by Dmitry »

is it running as master ?
broonu
Posts: 15
Joined: 28 May 2015, 17:26

Re: snmptable too slow to get sessions

Post by broonu »

In snmpd.conf i have:
master agentx

But now im getting the users direct from radius, nevermind. Thank you!
Post Reply