Manual adjustment of traffic values

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

wirespot wrote:I've posted a snmpwalk above:
http://forums.cacti.net/post-46296.html#46296

As I understand from the manual page, that means a query of MIB-2 by default. If I add "MIB-2" at the end of the line, as the interface, I get the same walk.

However, I can't seem to figure out any other interface OID to pass as an extra parameter (and apparently neither does Cacti). Anything I enter after the router IP produces one message: "End of MIB".

Any suggestion of good interface strings I could use?

And, are you sure it's even supposed to have more than one interface? Logically, I can understand the need for at least two, but why is it hiding them so well? :)
My question was not (more) about the single one interface, but about the "End of MIB" strings and the ifSpeed.1 of 0. But your snmpwalk clearly shows, that the device manufacturer has some problems with his SNMP implementation (I suppose an interface speed of 0 would make a network device merely unusable, apart from being a kind of radiator). And the extended MIB (where the IF IP comes from) is not implemented as well (as your interface 1 does show nothing for the IP column). But this is cosmetic.
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

And here's what I did to subtract a constant value of 10.000 (bits) from your traffic (see picture below). CDEF

Code: Select all

cdef=CURRENT_DATA_SOURCE,8,*,10000,-,0,LT,0,CURRENT_DATA_SOURCE,8,*,10000,-,IF
This is:
  • CURRENT_DATA_SOURCE,8,* multiply current value with 8 (turn bytes into bits)
  • 10000,- take value from last operation and subtract 10000 (replace 10000 with your value if that differs)
  • 0,LT take value from last operation and compare to 0, return TRUE or FALSE
  • 0,CURRENT_DATA_SOURCE,8,*,10000,-,IF take value from last operation. If this was TRUE, return value 0. If this was FALSE, return value CURRENT_DATA_SOURCE,8,*,10000,- (as explained above)
This may be optimized for performance, but I hope this one may be explain itself better.
hth
Reinhard
Attachments
Screenshot for CDEF
Screenshot for CDEF
CDEF-GT-10000.png (39.65 KiB) Viewed 502 times
wirespot
Posts: 8
Joined: Mon Oct 31, 2005 3:09 am

Post by wirespot »

lvm wrote:My question was not (more) about the single one interface, but about the "End of MIB" strings and the ifSpeed.1 of 0. But your snmpwalk clearly shows, that the device manufacturer has some problems with his SNMP implementation (I suppose an interface speed of 0 would make a network device merely unusable, apart from being a kind of radiator). And the extended MIB (where the IF IP comes from) is not implemented as well (as your interface 1 does show nothing for the IP column). But this is cosmetic.
The SNMP docs I have on Debian say this about ifSpeed being zero: "For a sub-layer which has no concept of bandwidth, this object should be zero."

It's an Allied Telesyn AR-221E, in case anyone else wants to know (and perhaps stay away from, although other than the less than ideal SNMP implementation it's a rather good piece of hardware IMHO).
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests