Need help with SNMP Query XML and Graphs for HTB classes

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

Moderators: Developers, Moderators

Post Reply
Floppe
Posts: 6
Joined: Wed Apr 20, 2005 4:03 am

Need help with SNMP Query XML and Graphs for HTB classes

Post by Floppe »

Hello,

I'm a little lost when it comes to creating own scripts for SNMP, but this is what I came up with for now.

Now I wonder if it's possible to have Cacti read in the snmpwalk so we could choose in devices for which interface we want to graph and which classes we want to include in the graph?

If the walktree is wrongly designed, then I happily take pointers in how I should change it.
.1.3.6.1.4.1.2021.255.1.1.1.1 = INTEGER: 1
.1.3.6.1.4.1.2021.255.1.1.2.1 = INTEGER: 2
.1.3.6.1.4.1.2021.255.1.1.3.1 = INTEGER: 3
.1.3.6.1.4.1.2021.255.1.1.4.1 = INTEGER: 4
.1.3.6.1.4.1.2021.255.1.1.5.1 = INTEGER: 5
.1.3.6.1.4.1.2021.255.1.1.6.1 = INTEGER: 6
.1.3.6.1.4.1.2021.255.2.1.1.1 = STRING: "lo"
.1.3.6.1.4.1.2021.255.2.1.2.1 = STRING: "wan0"
.1.3.6.1.4.1.2021.255.2.1.3.1 = STRING: "eth2"
.1.3.6.1.4.1.2021.255.2.1.4.1 = STRING: "eth1"
.1.3.6.1.4.1.2021.255.2.1.5.1 = STRING: "imq0"
.1.3.6.1.4.1.2021.255.2.1.6.1 = STRING: "imq1"
.1.3.6.1.4.1.2021.255.3.1.5.1 = Counter32: 376069321
.1.3.6.1.4.1.2021.255.3.1.5.2 = Counter32: 52681350
.1.3.6.1.4.1.2021.255.3.1.5.3 = Counter32: 311288407
.1.3.6.1.4.1.2021.255.3.1.5.4 = Counter32: 12099509
.1.3.6.1.4.1.2021.255.3.2.5.1 = Counter32: 2137028
.1.3.6.1.4.1.2021.255.3.2.5.2 = Counter32: 1012989
.1.3.6.1.4.1.2021.255.3.2.5.3 = Counter32: 1107920
.1.3.6.1.4.1.2021.255.3.2.5.4 = Counter32: 16118
.1.3.6.1.4.1.2021.255.3.3.5.1 = Counter32: 1568
.1.3.6.1.4.1.2021.255.3.3.5.2 = Counter32: 0
.1.3.6.1.4.1.2021.255.3.3.5.3 = Counter32: 14
.1.3.6.1.4.1.2021.255.3.3.5.4 = Counter32: 1554
.1.3.6.1.4.1.2021.255.3.4.5.1 = Counter32: 284937
.1.3.6.1.4.1.2021.255.3.4.5.2 = Counter32: 0
.1.3.6.1.4.1.2021.255.3.4.5.3 = Counter32: 0
.1.3.6.1.4.1.2021.255.3.4.5.4 = Counter32: 0
.1.3.6.1.4.1.2021.255.4.1.5.1 = STRING: "1:1"
.1.3.6.1.4.1.2021.255.4.1.5.2 = STRING: "1:10"
.1.3.6.1.4.1.2021.255.4.1.5.3 = STRING: "1:20"
.1.3.6.1.4.1.2021.255.4.1.5.4 = STRING: "1:26"
.1.3.6.1.4.1.2021.255.4.1.5.5 = STRING: "1:25"
.1.3.6.1.4.1.2021.255.4.2.5.1 = STRING: "1:"
.1.3.6.1.4.1.2021.255.4.2.5.2 = STRING: "1:1"
.1.3.6.1.4.1.2021.255.4.2.5.3 = STRING: "1:1"
.1.3.6.1.4.1.2021.255.4.2.5.4 = STRING: "1:20"
.1.3.6.1.4.1.2021.255.4.2.5.5 = STRING: "1:20"
.1.3.6.1.4.1.2021.255.4.3.5.1 = Counter32: 376052552
.1.3.6.1.4.1.2021.255.4.3.5.2 = Counter32: 52681350
.1.3.6.1.4.1.2021.255.4.3.5.3 = Counter32: 323371202
.1.3.6.1.4.1.2021.255.4.3.5.4 = Counter32: 311288462
.1.3.6.1.4.1.2021.255.4.3.5.5 = Counter32: 12099509
.1.3.6.1.4.1.2021.255.4.4.5.1 = Counter32: 2137028
.1.3.6.1.4.1.2021.255.4.4.5.2 = Counter32: 1012989
.1.3.6.1.4.1.2021.255.4.4.5.3 = Counter32: 1124039
.1.3.6.1.4.1.2021.255.4.4.5.4 = Counter32: 1107921
.1.3.6.1.4.1.2021.255.4.4.5.5 = Counter32: 16118
.1.3.6.1.4.1.2021.255.4.3.5.X presents bytes sent in HTB class X for interface 5 (which is imq0 in this case)
.1.3.6.1.4.1.2021.255.4.4.5.X presents pakets sent in HTB class X

Could be so 1.1, 2.1, 4.2 and 4.1 are inputs so the users see following to choose between.
ifIndex 5, ifDesc imq0, ifClassParent 1:, ifClassHandle 1:1
ifIndex 5, ifDesc imq0, ifClassParent 1:1, ifClassHandle 1:10
ifIndex 5, ifDesc imq0, ifClassParent 1:1, ifClassHandle 1:20
ifIndex 5, ifDesc imq0, ifClassParent 1:20, ifClassHandle 1:26
ifIndex 5, ifDesc imq0, ifClassParent 1:20, ifClassHandle 1:25

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

Post by gandalf »

I suppose so. Please find help at http://docs.cacti.net/node/227
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests