hi all!
i'm newbie. now i try to monitor about hard disk usage. I found a introduction from http://docs.cacti.net/usertemplate:data ... disk_usage . but after I import and create graph for device, it has problem:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title='Localhost - hrStorageTable' \
--base=1024 \
--height=120 \
--width=600 \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='Storage' \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/localhost_rrdsprocessed_15.rrd":'DataSources':AVERAGE \
CDEF:cdefa='a,query_hrStorageAllocationUnits,*' \
--watermark "Created using CactiEZ" \
LINE1:cdefa#FF0000FF:"Total Size (Bytes)" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefa#0000FFFF:"Used Size (Units)" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: invalid rpn expression in: a,query_hrStorageAllocationUnits,*
I think cacti can't query hrStorageAllocationUnits. But I don't know how to fix this problem. I'm using cactiez os and cacti version 0.8.8a. thank so much!!!!!
problem with invalid rpn expression
Moderators: Developers, Moderators
Re: problem with invalid rpn expression
Hi
i have this issue too,
after replacing data query of hrStorageTable.xml on <cacti-path>/resource/snmp_query with other one, this issue happened. when i run verbose query for hrstoragetable data query it return below result
+ Running data query [40].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/hrStorageTable.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.25.2.3.1.1' Index Count: 6
+ Index found at OID: 'hrStorageIndex.1' value: '1'
+ Index found at OID: 'hrStorageIndex.2' value: '2'
+ Index found at OID: 'hrStorageIndex.3' value: '3'
+ Index found at OID: 'hrStorageIndex.4' value: '4'
+ Index found at OID: 'hrStorageIndex.5' value: '5'
+ Index found at OID: 'hrStorageIndex.6' value: '6'
+ Located input field 'hrStorageIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.25.2.3.1.1'
+ Found item [hrStorageIndex='1'] index: 1 [from value]
+ Found item [hrStorageIndex='2'] index: 2 [from value]
+ Found item [hrStorageIndex='3'] index: 3 [from value]
+ Found item [hrStorageIndex='4'] index: 4 [from value]
+ Found item [hrStorageIndex='5'] index: 5 [from value]
+ Found item [hrStorageIndex='6'] index: 6 [from value]
+ Located input field 'hrStorageDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.25.2.3.1.3'
+ Found item [hrStorageDescr='A:'] index: 1 [from value]
+ Found item [hrStorageDescr='C: Label: Serial Number 12b80e3c'] index: 2 [from value]
+ Found item [hrStorageDescr='D: Label: Serial Number aca4f8b5'] index: 3 [from value]
+ Found item [hrStorageDescr='E:'] index: 4 [from value]
+ Found item [hrStorageDescr='Virtual Memory'] index: 5 [from value]
+ Found item [hrStorageDescr='Physical Memory'] index: 6 [from value]
+ Located input field 'hrStorageAllocationUnits' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.25.2.3.1.4'
this result show that after executing hrStorageAllocationUnits, there is no result has been found.
when i run snmpwalk with OID .1.3.6.1.2.1.25.2.3.1.4 , it work correctly:
snmpwalk -v2c -c [community string] xxx.xxx.xxx.xxx .1.3.6.1.2.1.25.2.3.1.4
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 65536 Bytes
would you please help me in this regard? Thanks.
i have this issue too,
after replacing data query of hrStorageTable.xml on <cacti-path>/resource/snmp_query with other one, this issue happened. when i run verbose query for hrstoragetable data query it return below result
+ Running data query [40].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/hrStorageTable.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.25.2.3.1.1' Index Count: 6
+ Index found at OID: 'hrStorageIndex.1' value: '1'
+ Index found at OID: 'hrStorageIndex.2' value: '2'
+ Index found at OID: 'hrStorageIndex.3' value: '3'
+ Index found at OID: 'hrStorageIndex.4' value: '4'
+ Index found at OID: 'hrStorageIndex.5' value: '5'
+ Index found at OID: 'hrStorageIndex.6' value: '6'
+ Located input field 'hrStorageIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.25.2.3.1.1'
+ Found item [hrStorageIndex='1'] index: 1 [from value]
+ Found item [hrStorageIndex='2'] index: 2 [from value]
+ Found item [hrStorageIndex='3'] index: 3 [from value]
+ Found item [hrStorageIndex='4'] index: 4 [from value]
+ Found item [hrStorageIndex='5'] index: 5 [from value]
+ Found item [hrStorageIndex='6'] index: 6 [from value]
+ Located input field 'hrStorageDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.25.2.3.1.3'
+ Found item [hrStorageDescr='A:'] index: 1 [from value]
+ Found item [hrStorageDescr='C: Label: Serial Number 12b80e3c'] index: 2 [from value]
+ Found item [hrStorageDescr='D: Label: Serial Number aca4f8b5'] index: 3 [from value]
+ Found item [hrStorageDescr='E:'] index: 4 [from value]
+ Found item [hrStorageDescr='Virtual Memory'] index: 5 [from value]
+ Found item [hrStorageDescr='Physical Memory'] index: 6 [from value]
+ Located input field 'hrStorageAllocationUnits' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.25.2.3.1.4'
this result show that after executing hrStorageAllocationUnits, there is no result has been found.
when i run snmpwalk with OID .1.3.6.1.2.1.25.2.3.1.4 , it work correctly:
snmpwalk -v2c -c [community string] xxx.xxx.xxx.xxx .1.3.6.1.2.1.25.2.3.1.4
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 65536 Bytes
would you please help me in this regard? Thanks.
Who is online
Users browsing this forum: No registered users and 0 guests