Opened 2 years ago
#1069 new defect
multigraph and DERIVE not working for root plugin..
| Reported by: | savar | Owned by: | nobody |
|---|---|---|---|
| Priority: | normal | Milestone: | Munin 1.4.7 |
| Component: | plugins | Version: | 1.4.5 |
| Severity: | major | Keywords: | |
| Cc: |
Description
When u're trying to create a multigraph with this
multigraph daybudgets
graph_title daybudget for campaigns
graph_args --base 1000
graph_period minute
graph_vlabel daybudget change per ${graph_period}
graph_category something
graph_info This graph shows the growth of the daybudget over all domains
overall.label euro
overall.info Overall daybudget change per ${graph_period}
overall.type DERIVE
overall.draw LINE1
overall.min 0
multigraph daybudgets.campaigns_1_2
graph_title Daybudget of campaigns 1 2
graph_args --base 1000
graph_period minute
graph_vlabel daybudget change per ${graph_period}
graph_category something
graph_info This graph shows the growth of the daybudget of some campaigns.
campaign1.label 1
campaign1.info Daybudget change per ${graph_period}
campaign1.type DERIVE
campaign1.min 0
campaign1.draw LINE1
campaign2.label 2
campaign2.info Daybudget change per ${graph_period}
campaign2.type DERIVE
campaign2.min 0
campaign2.draw LINE1
the root graph won't be created (but the daybudgets.campaigns_1_2 will!)
the rrd file seems to be correct only in munin-graph there seems to happen something stupid because i saw many DEF:icampain1 ... when it was trying to generate the root graph:
rrdtool 'graph' '--font' \
'DEFAULT:0:DejaVuSans' \
'--font' \
'LEGEND:7:DejaVuSansMono' \
'-W' \
'Munin 1.4.5' \
'/var/www/munin/example.com/s1.example.com/daybudgets-day.png' \
'--title' \
'daybudget for campaigns - by day' \
'--start' \
'-30h' \
'--base' \
'1000' \
'--vertical-label' \
'daybudget change per minute' \
'--height' \
'175' \
'--width' \
'400' \
'--imgformat' \
'PNG' \
'--lazy' \
'DEF:acampaign1466=:42:MAX' \
'DEF:icampaign1466=:42:MIN' \
'DEF:gcampaign1466=:42:AVERAGE' \
'DEF:acampaign1509=:42:MAX' \
'DEF:icampaign1509=:42:MIN' \
'DEF:gcampaign1509=:42:AVERAGE' \
'DEF:acampaign1407=:42:MAX' \
....
....
.... and many more of this DEF:'s and then:
'DEF:aoverall=/var/lib/munin/example.com/s1.example.com-daybudgets-overall-d.rrd:42:MAX' \
'DEF:ioverall=/var/lib/munin/example.com/s1.example.com-daybudgets-overall-d.rrd:42:MIN' \
'DEF:goverall=/var/lib/munin/example.com/s1.example.com-daybudgets-overall-d.rrd:42:AVERAGE' \
'CDEF:acdefoverall=aoverall,60,*' \
'CDEF:icdefoverall=ioverall,60,*' \
'CDEF:gcdefoverall=goverall,60,*' \
'CDEF:ccdefoverall=gcdefoverall' \
'CDEF:min_max_diff=acdefoverall,icdefoverall,-' \
'CDEF:re_zero=min_max_diff,min_max_diff,-' \
'AREA:icdefoverall#ffffff' \
'STACK:min_max_diff#22ff22' \
'LINE2:re_zero#000000' \
'COMMENT: ' \
'COMMENT: Cur\:' \
'COMMENT:Min\:' \
'COMMENT:Avg\:' \
'COMMENT:Max\: \j' \
'LINE1:gcdefoverall#00aa00:euro ' \
'GPRINT:ccdefoverall:LAST:%6.2lf%s' \
'GPRINT:icdefoverall:MIN:%6.2lf%s' \
'GPRINT:gcdefoverall:AVERAGE:%6.2lf%s' \
'GPRINT:acdefoverall:MAX:%6.2lf%s\j' \
'CDEF:ccampaign1826=gcampaign1826,POP,UNKN' \
'CDEF:ccampaign1827=gcampaign1827,POP,UNKN' \
'CDEF:ccampaign1828=gcampaign1828,POP,UNKN' \
'CDEF:ccampaign1819=gcampaign1819,POP,UNKN' \
'CDEF:ccampaign1825=gcampaign1825,POP,UNKN' \
....
....
.... and many more of this CDEF:'s
the only chance was at the moment to switch in the root graph to GAUGE and calculate the derive by myself.. the DERIVE in the subgraphs are working like expected...
Note: See
TracTickets for help on using
tickets.
