Cycle Graphs Plugin

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
emericklaw
Posts: 21
Joined: Thu Jan 19, 2006 1:17 pm

Cycle Graphs Plugin

Post by emericklaw »

I have been using cacti for almost a year now for my personal projects and recently the company I work for was looking into network monitoring solutions which as most of you may know can cost a fortune!
I started playing around with cacti more than I had before and noticed one thing lacking... the ability to cycle automatically through the graphs.

This plugin adds this functionality to Cacti!

We use it for displaying all our graphs on a wall mounted lcd panel for easy viewing of whats going on.

It uses the plugin architechure which made this a breeze to code (thanks cigamit!)

Code: Select all

----[ Purpose

    This plugin allows you to automatically view the Cacti graphs one by one
    after a specified time delay.


----[ Features

    You can set cycle time delay.
    Can set permissions on who can view.
    Graph height and width can be specified.
    Graphs are not displayed if the user does not have access to them.
    Title of graph is displayed, font face, size and color can be changed.
	You can use the Prev/Next buttons to change graph.
	You can stop the rotation with the Stop button.
	The time until the next graph change is displayed under the title.
	It can use a custom graph list and only cycle through those.


----[ Installation

    To install put the cycle directory and all files into the plugins directory.

    Edit your includes/config.php and add cycle to your $plugins list.

    You can find the plugin settings under the Misc tab.


----[ Possible Bugs?
   
    The custom graph rotation is very simple and does not check for permissions.
	I am waiting for cigamit to add support for adding items to the edit graph pages so I can get it working fully.


----[ Future Changes
    
	Improve the way custom graphs are setup
	Cycle through Weathermaps (I need to look into how Weathermap works)

    Got any ideas then please let me know.


----[ Changelog
     --- 0.3 ---
			Converted the rotation code to use AJAX so the page does not fully refresh every time.
			Added custom graph rotation
			
     --- 0.2 ---
			Added Previous/Next/Stop Buttons
			
     --- 0.1 ---
           Initial release
Attachments
cycle-0.3.tar.gz
Cycle Graphs v0.3
(13.03 KiB) Downloaded 2626 times
Last edited by emericklaw on Fri Sep 01, 2006 11:02 am, edited 5 times in total.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Re: Cycle Graphs Plugin

Post by knobdy »

First, EXCELLENT idea, well implemented!
emericklaw wrote:

Code: Select all

   
----[ Future Changes
    
    Add an option to each graph to allow it to be included on the cycle.

    Add previous and next buttons to skip between graphs.

    Add a stop button to make the page not refresh.

    Got any ideas then please e-mail me.
I think I can use this in our data center and just create a user ID that has access to those graphs I want to cycle through - which gets me past that issue.

One idea is for the graph page to display the name of the device in a large title format, or, even better, allow one - when adding a graph to the cycle - to add their own title along with the device name.

At any rate, great work! :)
emericklaw
Posts: 21
Joined: Thu Jan 19, 2006 1:17 pm

Post by emericklaw »

The graph selecting should be in a version I will have finished tonight, at the same time it would easy to add a cuctom title for the graph cycle and have that displayed above the graph.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

That would be great. I'll be pushing for a third monitor this week then. :)
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Excellent plugin, I look forward to using this one myself!
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

emericklaw wrote:The graph selecting should be in a version I will have finished tonight, at the same time it would easy to add a cuctom title for the graph cycle and have that displayed above the graph.
Have you had the opportunity to do this?
emericklaw
Posts: 21
Joined: Thu Jan 19, 2006 1:17 pm

Post by emericklaw »

Not the selecting of graphs because I have to wait until cigamit puts a hook for saving a graph into the plugin architechture. I have done the graph titles which I will try to release within the next few hours.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

The new hooks are in the works, should have about 8 more by Thrusday or Friday night and a new release should go out at that time. Got lots of things to do at the moment.

Main extra hold up is that I am adding an internal "Plugin Architecture" version, so that plugins can test against it to ensure that the proper hooks are in place, and so an update plugin can be created to let you know when new plugins versions or architecture versions are released.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Man you guys are doing awesome - I can't believe how much this product has grown just since I've been using it!

Cigamit, I sent you an e-mail but never heard back... did you get it and not know what to say or should I resend? :)
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

knobdy wrote:Man you guys are doing awesome - I can't believe how much this product has grown just since I've been using it!

Cigamit, I sent you an e-mail but never heard back... did you get it and not know what to say or should I resend? :)
What was the subject and the date? I've already answered about 35 today, and almost as many posts, so I go through a lot of email. My spam filter is also kinda strict with the huge amount I've been receiving lately.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Sent Jan. 27, subject: Plugin Architecture...

Can resend if you can't find it...
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

knobdy wrote:Sent Jan. 27, subject: Plugin Architecture...

Can resend if you can't find it...
Yep, just overlooked it in the crush. Replying now.
flavour
Posts: 15
Joined: Wed Sep 28, 2005 9:37 am

Post by flavour »

I have to wait until cigamit puts a hook for saving a graph into the plugin architechture. I have done the graph titles which I will try to release within the next few hours.
The new hooks are in the works, should have about 8 more by Thursday or Friday night and a new release should go out at that time.
Any update on either of these or the rest of the ToDo list?
- this is nice functionality :)

I'd love to get it cycling through the output from Weathermap:
http://wotsit.thingy.com/haj/cacti/php-weathermap/

F
User avatar
twelzy
Cacti User
Posts: 83
Joined: Wed Mar 30, 2005 6:48 pm
Location: BRAZIL/Brasilia

Post by twelzy »

Hi everybody!

I readed some posts in this topic about the addition of some new features...
Any progress with this plugin?!

Thanks in advance!
(And sorry for my poor English...)
Thanks in advance!
(And sorry for my poor English...)
_______________________________________
twelzy (Enio Sanches)
r_chetanjain
Cacti User
Posts: 83
Joined: Fri Aug 22, 2003 4:33 am

no option in user administration

Post by r_chetanjain »

Gr8 Plugin......I have some problem i think in installing this plugin.... I can't see any option in the user administration for view cycle graphs... admin user is able to get the cycle tab..but other users can't...can somebody help me on this
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests