Problem with Graph

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Guts74
Posts: 9
Joined: Thu Jun 17, 2010 7:48 am

Problem with Graph

Post by Guts74 »

Hi,

I use cacti in CentOS with Eyes of network. I have problem with some graph, particulary traffic Statistics. I can see only 2 days of information. The information before 2 day is not save. The new data pushes the old data will be lost like a circular buffer.

The graph for temperature and cpu usage works perfectly. I have 6 month of infomation.

I don't know where is the problem.

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

Post by gandalf »

Are you using 1 min polling? Then I know what happens ...
R.
Guts74
Posts: 9
Joined: Thu Jun 17, 2010 7:48 am

Post by Guts74 »

Where i can find this information ?

Poller Information
Interval 300
Type spine
Items Action[0]: 438
Action[1]: 2
Total: 440
Concurrent Processes 1
Max Threads 10
PHP Servers 5
Script Timeout 25
Max OID 10
Last Run Statistics Time:3.3663 Method:spine Processes:1 Threads:10 Hosts:38 HostsPerProcess:38 DataSources:440 RRDsProcessed:247
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That looks fine.
Please post rrdtool info of the "failing" rrd file
R.
Guts74
Posts: 9
Joined: Thu Jun 17, 2010 7:48 am

Post by Guts74 »

This is what I see when i turn on graph debug mode. This is what you want?

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="chNTR-VPNC-ASR1000-1 - Traffic - Tu201" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--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="/srv/eyesofnetwork/cacti-0.8.7b/rra/chntr-vpnc-asr1000-1_traffic_in_363.rrd":traffic_in:AVERAGE \
DEF:b="/srv/eyesofnetwork/cacti-0.8.7b/rra/chntr-vpnc-asr1000-1_traffic_in_363.rrd":traffic_in:MAX \
DEF:c="/srv/eyesofnetwork/cacti-0.8.7b/rra/chntr-vpnc-asr1000-1_traffic_in_363.rrd":traffic_out:AVERAGE \
DEF:d="/srv/eyesofnetwork/cacti-0.8.7b/rra/chntr-vpnc-asr1000-1_traffic_in_363.rrd":traffic_out:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdefd=b,8,* \
CDEF:cdefe=c,8,* \
CDEF:cdefh=d,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefd: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:cdefh:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:

OK


rrdtool info :

filename = "chntr-vpnc-asr1000-1_traffic_in_363.rrd"
rrd_version = "0003"
step = 300
last_update = 1277804102
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+05
ds[traffic_in].last_ds = "918682482"
ds[traffic_in].value = 3.3011166667e+04
ds[traffic_in].unknown_sec = 0
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+05
ds[traffic_out].last_ds = "408428084"
ds[traffic_out].value = 1.7425093333e+04
ds[traffic_out].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[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "MAX"
rra[1].rows = 500
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[1].cdp_prep[1].value = NaN
rra[1].cdp_prep[1].unknown_datapoints = 0
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Guts74 wrote: rrdtool info :

filename = "chntr-vpnc-asr1000-1_traffic_in_363.rrd"
rrd_version = "0003"
step = 300
last_update = 1277804102
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+05
ds[traffic_in].last_ds = "918682482"
ds[traffic_in].value = 3.3011166667e+04
ds[traffic_in].unknown_sec = 0
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+05
ds[traffic_out].last_ds = "408428084"
ds[traffic_out].value = 1.7425093333e+04
ds[traffic_out].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[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "MAX"
rra[1].rows = 500
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[1].cdp_prep[1].value = NaN
rra[1].cdp_prep[1].unknown_datapoints = 0
That's all?
Then, please revisit the related data template and multi-select all but the "1 min" rra. SAVE.
Next, please delete the rrd file. A new one will be created within 10 minutes.
Redo the "rrdtool info" now. It should show more data.
R.
Guts74
Posts: 9
Joined: Thu Jun 17, 2010 7:48 am

Post by Guts74 »

[root@localhost rra]# rrdtool info chntr-vpnc-asr1000-1_traffic_in_363.rrd
filename = "chntr-vpnc-asr1000-1_traffic_in_363.rrd"
rrd_version = "0003"
step = 300
last_update = 1278581404
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+16
ds[traffic_in].last_ds = "460204909"
ds[traffic_in].value = NaN
ds[traffic_in].unknown_sec = 4
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+16
ds[traffic_out].last_ds = "103818560"
ds[traffic_out].value = NaN
ds[traffic_out].unknown_sec = 4
rra[0].cf = "AVERAGE"
rra[0].rows = 600
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[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = NaN
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 18
rra[2].cdp_prep[1].value = NaN
rra[2].cdp_prep[1].unknown_datapoints = 18
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = NaN
rra[3].cdp_prep[0].unknown_datapoints = 114
rra[3].cdp_prep[1].value = NaN
rra[3].cdp_prep[1].unknown_datapoints = 114
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 700
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = NaN
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[5].cdp_prep[1].value = NaN
rra[5].cdp_prep[1].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = NaN
rra[6].cdp_prep[0].unknown_datapoints = 18
rra[6].cdp_prep[1].value = NaN
rra[6].cdp_prep[1].unknown_datapoints = 18
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = NaN
rra[7].cdp_prep[0].unknown_datapoints = 114
rra[7].cdp_prep[1].value = NaN
rra[7].cdp_prep[1].unknown_datapoints = 114





Data Source Debug

/usr/bin/rrdtool create \
/srv/eyesofnetwork/cacti-0.8.7b/rra/chntr-vpnc-asr1000-1_traffic_in_363.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:10000000000000000 \
DS:traffic_out:COUNTER:600:0:10000000000000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That looks quite good. You may change to

Code: Select all

DS:traffic_in:COUNTER:600:0:U \
DS:traffic_out:COUNTER:600:0:U \ 
by placing a "0" into the DS MAX field. This suppressed MAX checking completely
R.
Guts74
Posts: 9
Joined: Thu Jun 17, 2010 7:48 am

Post by Guts74 »

Nice it works!! Big thanks !!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests