|
From: DoubleHP <dou...@do...> - 2016-11-24 10:27:14
|
On 23/11/16 05:18, Lars Kruse wrote:
> Wild guessing: did you try to change the name of the field ("adps")?
>
> In order to help reproducing this issue: could you send us a valid example
> output of your plugin?
I have spent hours on dichotomy ... and I confirm the idea I had years
ago; bug occurs in multigraph, for parent graph, when a subgraph contains
a field with the name of the subgraph itself.
Only CONFIG matters. Altering results of fetch does not impact at all.
multigraph edf_teleinformation_new_demaine
graph_title EDF TIC for Demaine40
graph_category edf
graph_args --base 1000
graph_vtitle vtitle
graph_vlabel vlabel
graph_info Numero de serie
pappavg.label PAPP
multigraph edf_teleinformation_new_demaine.adps
graph_title ADPS-ADIRn
graph_category edf
graph_args --base 1000
graph_vtitle vtitle
graph_vlabel A
adps.label ADPS
will bug (complain can't graph edf_teleinformation_new_demaine due to
missing adps) (no graph on host page for this plugin; but empty image will
be shown in html, so we can still click and access to subgraphs).
multigraph edf_teleinformation_new_demaine
graph_title EDF TIC for Demaine40
graph_category edf
graph_args --base 1000
graph_vtitle vtitle
graph_vlabel vlabel
graph_info Numero de serie
pappavg.label PAPP
multigraph edf_teleinformation_new_demaine.adps
graph_title ADPS-ADIRn
graph_category edf
graph_args --base 1000
graph_vtitle vtitle
graph_vlabel A
adpt.label ADPS
will work (will graph parent edf_teleinformation_new_demaine normaly
without adps or adpt).
Also found numerous bugs in truck plugins ... should I report them here or
in Debian BTS ?
***
Some raw diff, to illustrate how to break it from the source:
These two ones are broken:
diff edf_teleinformation_new033_no edf_teleinformation_new037_no
148c148
< echo "multigraph ${sshh}_${!myuserstring}.adpt"
---
> echo "multigraph ${sshh}_${!myuserstring}.adpu"
154,156c154,156
< echo "adpt.label ADPS"
< echo "adpt.info ADPS or ADIRn"
< echo "adpt.critical 1"
---
> echo "adpu.label ADPS"
> echo "adpu.info ADPS or ADIRn"
> echo "adpu.critical 1"
but produce different message:
2016/11/24 10:43:14 [RRD ERROR] Unable to graph
/var/cache/munin/www/doublehp.org/rpi-03.doublehp.org/edf_teleinformation_new033_demaine-day.png
: opening
'/var/lib/munin/doublehp.org/rpi-03.doublehp.org-edf_teleinformation_new033_demaine-adpt-g.rrd':
No such file or directory
2016/11/24 11:17:54 [RRD ERROR] Unable to graph
/var/cache/munin/www/doublehp.org/rpi-03.doublehp.org/edf_teleinformation_new037_demaine-day.png
: opening
'/var/lib/munin/doublehp.org/rpi-03.doublehp.org-edf_teleinformation_new037_demaine-adpu-g.rrd':
No such file or directory
so, error message is really about one of those 4 lines.
Now, we fix it:
diff edf_teleinformation_new037_no edf_teleinformation_new038_yes
154,156c154,156
< echo "adpu.label ADPS"
< echo "adpu.info ADPS or ADIRn"
< echo "adpu.critical 1"
---
> echo "adpv.label ADPS"
> echo "adpv.info ADPS or ADIRn"
> echo "adpv.critical 1"
subgraph name is unchanged; we alter the field name, it will draw
correctly the parent.
Alternative fix: edit line 148 for:
echo "multigraph ${sshh}_${!myuserstring}.adpw"
should also fix it.
--
>o_/ DEMAINE Benoît-Pierre (aka DoubleHP) http://benoit.demaine.info/
If computing were an exact science, IT engineers would'nt have work \_o<
"So all that's left, Is the proof that love's not only blind but deaf."
(FAKE TALES OF SAN FRANCISCO, Arctic Monkeys)
|