Requested: company logo in background of graph.
Moderators: Developers, Moderators
-
- Posts: 10
- Joined: Mon Jul 28, 2003 3:37 am
- Location: The Netherlands
Requested: company logo in background of graph.
Is it posible to have a (small) picture in a corner of the graph? i like to put the company logo in.
In theory rrdtool is able to add some bitmap to your graph as a background or overlay (-B and -O options). However I couldn't get it working (acceptable bitmap formats are only .gd files). If you are willing to try and you succeed let me know please. To have it working in cacti you would need to add proper rrdtool command option in "rrdtool_function_graph" function (it is in "lib/rrd.php" file).
- Piotr
- Piotr
Nope, but if you made a working patch I bet they would incorporate it.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 24
- Joined: Sun Apr 02, 2006 7:00 pm
Re: Requested: company logo in background of graph.
humm, i like to see this as wellchristiaan wrote:Is it posible to have a (small) picture in a corner of the graph? i like to put the company logo in.
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please note that the -B and -O do not function in RRDtool 1.2.x as described above in this 2.5 year old post. The only option available in 1.2.x is the -W option that places a text watermark on the bottom of the graph centered.
Certain customizations could be made to incorporate a background image, but it would have to come from Tobi.
TheWitness
Certain customizations could be made to incorporate a background image, but it would have to come from Tobi.
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?
RE:
Hi All!!
I'm trying to add a watermark image as background of the graphic, but I still have problems.
I study the code and the data dump by RRDTool is not compatible with data received by PHP-GD.
Someone has been working on this? or someone give me more info about this topic. Or I totally fucking because that depends on rrdtool?
Excuse my English but i speak spanish and y try to translate with Google.
Saludos!!
I'm trying to add a watermark image as background of the graphic, but I still have problems.
I study the code and the data dump by RRDTool is not compatible with data received by PHP-GD.
Someone has been working on this? or someone give me more info about this topic. Or I totally fucking because that depends on rrdtool?
Excuse my English but i speak spanish and y try to translate with Google.
Saludos!!
- sneakymonkey
- Posts: 10
- Joined: Tue Jan 22, 2008 1:59 pm
- Location: Birmingham, UK
watermark on all graphs?
Hi,
i'm interested in watermarking all my graphs with the --watermark string attribute but wondered which file i could edit so that it will default this on all generated graphs. i guess im looking at something in \lib\ rrd.php maybe?
any help or direction?
thanks.
i'm interested in watermarking all my graphs with the --watermark string attribute but wondered which file i could edit so that it will default this on all generated graphs. i guess im looking at something in \lib\ rrd.php maybe?
any help or direction?
thanks.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Yes, that would be the file to be touching.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- sneakymonkey
- Posts: 10
- Joined: Tue Jan 22, 2008 1:59 pm
- Location: Birmingham, UK
- sneakymonkey
- Posts: 10
- Joined: Tue Jan 22, 2008 1:59 pm
- Location: Birmingham, UK
..cacti/lib/rrd.php (round line ~730)
this worked perfectly placing the watermark text on all graphs like stated in the rrdtool reference guide.
Code: Select all
/* basic graph options */
$graph_opts .=
"--imgformat=" . $image_types{$graph["image_format_id"]} . RRD_NL .
"--start=$graph_start" . RRD_NL .
"--end=$graph_end" . RRD_NL .
"--title=\"" . str_replace("\"", "\\\"", $graph["title_cache"]) . "\"" . RRD_NL .
"$rigid" .
"--base=" . $graph["base_value"] . RRD_NL .
"--height=$graph_height" . RRD_NL .
"--watermark=COMPANYNAME" . RRD_NL .
"--width=$graph_width" . RRD_NL .
"$scale" .
"$unit_value" .
"$unit_exponent_value" .
"$graph_legend" .
"--vertical-label=\"" . $graph["vertical_label"] . "\"" . RRD_NL;
i wonder if there is a way to easily set the postion/add bold/different font etc... to the watermark only?[-W|--watermark string]
Adds the given string as a watermark, horizontally centred, at the bottom of the graph.
Who is online
Users browsing this forum: No registered users and 4 guests