Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Problems with 3Com and Extreme Networks Swtiches

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
Damin
Guest





PostPosted: Sat Feb 15, 2003 8:54 am    Post subject: Problems with 3Com and Extreme Networks Swtiches Reply with quote

Hello all,
I am running Cacti 0.6.8a on the following setup:
RedHat 7.3
apache-1.3.27-2
php-4.1.2-7.3.6
php-snmp-4.1.2-7.3.6
ucd-snmp-4.2.5-7.73.0

All my Cisco and Lucent gear is being graphed just fine, with little problems. However, I have one Extreme Networks switch where port 26 will not graph. I have a mixture of 3Com SuperStack (1000,1100,3000 and 3300) switches that will not graph at all. All of the interfaces are found and show up under "view gathered interfaces". The 3COM interfaces look like:

Current SNMP Interfaces Make All Graphs
Interface Number Description Speed Hardware Address IP Address
8 RMON VLAN 1 0 mbit 0:1 Make Graph
101 RMON:V2 Port 1 on Unit 1 10 mbit Make Graph
102 RMON:V2 Port 2 on Unit 1 10 mbit Make Graph
103 RMON:V2 Port 3 on Unit 1 10 mbit Make Graph

The Extreme Networks interfaces look like:
Current SNMP Interfaces Make All Graphs
Interface Number Description Speed Hardware Address IP Address
1 Summit48i-Port 1 10 mbit 0:1:30:f3:c4:20 Make Graph
2 Summit48i-Port 2 100 mbit 0:1:30:f3:c4:20 Make Graph
3 Summit48i-Port 3 10 mbit 0:1:30:f3:c4:20 Make Graph
4 Summit48i-Port 4 100 mbit 0:1:30:f3:c4:20 Make Graph
5 Summit48i-Port 5 100 mbit 0:1:30:f3:c4:20 Make Graph

When I run the cmd.php I get the following errors for the 3com:
ERROR: can't parse argument 'DS:traf_rmon:v2_port_1:COUNTER:600:0:10000000'
ERROR: opening '/var/www/html/cacti/rra/traf_rmon:v2_port_19_on_unit_1_119_in.rrd': No such file or directory
ERROR: can't parse argument 'DS:traf_rmon:v2_port_1:COUNTER:600:0:10000000'
ERROR: opening '/var/www/html/cacti/rra/traf_rmon:v2_port_19_on_unit_1_119_out.rrd': No such file or directory

When I run the cmd.php I get the following errors for the Extreme Networks Summit48i:
ERROR: opening '/var/www/html/cacti/rra/traf_summit48i-port_26_26_in.rrd': No such file or directory
ERROR: min must be less than max in DS definition
ERROR: opening '/var/www/html/cacti/rra/traf_summit48i-port_26_26_out.rrd': No such file or directory
ERROR: min must be less than max in DS definition

I assume that the 3Com PARSE errors are caused by the fact that the 3Com returns a "traf_rmon:" when queried, which blows away the parsing routines for the graphing stuff. Is there something that I can set on the switch to force it to not return that? Perhaps an option to snmpwalk?

As for the ExtremeNetworks, I am totally clueless. Any help would be appreciated.
Back to top
Damin
Guest





PostPosted: Sat Feb 15, 2003 1:37 pm    Post subject: Problems with 3Com and Extreme Networks Swtiches Reply with quote

The problem with the 3Com units is that the snmp_description contains a ":" character. In looking at the code (Wow! Easy to read and easier to fix! I think I'm going to have a lot to contribute here!) during the creation of the Datasources, a call is made to a function "CleanUpName". This effectively replaces a variety of characters with an underscore. I assume this is done to avoid parsing problems (like I had above) when RRD is called.

Simple patch to fix the problem:

--- ./include/functions.php.greg Thu Sep 5 17:20:52 2002
+++ ./include/functions.php Sat Feb 15 13:22:03 2003
@@ -145,8 +145,8 @@
}

function CleanUpName($string) {
- $new_string = ereg_replace("[ ]|[.]|[)]|[(]","_",$string);
- $new_string = ereg_replace("[*]|[/]|[\]|[*]|[&]|[%]|[\"]|[\']|[,]|[)]|[(]","",$new_string);
+ $new_string = ereg_replace("[ ]|[.]|[)]|[(]|[:]","_",$string);
+ $new_string = ereg_replace("[*]|[/]|[\]|[*]|[&]|[%]|[\"]|[\']|[,]|[)]|[(]|[:]","",$new_string);

return $new_string;
}

So, consider that my first patch to Cacti!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group