how to create red line in graph
Moderators: Developers, Moderators
how to create red line in graph
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
- graph_image.php.png (4.52 KiB) Viewed 3924 times
-
- first graph
- graph_image2.php.png (40.34 KiB) Viewed 3923 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
rrdtool requires ":" to be escaped
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;
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;
Who is online
Users browsing this forum: No registered users and 0 guests