There are 4 devices (Draytek IP Access DSLAM A24S), all the same (the same model, snmp settings, timeouts, etc on devices and in Cacti):
1. dslam01
2. dslam02
3. dslam09
4. dslam10
Picture 1 - Device List
Let's see more details on specific device (Picture 2 - dslam01 settings). Three remaining devices are the same in every way (host template none, snmp timeout, associated data queries, etc.) dslam01 IS FINE. So ... let's see what am i graphing on dslam01 (24 graphs, 24 sources, see Picture 3). I can see in/out traffic on all 24 ports, and this works (graphs, Picture 4. Below graph and data source debug.
Code: Select all
Graph Template Selection [edit: dslam01 - iface 100 (user) 512/128]: Interface Traffic (bits/sec - Total Bandwith)
Host: dslam01
Title: |host_description| - iface 100 (user) 512/128
Inbound Data Source: dslam01 - Traffic (traffic_in)
Outband Data Source: dslam01 - Traffic (traffic_out)
RRDTool Command:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="dslam01 - iface 100 (rondomusic) 512/128" \
--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="C\:/Apache2/htdocs/cacti/rra/dslam01_traffic_in_193.rrd":traffic_in:AVERAGE \
DEF:b="C\:/Apache2/htdocs/cacti/rra/dslam01_traffic_in_193.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
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" \
COMMENT:"Total In\: 67.42 MB\n" \
LINE1:cdeff#002A97FF:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"Total Out\: 335.87 MB\n"
RRDTool Says:
OK
Code: Select all
Data Template Selection [edit: dslam01 - Traffic]
Selected Data Template: Interface Traffic
Host: dslam01
Supplemental Data Template Data
Name: |host_description| - Traffic
Data Source Path: <path_rra>/dslam01_traffic_in_172.rrd
Data Source Item Fields [traffic_in]
Maximum Value: 100000000
Data Source Item Fields [traffic_out]
Maximum Value: 100000000
Custom Data
Output Type ID: In/Out Bits with Total Bandwith
Index Value: 79
Index Type: ifIndex
Data Source Debug
C:/rrdtool/rrdtool.exe create \
C:/Apache2/htdocs/cacti/rra/dslam01_traffic_in_172.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
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 \
1. I click on 'Devices' (left side)
2. I click on dslam02
3. I click 'create graphs for this host' (now i see list of ifaces on dslam02).
4. I choose the one with index 77
5. I select a graph type (In/Out Bits with Total Bandwith)
6. I click 'Create'
7. I see '+ Created graph: dslam02 - Traffic'
8. I click 'Devices' again
9. I see that dslam02 has now one graph and one data source (earlier was zero)
10. I wait 2 poller runs (10 min)
In the meantime i check 'System Utilities -> Viev Cacti Log File', and i see:
Code: Select all
05/20/2009 12:25:08 PM - SYSTEM STATS: Time:7.6682 Method:cmd.php Processes:2 Threads:N/A Hosts:8 HostsPerProcess:4 DataSources:254 RRDsProcessed:96
05/20/2009 12:30:08 PM - SYSTEM STATS: Time:7.6738 Method:cmd.php Processes:2 Threads:N/A Hosts:8 HostsPerProcess:4 DataSources:254 RRDsProcessed:96
05/20/2009 12:35:08 PM - SYSTEM STATS: Time:7.6999 Method:cmd.php Processes:2 Threads:N/A Hosts:8 HostsPerProcess:4 DataSources:254 RRDsProcessed:96
Code: Select all
Graph Template Selection [edit: dslam02 - Traffic]
Selected Graph Template: Interface Traffic (bits/sec - Total Bandwith)
Host: dslam02
Title: |host_description| - Traffic
Inbound Data Source: dslam02 - Traffic (traffic_in)
Outband Data Source: dslam02 - Traffic (traffic_out)
RRDTool Command:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="dslam02 - Traffic" \
--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="C\:/Apache2/htdocs/cacti/rra/dslam02_traffic_in_211.rrd":traffic_in:AVERAGE \
DEF:b="C\:/Apache2/htdocs/cacti/rra/dslam02_traffic_in_211.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
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" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:cdeff#002A97FF:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"Total Out\: 0 bytes\n"
RRDTool Says:
ERROR: opening 'C:/Apache2/htdocs/cacti/rra/dslam02_traffic_in_211.rrd': No such file or directory
Code: Select all
Data Template Selection [edit: dslam02 - Traffic]
Selected Data Template: Interface Traffic
Host: dslam02
Supplemental Data Template Data
Name: |host_description| - Traffic
Data Source Path: <path_rra>/dslam02_traffic_in_211.rrd
Data Source Item Fields [traffic_in]
Maximum Value: 100000000
Data Source Item Fields [traffic_out]
Maximum Value: 100000000
Custom Data
Output Type ID: Data query data sources must be created through New Graphs.
Index Value: empty
Index Type: Data query data sources must be created through New Graphs.
Data Source Debug
C:/rrdtool/rrdtool.exe create \
C:/Apache2/htdocs/cacti/rra/dslam02_traffic_in_211.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
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 \
Index Value: empty
Index Type: Data query data sources must be created through New Graphs.
What am i doing wrong ? Any advice ?
Also ...
Yes.BSOD2600 wrote:You've installed the cacti 0.8.7d patches, right?
Yes, it created my rrd file in correct place etc. , but graphs still not work (logs -> no new rrd's in 5 min cycles)BSOD2600 wrote:If you manually run that 'c:/rrdtool/rrdtool.exe create' command from the cacti.log, does it work?