Strange behavior in graphs on Cacti upgrade

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

Moderators: Developers, Moderators

Post Reply
minmei
Posts: 16
Joined: Thu Sep 28, 2006 1:02 pm

Strange behavior in graphs on Cacti upgrade

Post by minmei »

Upgraded to 0.8.7d in March. No issues.

Upgraded to 0.8.7e a week ago. System is polling just fine. But I have a large gap (March to November) of data in each and every graph.

Looking at RRD's with a dump shows NANs in the affected area. But all graphs were fine a week ago, before the upgrade. With all data.

Any thoughts on what could be wrong?

TIA,

Chad
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please show us some screenshots of different timespans and the related rrdtool graph statement (get that by pressing the wrench icon) next to the graph
R.
minmei
Posts: 16
Joined: Thu Sep 28, 2006 1:02 pm

Post by minmei »

Last week and Last year's graphs...

/usr/local/rrdtool-1.2.19/bin/rrdtool graph - \
--imgformat=PNG \
--start=-604800 \
--end=-1800 \
--title="JHExtSwitch - Memory Usage" \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:7: \
--font UNIT:7: \
DEF:a="/usr/local/apache2/htdocs/cacti/rra/jhext_switch_cisco_memused_7813.rrd":cisco_memused:AVERAGE \
DEF:b="/usr/local/apache2/htdocs/cacti/rra/jhext_switch_cisco_memfree_7812.rrd":cisco_memfree:AVERAGE \
AREA:a#AAABA1FF:"5 minute used memory" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#CDCFC4FF:"5 minute free memory":STACK \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"

/usr/local/rrdtool-1.2.19/bin/rrdtool graph - \
--imgformat=PNG \
--start=-33053184 \
--end=-86400 \
--title="JHExtSwitch - Memory Usage" \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:7: \
--font UNIT:7: \
DEF:a="/usr/local/apache2/htdocs/cacti/rra/jhext_switch_cisco_memused_7813.rrd":cisco_memused:AVERAGE \
DEF:b="/usr/local/apache2/htdocs/cacti/rra/jhext_switch_cisco_memfree_7812.rrd":cisco_memfree:AVERAGE \
AREA:a#AAABA1FF:"5 minute used memory" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#CDCFC4FF:"5 minute free memory":STACK \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"
Attachments
image1.png
image1.png (20.36 KiB) Viewed 2532 times
image2.png
image2.png (19.51 KiB) Viewed 2532 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That's fine. And now an rrdtool info output of the related rrd file, please
R.
minmei
Posts: 16
Joined: Thu Sep 28, 2006 1:02 pm

Post by minmei »

filename = "jhext_switch_cisco_memused_7813.rrd"
rrd_version = "0003"
step = 300
last_update = 1260309002
ds[cisco_memused].type = "GAUGE"
ds[cisco_memused].minimal_heartbeat = 600
ds[cisco_memused].min = 0.0000000000e+00
ds[cisco_memused].max = 1.0000000000e+12
ds[cisco_memused].last_ds = "8213732"
ds[cisco_memused].value = 1.6427464000e+07
ds[cisco_memused].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 500
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 600
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 = 700
rra[2].pdp_per_row = 6
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 3.2847610480e+07
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 775
rra[3].pdp_per_row = 24
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 1.8050461307e+08
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[4].cf = "AVERAGE"
rra[4].rows = 797
rra[4].pdp_per_row = 288
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = 2.1367010903e+09
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MIN"
rra[5].rows = 600
rra[5].pdp_per_row = 1
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = NaN
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[6].cf = "MIN"
rra[6].rows = 700
rra[6].pdp_per_row = 6
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 8.2111812000e+06
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[7].cf = "MIN"
rra[7].rows = 775
rra[7].pdp_per_row = 24
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 8.1781201067e+06
rra[7].cdp_prep[0].unknown_datapoints = 0
rra[8].cf = "MIN"
rra[8].rows = 797
rra[8].pdp_per_row = 288
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = 8.1290240000e+06
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[9].cf = "MAX"
rra[9].rows = 500
rra[9].pdp_per_row = 1
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = NaN
rra[9].cdp_prep[0].unknown_datapoints = 0
rra[10].cf = "MAX"
rra[10].rows = 600
rra[10].pdp_per_row = 1
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = NaN
rra[10].cdp_prep[0].unknown_datapoints = 0
rra[11].cf = "MAX"
rra[11].rows = 700
rra[11].pdp_per_row = 6
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = 8.2137161333e+06
rra[11].cdp_prep[0].unknown_datapoints = 0
rra[12].cf = "MAX"
rra[12].rows = 775
rra[12].pdp_per_row = 24
rra[12].xff = 5.0000000000e-01
rra[12].cdp_prep[0].value = 8.2140866400e+06
rra[12].cdp_prep[0].unknown_datapoints = 0
rra[13].cf = "MAX"
rra[13].rows = 797
rra[13].pdp_per_row = 288
rra[13].xff = 5.0000000000e-01
rra[13].cdp_prep[0].value = 8.2140866400e+06
rra[13].cdp_prep[0].unknown_datapoints = 0
rra[14].cf = "LAST"
rra[14].rows = 600
rra[14].pdp_per_row = 1
rra[14].xff = 5.0000000000e-01
rra[14].cdp_prep[0].value = NaN
rra[14].cdp_prep[0].unknown_datapoints = 0
rra[15].cf = "LAST"
rra[15].rows = 700
rra[15].pdp_per_row = 6
rra[15].xff = 5.0000000000e-01
rra[15].cdp_prep[0].value = 8.2137161333e+06
rra[15].cdp_prep[0].unknown_datapoints = 0
rra[16].cf = "LAST"
rra[16].rows = 775
rra[16].pdp_per_row = 24
rra[16].xff = 5.0000000000e-01
rra[16].cdp_prep[0].value = 8.2137161333e+06
rra[16].cdp_prep[0].unknown_datapoints = 0
rra[17].cf = "LAST"
rra[17].rows = 797
rra[17].pdp_per_row = 288
rra[17].xff = 5.0000000000e-01
rra[17].cdp_prep[0].value = 8.2137161333e+06
rra[17].cdp_prep[0].unknown_datapoints = 0
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Is it possible to post a gzipped rrdtool dump of that very rrd file to either my email address or by pm?
R.
minmei
Posts: 16
Joined: Thu Sep 28, 2006 1:02 pm

Post by minmei »

Here's the gzip...
Attachments
to_gandalf.rrd.gz
(10.76 KiB) Downloaded 101 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Thanks, but please be patient. My todo stack is quite full
R.
minmei
Posts: 16
Joined: Thu Sep 28, 2006 1:02 pm

Post by minmei »

Nevermind - sometimes one makes the most stupid mistakes and doesn't realize it until way too late.

Ended up with two sets of rrd files. Trying the python merge program to fix...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Thanks for the follow-up. I indeed did not find time, yet. Great, that you found a way
R
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests