Community discussions

MikroTik App
 
Pavouk106
just joined
Topic Author
Posts: 7
Joined: Fri Jan 21, 2011 11:13 pm

[SOLVED] SNMP reporting memory problem

Fri Jan 21, 2011 11:25 pm

Hello,

I have roughly searched this forum and haven't found answer to my problem.

I want to get memory usage from my RB433 (with latest RouterOS v5.0rc7), so I use and get
snmpwalk -c community -v 1 IPaddress .1.3.6.1.2.1.25.2.3.1.6
HOST-RESOURCES-MIB::hrStorageUsed.65536 = INTEGER: 12864
HOST-RESOURCES-MIB::hrStorageUsed.131073 = INTEGER: 33424
I want only the first line, so I add .1 to OID, but then I get "End of MIB".

I'm a little newcomer in this problematic. Am I doing something bad? I tried to search via google, but no luck.

Can someone help me to solve it?

Thanks
Pavouk106
Last edited by Pavouk106 on Thu Mar 17, 2011 1:06 pm, edited 1 time in total.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: SNMP reporting memory problem

Tue Jan 25, 2011 12:20 pm

Pavouk106,

Thank you very much for the report.
We have found and fixed one problem at 5.0rc8 version for the particular problem.
Memory and Disk reported values are fixed at 5.0rc8.
 
Pavouk106
just joined
Topic Author
Posts: 7
Joined: Fri Jan 21, 2011 11:13 pm

Re: SNMP reporting memory problem

Tue Jan 25, 2011 12:25 pm

Thanks for very fast reply.

I'm looking forward to v5.0rc8 and have values back in SNMP generated graphs.
 
centsi
newbie
Posts: 33
Joined: Wed Dec 13, 2006 2:07 pm
Location: Spain

Re: SNMP reporting memory problem

Tue Feb 08, 2011 6:31 pm

Hi.

I've just tried RC8 for this very reason, but the memory and hard disk entries still don't seem to be there.

Did this bugfix get dropped from rc8 in the end?

I'm using rc8 on a 411 board, and am getting this response from a snmpwalk on .1.3.6.1.2.1.25.2.3.1.6:

iso.3.6.1.2.1.25.2.3.1.6.65536 = INTEGER: 10936
iso.3.6.1.2.1.25.2.3.1.6.131073 = INTEGER: 29476

Instead of this on a version 3.3:

iso.3.6.1.2.1.25.2.3.1.6.1 = INTEGER: 38004
iso.3.6.1.2.1.25.2.3.1.6.2 = INTEGER: 17156

Thanks - Lawrence
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: SNMP reporting memory problem

Tue Feb 08, 2011 7:15 pm

The problem should be fixed at 5.0rc8. We will try to make additional tests.
Do you have any other MikroTik board with rc8 (do you get the same problem there too)?
 
centsi
newbie
Posts: 33
Joined: Wed Dec 13, 2006 2:07 pm
Location: Spain

Re: SNMP reporting memory problem

Mon Feb 14, 2011 4:18 pm

Hi.

I've just tried the same snmpwalk on a different rc8 box, this time a RB433, and the results are the same:

iso.3.6.1.2.1.25.2.3.1.6.65536 = INTEGER: 15760
iso.3.6.1.2.1.25.2.3.1.6.131073 = INTEGER: 29036

Thanks - Lawrence
 
centsi
newbie
Posts: 33
Joined: Wed Dec 13, 2006 2:07 pm
Location: Spain

Re: SNMP reporting memory problem

Mon Feb 14, 2011 4:22 pm

Actually, it turns out that this RB433 is in fact now on rc9, and still the problem persists...

Cheers - Lawrence
 
centsi
newbie
Posts: 33
Joined: Wed Dec 13, 2006 2:07 pm
Location: Spain

Re: SNMP reporting memory problem

Fri Feb 25, 2011 10:37 am

Hi.

Any news on this?

Thanks - Lawrence
 
Pavouk106
just joined
Topic Author
Posts: 7
Joined: Fri Jan 21, 2011 11:13 pm

Re: SNMP reporting memory problem

Thu Mar 17, 2011 10:00 am

I'm running rc9 now on my 433 and the problem from first post is still there.

I run snmpwalk with OID .1.3.6.1.2.1.25.2.3.1.6 and I get 2 values.
When I run it with IOD .1.3.6.1.2.1.25.2.3.1.6.1 I get End of MIB instead of first value.

I tried to snmpwalk older version of OS (don't know which one though, I'm not admin here in the net) and I can get 2 values and by adding .1 or .2 I get the first and the second value respectively.

It would be great if I could get specific value even from 5.0rc.

(5.0rc is great in other things though ;-) )
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: SNMP reporting memory problem

Thu Mar 17, 2011 11:47 am

reported oids by /system resource print oid
> sy resource print oid 
           uptime: .1.3.6.1.2.1.1.3.0
  total-hdd-space: .1.3.6.1.2.1.25.2.3.1.5.131073
   used-hdd-space: .1.3.6.1.2.1.25.2.3.1.6.131073
     total-memory: .1.3.6.1.2.1.25.2.3.1.5.65536
      used-memory: .1.3.6.1.2.1.25.2.3.1.6.65536
why would you try other values?

if you want only first line of snmpwalk of .1.3.6.1.2.1.25.2.3.1.6 you have to use .1.3.6.1.2.1.25.2.3.1.6.131073
 
Pavouk106
just joined
Topic Author
Posts: 7
Joined: Fri Jan 21, 2011 11:13 pm

Re: SNMP reporting memory problem

Thu Mar 17, 2011 12:58 pm

I have to apologize, I realized it few minutes after shutting down my PC and going to work. I just have to use other ending number (as you had written).

RouterOS v4 had it made in other way (.1 and .2) and I haven't understood the change (to the new numbers). I'm not professional in these things (SNMP and all)

I'm sorry about that. Thank you for answers

Who is online

Users browsing this forum: BoraHorza and 80 guests