I import templates success, but also to properly connect to the database, but can not figure out。
when i add it will tips me need follow:
ostgreSQL - Rows Stats]
Index Type
Index Value
Output Type ID
and
RRDTool:
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='TEST - PgSQL - DB Row' \
--base=1000 \
--height=200 \
--width=700 \
--alt-autoscale-max \
--lower-limit=1 \
--vertical-label='' \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/17/627.rrd":n_tup_del:AVERAGE \
DEF:b="/var/www/html/rra/17/627.rrd":n_tup_ins:AVERAGE \
DEF:c="/var/www/html/rra/17/627.rrd":n_tup_upd:AVERAGE \
LINE1:a#FF0000FF:"Deleted" \
GPRINT
LAST:" Current\:%8.0lf" \
GPRINT
AVERAGE:"Average\:%8.0lf" \
GPRINT
MAX:"Maximum\:%8.0lf\n" \
LINE1:b#35962BFF:"Inserted" \
GPRINT
LAST:"Current\:%8.0lf" \
GPRINT
AVERAGE:"Average\:%8.0lf" \
GPRINT
MAX:"Maximum\:%8.0lf\n" \
LINE1:c#EA8F00FF:"Updated" \
GPRINT:c:LAST:" Current\:%8.0lf" \
GPRINT:c:AVERAGE:"Average\:%8.0lf" \
GPRINT:c:MAX:"Maximum\:%8.0lf\n"
RRDTool:
ERROR: opening '/var/www/html/rra/17/627.rrd': No such file or directory
I'm sure other monitoring is normal, except for postgresql。
i think it is postgresql 8.3 or higher doesn't have follow cause
stats_row_level = on
stats_reset_on_server_start = off
stats_block_level = on
stats_command_string = on
stats_start_collector = on
。Are there any other way to do it?