How to modify incorrect CDEFs in graph template?
Dear All
I want to monitor file system utilization, the php script has been invoked by "script server" of cacti 0.8.7b version, but the utilization always 100%, I did graph debug, and found there is something wrong with CDEFs. would you please instruct me to correct it in cacti? For details, please refer to following statements & pictures. thanks so much for your help, I am beginner at cacti.
Following is detail template information:
Data Query : SNMP - Get Mounted Partitions
Data Template : Host MIB - Hard Drive Space
Graph Template : ucd 90 Filesystems
This is output of RRD Graph Debug Mode:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="test_srv - Used Space - /" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/test_srv_hdd_total_41.rrd":hdd_total:AVERAGE \
DEF:b="/var/www/html/rra/test_srv_hdd_total_41.rrd":hdd_total:LAST \
DEF:c="/var/www/html/rra/test_srv_hdd_total_41.rrd":hdd_total:MIN \
DEF:d="/var/www/html/rra/test_srv_hdd_total_41.rrd":hdd_total:MAX \
DEF:e="/var/www/html/rra/test_srv_hdd_total_41.rrd":hdd_used:AVERAGE \
DEF:f="/var/www/html/rra/test_srv_hdd_total_41.rrd":hdd_used:LAST \
DEF:g="/var/www/html/rra/test_srv_hdd_total_41.rrd":hdd_used:MIN \
DEF:h="/var/www/html/rra/test_srv_hdd_total_41.rrd":hdd_used:MAX \
DEF:i="/var/www/html/rra/test_srv_hdd_total_41.rrd":hdd_percent:LAST \
DEF:j="/var/www/html/rra/test_srv_hdd_total_41.rrd":hdd_percent:MIN \
DEF:ba="/var/www/html/rra/test_srv_hdd_total_41.rrd":hdd_percent:MAX \
CDEF:cdefj=b,a,/,100,* \
CDEF:cdefba=b,a,/,100,* \ ####these CDEFs are not correct, would you please let me know how to change them?####
AREA:a#002A97FF:"Total" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINT:d:MAX:"Maximum\:%8.2lf %s\n" \
AREA:e#F51D30FF:"Used" \
GPRINT:f:LAST:" Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:h:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"% Used" \
GPRINT:cdefj:LAST:"Current\:%8.2lf %%" \
GPRINT:cdefba:AVERAGE:"Average\:%8.2lf %%" \
GPRINT:cdefba:MAX:"Maximum\:%8.2lf %%\n" \
COMMENT:"\n" \
COMMENT:"Last Updated \: Thu 02 Oct 22\:43\:06 CDT 2008"
[Solved] Incorrect CDEF
Moderators: Developers, Moderators
-
- Posts: 6
- Joined: Thu Oct 02, 2008 10:13 pm
[Solved] Incorrect CDEF
Last edited by gordon1023 on Thu Oct 02, 2008 11:59 pm, edited 4 times in total.
-
- Posts: 6
- Joined: Thu Oct 02, 2008 10:13 pm
-
- Posts: 6
- Joined: Thu Oct 02, 2008 10:13 pm
-
- Posts: 6
- Joined: Thu Oct 02, 2008 10:13 pm
-
- Posts: 6
- Joined: Thu Oct 02, 2008 10:13 pm
-
- Posts: 6
- Joined: Thu Oct 02, 2008 10:13 pm
Who is online
Users browsing this forum: No registered users and 5 guests