[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] Extra graph parameters.
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] Extra graph parameters.
- From: "David Peters" <davidp (at) electronf.com>
- Date: Sun, 6 Dec 2009 17:48:40 +1100
- References: <74c599800912021741p1bdb3195y166c35c0b508393b (at) mail.gmail.com> <200912030815.40081.bgmilne (at) staff.telkomsa.net> <E8EF1B1A872F4572ABB16203FC96F65A (at) behemoth>
- Thread-index: Acpz6OG3AwIfhjdQQe+4SNAdrI89NQCUTI7AAAFsPcA=
Hang on a sec....
Debugging shows that there is a special case for -l and -u where it picks up
two tokens on the same line (ie -l 0). The default case is that
hobbitgraph.c expects parameters to be separated on word per line:
--right-axis
10:-1000
Or
-c
CANVAS:#449900
Hmmm that seems a bit counterintuitive as it is almost like rrdtool but not
quite, which can be confusing.
-----Original Message-----
From: David Peters [mailto:davidp (at) electronf.com]
Sent: Sunday, 6 December 2009 5:11 PM
To: hobbit (at) hswn.dk
Subject: [hobbit] Extra graph parameters.
I thought you could just add extra rrdtool graph commandline parameters to
the hobbitgraph file for a graph section and hey presto it would use them.
This seems to work for some and not for others. (eg -e and -A work)
It may be a more generic issue related to parameter assumptions within the
code, but anyway, I added a some code to handle a couple of additional
directives in hobbitgraph.cfg. (RSCALE, RFORMAT and RLABEL - in order to add
a different scale to the right hand y axis.)
Should I look deeper into the code and see why --right-axis scale:shift,
--right-axis-format and --right-axis-label seem to get ignored if I add them
to hobbitgraph.cfg.
Or should I just use the code that I now have that uses my Hobbit specific
directives.
Or am I missing something entirely altogether?
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk