graphs only show for 2,5 weeks in the graphs output

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

Moderators: Developers, Moderators

Post Reply
ClemensBW
Posts: 9
Joined: Mon Jan 24, 2011 2:38 am

graphs only show for 2,5 weeks in the graphs output

Post by ClemensBW »

Hello,

Cacti Version: 0.8.7g
Cacti OS: unix
SNMP Version: NET-SNMP version: 5.4.1
RRDTool Version: RRDTool 1.3.x
Poller: SPINE 0.8.7h

i have some hosts in my cacti, but for a few i think, that the poller dont write the collected data in the rrd files.

I use Interface Traffic with in/out bits (64-bit counters), as the Interface is a 10-GBit.
Data Source Debug:

/usr/bin/rrdtool create \
/usr/share/cacti/rra/XXX_traffic_in_2221.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:4294967295 \
DS:traffic_out:COUNTER:600:0:4294967295 \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:1:700 \
RRA:AVERAGE:0.5:4:775 \
RRA:AVERAGE:0.5:6:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:1:700 \
RRA:MIN:0.5:4:775 \
RRA:MIN:0.5:6:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:1:700 \
RRA:MAX:0.5:4:775 \
RRA:MAX:0.5:6:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:1:700 \
RRA:LAST:0.5:4:775 \
RRA:LAST:0.5:6:797 \
Graph Managemet:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='RZ XXX - Traffic - Te2/1' \
--rigid \
--base=1000 \
--height=250 \
--width=900 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/share/cacti/rra/XXX_traffic_in_2221.rrd":traffic_in:AVERAGE \
DEF:b="/usr/share/cacti/rra/XXX_traffic_in_2221.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefi=a,UN,INF,UNKN,IF \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" \
AREA:cdefi#8F9286FF:""

RRDTool Says:

OK
Have you any idea, what can i check else?

Here is a screenshot, and yes, i collecting it over 2 weeks :o)
Attachments
Unbenannt.png
Unbenannt.png (131.42 KiB) Viewed 963 times
npeltier
Posts: 28
Joined: Mon Aug 08, 2011 4:04 am

Re: graphs only show for 2,5 weeks in the graphs output

Post by npeltier »

Hi !

You could try

Code: Select all

/usr/bin/rrdtool dump /usr/share/cacti/rra/XXX_traffic_in_2221.rrd
to see what the file contains and what is the oldest data, but my guess is that your file was deleted or moved or didn't exist before.

It's the only thing I can think of... hope it helps !

Have a nice day.

Nicolas
ClemensBW
Posts: 9
Joined: Mon Jan 24, 2011 2:38 am

Re: graphs only show for 2,5 weeks in the graphs output

Post by ClemensBW »

Hello,

the oldest output is:

<!-- 2012-10-08 00:00:00 CEST / 1349647200 --> <row><v> 1.5240984975e+07 </v><v> 8.8775755178e+06 /v></row>

But, i'am sure, that this host is more than one month in monitoring :(
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: graphs only show for 2,5 weeks in the graphs output

Post by cigamit »

A few things to check. Can you post what your RRAs are, and what RRA are assigned to that data template? Also, can you then do
rrdtool info <rrdfilename>
on the rrd file and post that?

EDIT: Scratch that. One of my many test boxes seems to be doing this also, but only showing 2 days worth. It only happens on a few graphs on a host, but other hosts using that same data template are just fine. Doing a strict comparison of the rrdtool info output between a working and nonworking one, all internal settings are exactly the same. More investigation is necessary. I am wondering if this issue is caused by a bug in RRDTool 1.3.8, is that the same version you have?
ClemensBW
Posts: 9
Joined: Mon Jan 24, 2011 2:38 am

Re: graphs only show for 2,5 weeks in the graphs output

Post by ClemensBW »

Hey, i use Version 1.3.1

Code: Select all

rrdtool -v
RRDtool 1.3.1  Copyright 1997-2008 by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Sep 26 2008 22:29:16
It is a little bit mazy, for graphs older as a three (?) month they work fine, but newer dosn't - i don't know why.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: graphs only show for 2,5 weeks in the graphs output

Post by gandalf »

When using 1 minute polling, you MUST change the RRA definitions to have a longer timespan store in rrd files!
R.
ClemensBW
Posts: 9
Joined: Mon Jan 24, 2011 2:38 am

Re: graphs only show for 2,5 weeks in the graphs output

Post by ClemensBW »

Hello,

we use 5 minute polling with spine.

I compare the 'Data Sources -> RRA' from some cacti installand and the rra-steps are different, i change it now to the correct steps - hope it works :o)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: graphs only show for 2,5 weeks in the graphs output

Post by gandalf »

In case the STEP is different, that won't work.
1. Please know, that change to a data template are not propagated to EXISTING rrd files. New ones will obey to the new definitions, of course.
2. Tobi Oetiker recently published rrdjig, which may help in such a situation; I did not try yet
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest