i want to create a template to graph the temperature from an Thermometer.
When i run snmpget on cacti box i get an result:
snmpget -v 1 -On -c public IP 1.3.6.1.4.1.5040.1.2.8.1.3.1.1.1
.1.3.6.1.4.1.5040.1.2.8.1.3.1.1.1 = STRING: " 24,9"
In *.rrd i checked ds[temp]min and ds[temp]max.
When i run " rrdtool fetch 3591.rrd AVERAGE" i only get "nan's".
RRDTOOL Debug is ok too.
Code: Select all
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="[host_description] Temperatur" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Temperatur" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/usr/share/cacti/rra/178/3591.rrd":temp:AVERAGE \
AREA:a#623465FF:"aktuelle Temperatur" \
LINE1:a#FFF200FF:"durchschnittliche Temperatur\n" \
GPRINT:a:LAST:"current Temp%8.2lf %s" \
GPRINT:a:AVERAGE:"average Temp%8.2lf %s" \
GPRINT:a:MAX:"max Temp%8.2lf %s"
RRDTool Says:
OK
Could the SNMP value type "STRING" be a problem? What else can i do?