thanx BSOD2600.
What did you mean? I think i dont understand the question.
i have give .1.3.6.1.4.1.311.1.4.1.1.2.1.4 as OID to the datasource.
A test with getif and these OID from my pc works
A test with snmpwalk from the cacti host works also.
The datasource debug says:
Code: Select all
/usr/bin/rrdtool create \
/usr/share/cacti/rra/xxxxxxxx_snmp_oid_2082.rrd \
--step 300 \
DS:snmp_oid:COUNTER:600:0:1000000000000 \
RRA:AVERAGE:0.5:1:25920 \
RRA:AVERAGE:0.5:24:2250 \
RRA:AVERAGE:0.5:6:9000 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:25920 \
RRA:MIN:0.5:24:2250 \
RRA:MIN:0.5:6:9000 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:25920 \
RRA:MAX:0.5:24:2250 \
RRA:MAX:0.5:6:9000 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:25920 \
RRA:LAST:0.5:6:9000 \
RRA:LAST:0.5:24:2250 \
RRA:LAST:0.5:288:797 \
The debug from the graph says:
Code: Select all
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="xxxxxxxx - page reads counter" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/share/cacti/rra/xxxxxxxx_snmp_oid_2082.rrd:snmp_oid:LAST \
DEF:b="/usr/share/cacti/rra/xxxxxxxx_snmp_oid_2082.rrd":snmp_oid:AVERAGE \
AREA:a#35962B:"" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
OK
And yes i will check and use the tutorial again.