TCP Port template not generating graphs!

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
throberth
Posts: 2
Joined: Fri Nov 11, 2011 5:53 am

TCP Port template not generating graphs!

Post by throberth »

In Management > Devices > Host > Data Query TCP (Verbose Query)

Code: Select all

+ Running data query [15].
+ Found type = '6' [Script Query - Script Server].
+ Found data query XML file at '/var/www/cacti/resource/script_server/tcp.xml'
+ XML file parsed ok.
+ <arg_num_indexes> missing in XML file, 'Index Count Changed' not supported
+ Executing script for list of indexes '"/usr/bin/php" -q /var/www/cacti/scripts/tcp.php Host 63 index' Index Count: 1
+ Found index: 
+ Executing script query '"/usr/bin/php" -q /var/www/cacti/scripts/tcp.php Host 63 query index'
+ Found item [ServiceIndex='53'] index: 53
+ Found item [ServiceIndex='389'] index: 389
In Management > Data Sources > Host - TCP > Turn On Data Source Debug Mode

Code: Select all

Data Source Debug

/usr/bin/rrdtool create \
/var/www/cacti/rra/storage_-_sede_tcp_1726.rrd \
--step 300  \
DS:TCP:GAUGE:600:0:1 \
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 \
In Management > Graph Management > Host - TCP State - PORT > Turn On Graph Debug Mode

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Host - TCP State - 53' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label= \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/var/www/cacti/rra/storage_-_sede_tcp_1726.rrd':'TCP':LAST \
AREA:a#EA8F00FF:'TCP'  \
GPRINT:a:LAST:'%8.0lf\n'  \
COMMENT:'(1 = Running, 0 = Stopped)' 

RRDTool Says:
ERROR: the RRD does not contain an RRA matching the chosen CF
In /var/log/httpd/error_log

Code: Select all

ERROR: the RRD does not contain an RRA matching the chosen CF
Anyone been through this, help?
Thiago Roberth
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest