how to create red line in graph

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

Moderators: Developers, Moderators

Post Reply
kati
Posts: 4
Joined: Sun Sep 25, 2005 6:07 am

how to create red line in graph

Post by kati »

How to create a graph like first one? It's attractive looks better than the second one. Like red line in time. Time axis can be easily differentiated by the red line but in second graph all lines are in black.
Attachments
second graph
second graph
graph_image.php.png (4.52 KiB) Viewed 3923 times
first graph
first graph
graph_image2.php.png (40.34 KiB) Viewed 3922 times
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Both have red lines, one is just easier to see.

It would appear to me that the first graph is from a system using rrdtool 1.2x and the second from a system using rrdtool 1.1x
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
kati
Posts: 4
Joined: Sun Sep 25, 2005 6:07 am

Post by kati »

Hello

I have getting this error in my apache log after upgrading rrdtool to 1.2x .


ERROR: Garbage ':04:32 To 2005/09/27 14:04:32\c' after command:
COMMENT:From 2005/09/26 14:04:32 To 2005/09/27 14:04:32\c
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Interesting Kati. If you can trace it down to a specific graph, paste it's graph debug syntax as a part of this post. Also, please provide the rrdtool version.

Thanks,

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?
Neptune
Posts: 4
Joined: Sun Oct 10, 2004 12:42 am

rrdtool requires ":" to be escaped

Post by Neptune »

rrdtool -v
RRDtool 1.2.6

I've found these similar errors in the latest version of Cacti when using rrdtool 1.2.6.

To fix, there is a missing str_replace in lib/rrd.php:

diff lib/rrd.php.orig lib/rrd.php
692c692
< $graph_legend .= "COMMENT:\"From " . date($graph_date, $graph_data_array["graph_start"]) . " To " . date($graph_date, $graph_data_array["graph_end"]) . "\\c\"" . RRD_NL . "COMMENT:\" \\n\"" . RRD_NL;
---
> $graph_legend .= "COMMENT:\"From " . str_replace(":", "\:",date($graph_date, $graph_data_array["graph_start"])) . " To " . str_replace(":", "\:",date($graph_date, $graph_data_array["graph_end"])) . "\\c\"" . RRD_NL . "COMMENT:\" \\n\"" . RRD_NL;
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests