[rrd-users] Quoted Values in DEF
Burton, Steven
sburton at shepherd-construction.co.uk
Thu Mar 4 12:42:50 MET 2004
Hi,
I'm using rrdtool to accumulate share sizes on our servers and displaying
the results with rrdcgi. So far all is going well except for the one share
name that contains a space and that trip up rrdcgi. My graph tag is (sorry
about the wrap):
<RRD::GRAPH
/usr/www/mrtg/htdocs/rrdgifs/<RRD::CV server>.<RRD::CV::QUOTE
share>.week.png
--imginfo '<img src=/rrdgifs/%s width=%lu height=%lu >'
-t "Space Used by \\<RRD::CV display>\<RRD::CV::QUOTE share>"
-v Bytes -h 150 -w 600
-R
-b 1024
-s -7d -e now
-a PNG
DEF:used=/usr/local/sharesize/data/<RRD::CV server>/<RRD::CV::QUOTE
share>.rrd :size:AVERAGE
CDEF:prev1=PREV(used)
CDEF:blue=used,0,prev1,750000000,+,LIMIT,UN,0,used,IF
CDEF:red=used,0,prev1,750000000,+,LIMIT,UN,used,0,IF
CDEF:first=prev1,UN
CDEF:good=first,used,blue,IF
CDEF:bad=first,red,used,IF
AREA:bad#FF0000
AREA:good#50B9F9
LINE1:bad#FF0000
LINE1:good#0000FF
>
The problem seems to be in the DEF line. When share == 'Co Totals' I get the
error message: [ERROR: unknown function 'T'].
Am I doing something wrong here (other than allowing spaces in share names)?
Any help would be most appreciated.
Steve.
Steve Burton BSc(Hons) MIEE
Network Manager
Shepherd Construction Ltd
Frederick House, Fulford Road,
York. YO10 4EA England.
Phone: +44 (0) 01904 660391
Fax: +44 (0) 01904 610256
Registration Number: 201860 England
Registered Address: Huntington House, Jockey Lane, Huntington, York YO32 9XW
The view or opinions present in this e-mail are solely those
of the author and do not necessarily represent those of the
company.
The email and any files transmitted with it are
confidential and are intended solely for the individual
or entity to which they are addressed. If you have received
this e-mail in error, please notify sclcomp at shepherd-construction.co.uk
quoting the name of the sender.
Whilst every care has been taken to check this outgoing e-mail
for viruses it is seen as your responsibility to check and
sweep it, and any attachments, for viruses on receipt.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
--
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