[rrd-users] Re: rrdtool doesn't always return proper status codes on error
Haroon Rafique
haroon.rafique at utoronto.ca
Fri Apr 8 15:57:15 MEST 2005
On Wednesday at 1:44pm, CW=>Chris Wilson <chris at aidworld.org> wrote:
CW> Hi all,
CW>
CW> rrdtool does not always exit with a return code greater than 0 when
CW> there is a problem with its command line. For example:
CW>
Chris,
Related to this topic, I posted this on the rrd-users list a while ago
(Oct 1, 2004):
http://www.ee.ethz.ch/~slist/rrd-users/msg09002.html
and then on the developer list (Oct 21, 2004):
http://www.ee.ethz.ch/~slist/rrd-developers/msg01344.html
If memory serves me right, I got a reply from Tobi (which I can't find)
asking me to provide a patch (which I did). Dunno what happened to it
afterwards.
CW> [chris at dev chris]$ /usr/bin/rrdtool create /foo/bar.rrd --start
CW> 1112784412 DS:battery_voltage:GAUGE:600:U:U
CW> DS:input_frequency:GAUGE:600:U:U DS:input_voltage:GAUGE:600:U:U
CW> DS:input_voltage.minim:GAUGE:600:U:U
CW> DS:input_voltage_maximum:GAUGE:600:U:U DS:ups_load:GAUGE:600:U:U
CW> RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775
CW> RRA:AVERAGE:0.5:288:797
CW> ERROR: can't parse argument 'DS:input_voltage.minim:GAUGE:600:U:U'
CW>
CW> [chris at dev chris]$ echo $?
CW> 0
CW>
CW> The output error message could also be more useful. I had to use trial
CW> and error to find out that the maximum length of a variable name was 19
CW> characters and that dots (.) were not allowed.
CW>
CW> Cheers, Chris.
CW>
--
Haroon Rafique
<haroon.rafique at utoronto.ca>
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list