3Com switch - interface number missing

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

Moderators: Developers, Moderators

Post Reply
laffen
Cacti User
Posts: 56
Joined: Tue Jul 13, 2004 2:57 am
Location: Norway

3Com switch - interface number missing

Post by laffen »

Hi,

I am graphing a 3Com 7750 switch with Cacti 0.8.7b, all the graphs looks fine but they only say "3Com 7750 - Traffic - GigabitEthernet" without the switchport number. Attached 2 pictures, one of the graph and the other from config. Anything I need to add on switch or in cacti?
This is my first non-Cisco switch with Cacti, any help appreciated!
Attachments
graph view
graph view
3com-prob-2.jpg (78.47 KiB) Viewed 5369 times
config
config
3com-prob-1.jpg (123.08 KiB) Viewed 5369 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please visit Settings->Visual. There's a setting for title length
Reinhard
bio777
Posts: 16
Joined: Fri Mar 17, 2006 6:16 am

Post by bio777 »

gandalf wrote:Please visit Settings->Visual. There's a setting for title length
Reinhard
Reinhard : sorry to say that the visual settings aint the problem.

It looks like that the 3com switch need a non-standard SNMP template.
I have the same problem with the 5500's. the 4400's are ok
I will try to figure it out somehow


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

Post by gandalf »

Please visit "System Utilities -> View SNMP Cache", filter for that host to find the value you're seeing. Is it already truncated?
Reinhard
bio777
Posts: 16
Joined: Fri Mar 17, 2006 6:16 am

Post by bio777 »

this is the snmp cache :

Host: CCS-ZWO-NS-CORE , SNMP Query: SNMP - Interface Statistics
Index: 4227625 , Field Name: ifAlias , Field Value: Naar CCS-ZWO-PK-A
OID: .1.3.6.1.2.1.31.1.1.1.18.4227625

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

Post by gandalf »

no ifDescr found?
Reinhard
oxullo
Posts: 2
Joined: Thu Nov 24, 2011 9:38 am

Re: 3Com switch - interface number missing

Post by oxullo »

I hope I may resurrect the thread, for I have the same issue.

cacti 0.8.7e (ubuntu 10.04 server), trying to monitor a 3com 4200g-48p switch.

Not so much to add, except that the SNMP cache has all that is needed (excerpting only one interface):

Code: Select all

Host: SW1 , SNMP Query: SNMP - Interface Statistics
Index: 4227145 , Field Name: ifAlias , Field Value:
OID: .1.3.6.1.2.1.31.1.1.1.18.4227145 

Host: SW1 , SNMP Query: SNMP - Interface Statistics
Index: 4227145 , Field Name: ifDescr , Field Value: GigabitEthernet1/0/1
OID: .1.3.6.1.2.1.2.2.1.2.4227145

Host: SW1 , SNMP Query: SNMP - Interface Statistics
Index: 4227145 , Field Name: ifHwAddr , Field Value: <mac>
OID: .1.3.6.1.2.1.2.2.1.6.4227145 

Host: SW1 , SNMP Query: SNMP - Interface Statistics
Index: 4227145 , Field Name: ifIndex , Field Value: 4227145
OID: .1.3.6.1.2.1.2.2.1.1.4227145
If I try to change the name of a data source connected to an interface, no matter if I put |query_ifName| or |query_ifDescr| I get always GigabitEthernet. |ifHwAddr| appears instead.
When I edit the data source, I see this (the indexing via ifDescr seems to work..):
cacti-dataquery.png
cacti-dataquery.png (83.82 KiB) Viewed 2598 times
thanks for any hint!
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: 3Com switch - interface number missing

Post by noname »

Try:
1) Check "Maximum Field Length" in Settings->Visual
2) Perform "Reapply Suggested Names" in Data Sources

Also, verify what value is specified for "Suggested Values" in Data Queries-> 'SNMP - Interface Statistics' -> Associated Graph Templates.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: 3Com switch - interface number missing

Post by TheWitness »

Another point to note is that the Suggested Naming Algorythim goes from top to bottom looking for Uniqueness. When it finds it in any set of criteria, it lands there. So, if you want to force ifAlias to work, all your interfaces need an ifAlias, or your suggested names needs to include a field that is also unique, like ifName, ifDescr or ifIndex.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
oxullo
Posts: 2
Joined: Thu Nov 24, 2011 9:38 am

Re: 3Com switch - interface number missing

Post by oxullo »

Actually I fiddled with the order of the data queries suggested values, but what I got was always the same outcome (excluding the case of the template that contained "ifIndex", but that was useless to me). That's when I tried to rename directly the graph and found out that using ifDescr or ifName made no difference: I could get only 'GigabitEthernet'.

Today I followed noname's suggestion (I could have done that before but I was mislead from laffen's reply), changing the max size to 50 chars and it worked.

Noname, TheWitness, thank you both for the reply.
maxgokhan
Posts: 1
Joined: Wed Aug 13, 2014 8:37 am

Re: 3Com switch - interface number missing

Post by maxgokhan »

Thanks for your comment to fix this issue.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests