Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Zero Values in new Template

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
GermanSniper



Joined: 28 Aug 2009
Posts: 42
Location: Germany

PostPosted: Thu Feb 25, 2010 6:00 am    Post subject: Zero Values in new Template Reply with quote

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:

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?
Back to top
tibby



Joined: 20 Jul 2009
Posts: 13

PostPosted: Tue Mar 02, 2010 9:44 am    Post subject: Reply with quote

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

Tibby



temperature.jpg
 Description:
 Filesize:  65.66 KB
 Viewed:  105 Time(s)

temperature.jpg


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group