Temp Graph works but not above 100 degrees

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
mikeones
Posts: 8
Joined: Fri May 25, 2007 10:34 am

Temp Graph works but not above 100 degrees

Post by mikeones »

Here is the output.

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1180332271 \
--end=1181107184 \
--title="Netbotz - IT Room Temperature" \
--rigid \
--base=1000 \
--height=160 \
--width=500 \
--alt-autoscale-max \
--lower-limit=32 \
COMMENT:"From 2007/05/28 01\:04\:31 To 2007/06/06 00\:19\:44\c" \
COMMENT:"  \n" \
--vertical-label="F (Fahrenheit Degree)" \
--slope-mode \
DEF:a="/usr/share/cacti/site/rra/arlacd18nb10_netbotz_temp_1665.rrd":Netbotz_Temp:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/arlacd18nb10_temp_threshold_1666.rrd":Temp_threshold:AVERAGE \
AREA:a#00CF00:"Temperature"  \
GPRINT:a:LAST:"  Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.0lf"  \
GPRINT:a:MAX:"Maximum\:%8.0lf\n"  \
LINE2:b#FF5700:"Max Threshold"  \
GPRINT:b:LAST:"Current\:%8.2lf %s" 
So the graph works but the range above 100 is ignored. Any idea why?
Attachments
graph_image.php.png
graph_image.php.png (18.5 KiB) Viewed 3422 times
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

Do you have a default max setting for the graph Upper Limit under templates and/or is the "Use Per-Graph Value (Ignore this Value)" checked/unchecked?
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
mikeones
Posts: 8
Joined: Fri May 25, 2007 10:34 am

Post by mikeones »

Here is my graph template.
Attachments
untitled.JPG
untitled.JPG (95.06 KiB) Viewed 3406 times
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

hmmm...

what does the template look like?

More importantly, what are you doing about the temperature in the data room? 99 degrees is way too hot
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
mikeones
Posts: 8
Joined: Fri May 25, 2007 10:34 am

Post by mikeones »

Here is the data template. The Netbot is set to alarm at 90 degrees but I need to see the complete range of temperature varrience. We need AC work done :(
Attachments
untitled.JPG
untitled.JPG (97.46 KiB) Viewed 3390 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) run rrdtool info on the file storing the temp data to verify the max DS is valid.

2) turn the logging level in cacti to medium to and watch what values the device returns for temps over time, especially when you know its over 100.
mikeones
Posts: 8
Joined: Fri May 25, 2007 10:34 am

Post by mikeones »

BSOD2600 wrote:1) run rrdtool info on the file storing the temp data to verify the max DS is valid.

Code: Select all

ds[Temp_threshold].last_ds = "103"
2) turn the logging level in cacti to medium to and watch what values the device returns for temps over time, especially when you know its over 100.

Code: Select all

06/06/2007 04:30:06 PM - CMDPHP: Poller[0] Host[644] DS[1666] SNMP: v2: 192.168.137.9, dsname: Temp_threshold, oid: .1.3.6.1.4.1.5528.100.4.1.1.1.9.1095346743, output: 103
06/06/2007 04:30:06 PM - CMDPHP: Poller[0] Host[644] DS[1665] SNMP: v2: 192.168.137.9, dsname: Netbotz_Temp, oid: .1.3.6.1.4.1.5528.100.4.1.1.1.9.1095346743, output: 103
warnesj
Cacti User
Posts: 173
Joined: Sun May 29, 2005 7:34 pm

Post by warnesj »

It could be that you're graphing 9 days worth of samples and that your RRDTool is choosing a lower resolution RRA for your data source. So it may be that the RRA has averaged too many samples together and as a result showing a lower temperature. Can you select just a 24-hour period for your graph and see what temperature ratings you get?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post first 20-30 lines of "rrdtool info" command against that very rrd file
Reinhard
mikeones
Posts: 8
Joined: Fri May 25, 2007 10:34 am

Post by mikeones »

gandalf wrote:Please post first 20-30 lines of "rrdtool info" command against that very rrd file
Reinhard
Thanks for your continued interest. Here is what I have.

Code: Select all

# rrdtool info nb10_netbotz_temp_1665.rrd
filename = "nb10_netbotz_temp_1665.rrd"
rrd_version = "0003"
step = 300
last_update = 1181423737
ds[Netbotz_Temp].type = "GAUGE"
ds[Netbotz_Temp].minimal_heartbeat = 600
ds[Netbotz_Temp].min = 0.0000000000e+00
ds[Netbotz_Temp].max = 1.0000000000e+02
ds[Netbotz_Temp].last_ds = "107"
ds[Netbotz_Temp].value = NaN
ds[Netbotz_Temp].unknown_sec = 37
rra[0].cf = "AVERAGE"
rra[0].rows = 2160
rra[0].pdp_per_row = 24
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 15
rra[1].cf = "AVERAGE"
rra[1].rows = 51840
rra[1].pdp_per_row = 1
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 8736
rra[2].pdp_per_row = 6
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 3
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

There you go, max is set too small like I initially suggested
ds[Netbotz_Temp].max = 1.0000000000e+02 . Use rrdtool tune to increase the Netbotz_Temp max DS size.
janali
Posts: 7
Joined: Thu Jul 19, 2007 7:20 am

Temperature in Cacti

Post by janali »

How to add Temperature template in Cacti?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This depends on the temperature template/device you want to monitor
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests