Customizing a graph

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
AubernKnight
Posts: 6
Joined: Wed Jul 23, 2008 3:14 pm

Customizing a graph

Post by AubernKnight »

Hi currently I am graphing some time data from a UPS. The MIB returns the time in seconds. I there an easy way add in the math to convert the seconds to minutes for graph use?

Thanks
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, it's called a CDEF. Simply store your data in seconds and then convert it with a CDEF that does the following:

CURRENT_DATASOURCE, 60, /

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?
AubernKnight
Posts: 6
Joined: Wed Jul 23, 2008 3:14 pm

Post by AubernKnight »

Where is the config for each graph created kept? Or is the question where can I change the CDEFs?
AubernKnight
Posts: 6
Joined: Wed Jul 23, 2008 3:14 pm

Post by AubernKnight »

Found it...

To create a new CDEF in Cacti, select the Graph Management option under the Management heading, and select CDEFs.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest