Bar Graph HowTo

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

Moderators: Developers, Moderators

Post Reply
bipinkdas
Posts: 11
Joined: Tue Apr 18, 2006 5:10 am

Bar Graph HowTo

Post by bipinkdas »

Hi all,
I am using CACTI with my ISP. But now I would like to change the custom graph to Bar graph How can I do this ?

Help me

regards

Bipin Das :(
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You're thinking of sth like the attached?
Reinhard
Attachments
Area Graph (with Trend, but this is not needed)
Area Graph (with Trend, but this is not needed)
Bildschirmfoto.png (54.5 KiB) Viewed 12257 times
Eudos
Posts: 3
Joined: Thu Apr 13, 2006 2:34 pm

Post by Eudos »

lvm wrote:You're thinking of sth like the attached?
Reinhard
I'm looking for it too. Please help :oops:
bipinkdas
Posts: 11
Joined: Tue Apr 18, 2006 5:10 am

Bar Graph HOWto

Post by bipinkdas »

Sir,
I am thinking about the real BAR GRAPH. I am giving an example what i think

regrds

Bpin Das
Attachments
bargraph.png
bargraph.png (4.9 KiB) Viewed 12243 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Bar Graph HOWto

Post by gandalf »

bipinkdas wrote:Sir,
I am thinking about the real BAR GRAPH. I am giving an example what i think

regrds

Bpin Das
This is a NOGO. cacti is an rrdtool frontend. And rrdtool does not provide real bar charts.
Reinhard
User avatar
rhamburg
Posts: 14
Joined: Mon Dec 05, 2005 8:18 am

Post by rhamburg »

lvm wrote:You're thinking of sth like the attached?
Reinhard
YES !!

How did you accomplish that ?? Am looking for this exactly for weeks now.

Please advise
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Bar Graph HOWto

Post by Howie »

lvm wrote:
bipinkdas wrote:Sir,
I am thinking about the real BAR GRAPH. I am giving an example what i think

regrds

Bpin Das
This is a NOGO. cacti is an rrdtool frontend. And rrdtool does not provide real bar charts.
Reinhard
With suitably defined RRAs, you could use 'rrdtool xport' and draw graphs that way yourself. I don't think you could get Cacti to display them though, and it would mean you writing some graphics code.

I did this for myself, to get small last-3-hour stripgraphs on our intranet. These barcharts are the same sort of thing. It's not much fun to do though, and not an option if you aren't a programmer, or you must have the charts in Cacti's web interface.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
rhamburg
Posts: 14
Joined: Mon Dec 05, 2005 8:18 am

Post by rhamburg »

lvm wrote:You're thinking of sth like the attached?
Reinhard
I wasnt referring to the bars. But to the graph reinhard showed
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

To create the double-sided graph you have to create a custom CDEF something like CURRENT_DATA_SOURCE,-1,*

This takes the current data source, and multiplies it my -1, which inverts it. Only apply this new CDEF to the Line / Area graph item. When you add the min/avg/max items you will want to use the normal CDEF, otherwise you will get negative numbers printed.
Dave
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

melchandra wrote:To create the double-sided graph you have to create a custom CDEF something like CURRENT_DATA_SOURCE,-1,*

This takes the current data source, and multiplies it my -1, which inverts it. Only apply this new CDEF to the Line / Area graph item. When you add the min/avg/max items you will want to use the normal CDEF, otherwise you will get negative numbers printed.
Yep. Plus a CDEF

Code: Select all

cdef=CURRENT_DATA_SOURCE,1800,TREND
for the TREND (supported with rrdtool 1.2.x only).
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests