Thanks, my error in writing it up, but I think that the line continuations are 
optional
in a function call like this, and even adding them, the error is actually there.
Otherwise it would have been a Python syntax error, and not a run-time rrdtool 
argument error.
(Although I suspect that it is probably something equally silly!)

Here is the code with them, same result:
#  start & end are set to desired times...
rrdtool.fetch( "/usr/local/database/test.rrd",   \
                "AVERAGE", "--start ", str(start),      \
                           "--end   ", str(end)  )
Traceback (most recent call last):
  File "./checkData.py", line 63, in <module>
    "--end   ", str(end)  )
rrdtool.error: unknown option '-
, 

-------------------------------------------
Gregory Guthrie
------------------------------------------- 


> -----Original Message-----
> From: Leonard Mills [mailto:[email protected]]
> Sent: Friday, April 02, 2010 4:34 PM
> To: Gregory Guthrie
> Cc: [email protected]
> Subject: Re: [rrd-users] python rrdtool error -?
> 
> 
> 
> On Fri, 2 Apr 2010, Gregory Guthrie wrote:
> 
> >    rrdtool.fetch( data("temp"),
> >                 "AVERAGE", "--start ", str(start),
> >                            "--end   ", str(end)  )          # fails - error 
> > below
> >
> > Error:
> >        "--end   ", str(end)  )
> >        rrdtool.error: unknown option '-
> 
> It;s missing the continuation \ at the end odf the start line.
> 
> Hth,
> 
> Len
> 

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to