Wrong STACK check with custom colors

Bug #483897 reported by Jürgen Kreileder
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
munin (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: munin

When building a STACK with fields that specify a custom color munin-graph erroneously gives this (non-fatal) error:

"ERROR: First field (\"$field\") of graph \"$domain\" :: \"$name\" :: \"$service\" is STACK. STACK can only be drawn after a LINEx or AREA."

The problem is that $field_count doesn't get incremented when a field specifies a custom color.
An example that shows the problem is http://muninexchange.projects.linpro.no/?search=&cid=0&pid=274

Revision history for this message
Chuck Short (zulcss) wrote :

Hi,

Which version of munin are you using?

Thanks
chuck

Changed in munin (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Jürgen Kreileder (jk) wrote :

1.2.6-13ubuntu3 on karmic.

Revision history for this message
Chuck Short (zulcss) wrote :

Thanks

Changed in munin (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Chuck Short (zulcss) wrote :

How can I reproduce this?

Regards
chuck

Revision history for this message
Jürgen Kreileder (jk) wrote :

Here's a simple test plug-in. It just builds a stack from 3 constant values. With the attached version, you'll get errors in /var/log/munin/munin-graph.log:

[...] ERROR: First field ("f2") of graph [...] "b483897" is STACK. STACK can only be drawn after a LINEx or AREA.
[...] ERROR: First field ("f3") of graph [...] "b483897" is STACK. STACK can only be drawn after a LINEx or AREA.

If you remove the 3 colour lines from the script (i.e., if you let munin choose the colors itself) the errors go away.
As said in the original report, the logic behind the STACK–LINEx/AREA test is broken if fields have custom colors.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.