Zero Values in new Template

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
GermanSniper
Posts: 42
Joined: Fri Aug 28, 2009 1:43 am
Location: Germany

Zero Values in new Template

Post by GermanSniper »

Hi

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?
tibby
Posts: 16
Joined: Mon Jul 20, 2009 11:32 pm

Post by tibby »

I have the same problem!
RRDtool says OK, rra is created, but nothing gets graphed.

Tibby
Attachments
temperature.jpg
temperature.jpg (65.66 KiB) Viewed 1477 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest