How can I create additional graph presets?

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
nugai
Posts: 49
Joined: Thu Nov 03, 2005 10:48 pm

How can I create additional graph presets?

Post by nugai »

The screenshot below shows what's currently available in the "Default Graph View Timespan" on ./cacti/graph_settings.php

Because the existing settings do not lign up with my requirements (calendar days), I'd like to extend these time spans with the following options:
  • Today (since Midnight) - Starting at midnight, ending now.
  • Week (since Sunday) and Week (since Monday) - Starting at midnight on the starting day, ending now.
  • Month-to-date (MTD) - Starting at midnight on the 1st day of the month, ending now.
  • Year-to-Date (YTD).
How can I create such presets?
Attachments
The current graph presets have no calendar day settings.
The current graph presets have no calendar day settings.
Cacti - Graph Settings (cropped).jpg (218.04 KiB) Viewed 3241 times
maxclark
Posts: 12
Joined: Thu Feb 09, 2006 7:11 pm

Post by maxclark »

I am interested in exactly the same thing. Is this possible?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yes, but only by a code change (AFAIK at least 3 modules need to be changed)
Reinhard
maxclark
Posts: 12
Joined: Thu Feb 09, 2006 7:11 pm

Post by maxclark »

Can you point me in the direction I need to go? I have zero experiance with the Cacti code base.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please try my new work at [revisitied] Time Shifter V0.2
Reinhard
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

There are two files (maybe three) in the current version that have to be modified. I like lvm's utility. If it wasn't for the fact that we want to get 0.9 done, I would add it to the base product.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests