Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jun 16, 2019 11:48 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: CRC error port reporting
PostPosted: Thu Sep 20, 2012 2:55 am 
Offline
Cacti User

Joined: Mon Oct 10, 2011 9:51 am
Posts: 111
Location: PARIS, France
Hi everyone,
My mac-track plugin is now working perfectly!
I just installed the last version on a CACTI 0.8.8a and I'm searching for a really special thing.

Me and my company are searching for an option to receive in CACTI the CRC error on all ports of every equipment.
I want to know if mactrack as a such option (or maybe something else..) but I think it could be the most adapted plugin.
I didn't find the solution, google don't know and this forum neither.
To remind: The CRC error tell if there is a bad configuration or an issue with a cable.

If anyone as an idea, solution or just a way to do that by myself, it could be awesome!

Thanks and have a nice day!

_________________
--
knowledge is the only thing which increases, when shared


Top
 Profile  
 
 Post subject: Re: CRC error port reporting
PostPosted: Fri Sep 21, 2012 7:18 am 
Offline
Cacti User

Joined: Wed May 21, 2008 11:33 pm
Posts: 226
It wouldn't be too difficult to add it into mactrack manually if you want it in a list format. Just check out the mactrack functions, you'll need to add they query for the oid and then the piece of html that adds the column. I've done this with number of macs per port(Mac Address per Port). That should serve as a basis.
You could also simply create a data source for the CRC oid, then create a graph template that uses it and apply to all interfaces. Then you'd have graphs for them all...depends on what you want to do.
-Dan

_________________
Please mark the topic solved if this resolves your problem.


Top
 Profile  
 
 Post subject: Re: CRC error port reporting
PostPosted: Fri Sep 21, 2012 7:57 am 
Offline
Cacti User

Joined: Mon Oct 10, 2011 9:51 am
Posts: 111
Location: PARIS, France
Hi, nice!
That's exactly what I'm trying to do!

I did the change like this:

Mysql changes:
Code:
ALTER TABLE `mac_track_interfaces` ADD `crc_counter` INT(10) UNSIGNED NOT NULL DEFAULT '0';


File: mactrack_view_interfaces.php, Line 448, add:
Code:
// mod for mac count
$display_text += array("crc_counter" => array("<br>CRC Count", "ASC"));


File: lib/mactrack_functions.php, Line 2474 add:
Code:
// mod for crc count
$row .= "<td style='white-space:nowrap;'>".$stat["crc_counter"]."</td>";


The last thing I didn't get the idea about the File: poller_mactrack.php, Line 237, after log_mactrack_statistics("collect");):

Should I add all your stuff?
Where can I put the OID??

Thanks!

_________________
--
knowledge is the only thing which increases, when shared


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group