Hi,
I have just upgrade cacti to 0.8.6e, and i have this little problem, when i activate debug mode on graph :
RRDTool Says:
ERROR: Legend set but no color: Outbound
The only type of graph which is impacted is 95th perctentile graph.
Can you help me ?
Thanks
Regards,
ERROR: Legend set but no color: Outbound
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
That's Odd. Please send Graph Syntax (logging to DEBUG, and view the graph via Graph Management, then view logfile, it will show syntax). Then post that and the RRD files. Thanks!!!
TheWitness
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?
I'm also having the same problem. I think this problem may be due to changes in rrdtool from 1.0.x to 1.2.x. This error seems to happen when using 1.2.x and your graph template has a data source without an assigned color.
Why would a data source not have an assigned color? When using it to compute a secondary value and graph it instead.
rrdtool requires the data source to exist in the graph before it is used in a computation or a gprint. Sometimes you aren't interested in graphing the data source itself but the computed value instead. In 1.0.x there was a workaround that allowed you to add the data source, set it to zero, and leave the color set to none. This made the data source hide in the background w/o appearing in the graph or legend. This workaround doesn't seem to work anymore in 1.2.x.
Apache Stats seems to be a good example. There is a graph templated titled "Unix - Apache Statistics - Bytes / Request" where the hits are merged with the kBytes to give a computed B/hit data source. In my configuration the graphs this template generates are broken and gives the error: "ERROR: Legend set but no color: kBytes\n". If I edit the graph template and set the hits and kBytes color to anything other than None the graph is generated but the legend now has both hits and kBytes listed (undesireable outcome).
Any ideas?
My environment in case it's necessary...
Cacti: 0.8.6f
rrdtool: 1.2.11
rrdtool 1.2.x features enabled?: yes
rrdtool 1.2.x fontpath set?: yes
Poller: poller.php
OS: SuSE Linux 9.2 (x86-64)
Why would a data source not have an assigned color? When using it to compute a secondary value and graph it instead.
rrdtool requires the data source to exist in the graph before it is used in a computation or a gprint. Sometimes you aren't interested in graphing the data source itself but the computed value instead. In 1.0.x there was a workaround that allowed you to add the data source, set it to zero, and leave the color set to none. This made the data source hide in the background w/o appearing in the graph or legend. This workaround doesn't seem to work anymore in 1.2.x.
Apache Stats seems to be a good example. There is a graph templated titled "Unix - Apache Statistics - Bytes / Request" where the hits are merged with the kBytes to give a computed B/hit data source. In my configuration the graphs this template generates are broken and gives the error: "ERROR: Legend set but no color: kBytes\n". If I edit the graph template and set the hits and kBytes color to anything other than None the graph is generated but the legend now has both hits and kBytes listed (undesireable outcome).
Any ideas?
My environment in case it's necessary...
Cacti: 0.8.6f
rrdtool: 1.2.11
rrdtool 1.2.x features enabled?: yes
rrdtool 1.2.x fontpath set?: yes
Poller: poller.php
OS: SuSE Linux 9.2 (x86-64)
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
If you are going to use 1.2, you need to alter you templates/graphs to work.
[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]
Who is online
Users browsing this forum: No registered users and 0 guests