Monitoring a switch

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

Moderators: Developers, Moderators

Post Reply
Ragnarok
Posts: 4
Joined: Tue May 16, 2006 2:48 am

Monitoring a switch

Post by Ragnarok »

I am new to cacti and all i wanna do is monitoring my cabletron switch. but i cant get it to work :(

maybe i searched a the wrong locations, but i found no useful documentation on how to do that simply. i looked for a template to download, but there are none?

has anyone hints for me?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) add the device
2) in the device, add the snmp interface associated query.
3) click 'create graphs for this host' in the top right corner.
4) select what you want to graph and you're done.
Ragnarok
Posts: 4
Joined: Tue May 16, 2006 2:48 am

Post by Ragnarok »

hmm so far i was too :(

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/wwwdir/tools/html/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/wwwdir/tools/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/wwwdir/tools/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/wwwdir/tools/html/cacti/resource/snmp_queries/interface.xml'
i want the traffic of all ports...
isnt the port traffic stored in 1.3.6.1.2.1.2.2.1.x.y, where x is 10/16 and y is the port number 1,2,3....
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Perform an snmpwalk against .1.3.6.1.2.1.2.2.1.1 to see what your switch responds. Cacti will do the same ...
Reinhard
Ragnarok
Posts: 4
Joined: Tue May 16, 2006 2:48 am

Post by Ragnarok »

Code: Select all

snmpwalk -Os -c public -v 2c ##ip## 1.3.6.1.2.1.2.2.1.1
ifIndex.1 = INTEGER: 1
ifIndex.2 = INTEGER: 2
ifIndex.3 = INTEGER: 3
ifIndex.4 = INTEGER: 4
ifIndex.5 = INTEGER: 5
ifIndex.6 = INTEGER: 6
ifIndex.7 = INTEGER: 7
ifIndex.8 = INTEGER: 8
ifIndex.9 = INTEGER: 9
ifIndex.10 = INTEGER: 10
ifIndex.11 = INTEGER: 11
ifIndex.12 = INTEGER: 12
ifIndex.13 = INTEGER: 13
ifIndex.14 = INTEGER: 14
ifIndex.15 = INTEGER: 15
ifIndex.16 = INTEGER: 16
ifIndex.17 = INTEGER: 17
ifIndex.18 = INTEGER: 18
ifIndex.19 = INTEGER: 19
ifIndex.20 = INTEGER: 20
ifIndex.21 = INTEGER: 21
ifIndex.22 = INTEGER: 22
ifIndex.23 = INTEGER: 23
ifIndex.24 = INTEGER: 24
ifIndex.25 = INTEGER: 25
ifIndex.26 = INTEGER: 26
that works... so what now?
Bojacob
Posts: 1
Joined: Mon May 22, 2006 3:49 am

Post by Bojacob »

I'm having the exact same issue myself. I just found this in my apache error_log file:

Code: Select all

Unknown output option passed to -O: U.
USAGE: snmpbulkwalk [OPTIONS] AGENT [OID]

  Version:  5.0.1
  Web:      http://www.net-snmp.org/
  Email:    net-snmp-coders@lists.sourceforge.net

OPTIONS:
  -h, --help            display this help message
  -H                    display configuration file directives understood...etc
So I suppose it could be an old net-snmp. I'm getting the new one now and testing it out.
Ragnarok
Posts: 4
Joined: Tue May 16, 2006 2:48 am

Post by Ragnarok »

hmm ok i switched to snmp v1 and clicked wild in the interface and it seems, its working ....
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests