Graphing total interface status

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
User avatar
ARC1450
Cacti User
Posts: 104
Joined: Wed Jun 24, 2009 9:42 am

Graphing total interface status

Post by ARC1450 »

So I have MAC Track working. . .really, really awesome little plugin.

However, with all my poking around, I can't find a way to graph the number of used ports out of the number of total ports on a chassis.

I know the info is there somewhere. . .I just don't know where. MAC Track is getting the correct number of ports for both instances, I just need a way to capture and graph the info historically.

TIA
[color=black]mount -o protected -t voluptuous,selfmaintaining /dev/woman /mnt/me
Attitude is no substitute for competence
See through faded, super jaded, out of my mind[/color]
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Graphing total interface status

Post by TheWitness »

Look into mactrack_devices table.
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?
User avatar
ARC1450
Cacti User
Posts: 104
Joined: Wed Jun 24, 2009 9:42 am

Re: Graphing total interface status

Post by ARC1450 »

Haha! Awesome! Thanks dude!

Now all I have to do is figure out how to get all the info into a graph or something. :-D
[color=black]mount -o protected -t voluptuous,selfmaintaining /dev/woman /mnt/me
Attitude is no substitute for competence
See through faded, super jaded, out of my mind[/color]
User avatar
ARC1450
Cacti User
Posts: 104
Joined: Wed Jun 24, 2009 9:42 am

Re: Graphing total interface status

Post by ARC1450 »

So, just wanted to say thanks to "TheWitness" for pointing me in the direction.

After a lot of facepalms, some dirty words, a little better understanding of MySQL and a little dirty tutorial on PHP, I've written a nice little PHP script server script that pulls the data from the MySQL database and graphs it for historical purposes. There's an attached picture to show what I've done in case anyone else might find it useful.
Attachments
graph_image.png
graph_image.png (23.88 KiB) Viewed 3591 times
[color=black]mount -o protected -t voluptuous,selfmaintaining /dev/woman /mnt/me
Attitude is no substitute for competence
See through faded, super jaded, out of my mind[/color]
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Graphing total interface status

Post by TheWitness »

Please post to the templates repository when you feel its finished. :)
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?
User avatar
ARC1450
Cacti User
Posts: 104
Joined: Wed Jun 24, 2009 9:42 am

Re: Graphing total interface status

Post by ARC1450 »

TheWitness wrote:Please post to the templates repository when you feel its finished. :)
I have *no* idea how to do that. :oops:

And since this is dependent upon MAC Track, if you want to roll it into your plug-in, feel free.
[color=black]mount -o protected -t voluptuous,selfmaintaining /dev/woman /mnt/me
Attitude is no substitute for competence
See through faded, super jaded, out of my mind[/color]
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Graphing total interface status

Post by TheWitness »

Just PM me when it's done.
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?
zakki
Posts: 10
Joined: Tue Oct 25, 2011 2:09 am

Re: Graphing total interface status

Post by zakki »

follow,like and +1 for the graph to be included in thold :)
just curious, did you filter the graph for physical ports only?
User avatar
ARC1450
Cacti User
Posts: 104
Joined: Wed Jun 24, 2009 9:42 am

Re: Graphing total interface status

Post by ARC1450 »

Nope. But MAC Track would do that for you by just ignoring certain interfaces.
[color=black]mount -o protected -t voluptuous,selfmaintaining /dev/woman /mnt/me
Attitude is no substitute for competence
See through faded, super jaded, out of my mind[/color]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests