Hi again,
Following debugging guide, i managed to find out, that rrd files are not being updated.
Code: Select all
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='UPS ENERGETYKOW - Voltage' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='VAC' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/usr/share/cacti/rra/ups_energetykow_apc_line_voltage_170.rrd':'APC_line_voltage':AVERAGE \
DEF:b='/usr/share/cacti/rra/ups_energetykow_apc_output_voltage_171.rrd':'APC_output_voltage':AVERAGE \
AREA:a#00004DFF:'Input Line voltage' \
GPRINT:a:LAST:'Current\:%8.2lf %s' \
GPRINT:a:MIN:'Min\:%8.2lf %s' \
GPRINT:a:MAX:'Max\:%8.2lf %s\n' \
LINE3:b#FF5700FF:'APC Output voltage' \
GPRINT:b:LAST:'Current\:%8.2lf %s' \
GPRINT:b:MIN:'Min\:%8.2lf %s' \
GPRINT:b:MAX:'Max\:%8.2lf %s\n'
RRDTool Says:
OK
Code: Select all
root@SLX-LU-LINUX:~# ls -l /usr/share/cacti/rra/ups_energetykow_apc_line_voltage_170.rrd
-rw-r--r-- 1 www-data www-data 56228 03-17 12:40 /usr/share/cacti/rra/ups_energetykow_apc_line_voltage_170.rrd
I don't know, if it's relevant, but files are owned by www-data user, it's user that apache2 processes is running at.
Code: Select all
root@SLX-LU-LINUX:~# rrdtool fetch /usr/share/cacti/rra/ups_energetykow_apc_line_voltage_170.rrd AVERAGE | tail -n 30
1398335700: -nan
1398336000: -nan
1398336300: -nan
1398336600: -nan
1398336900: -nan
1398337200: -nan
1398337500: -nan
1398337800: -nan
1398338100: -nan
1398338400: -nan
1398338700: -nan
1398339000: -nan
1398339300: -nan
1398339600: -nan
1398339900: -nan
1398340200: -nan
1398340500: -nan
1398340800: -nan
1398341100: -nan
1398341400: -nan
1398341700: -nan
1398342000: -nan
1398342300: -nan
1398342600: -nan
1398342900: -nan
1398343200: -nan
1398343500: -nan
1398343800: -nan
1398344100: -nan
1398344400: -nan
Code: Select all
root@SLX-LU-LINUX:~# rrdtool info /usr/share/cacti/rra/ups_energetykow_apc_line_voltage_170.rrd
filename = "/usr/share/cacti/rra/ups_energetykow_apc_line_voltage_170.rrd"
rrd_version = "0003"
step = 300
last_update = 1395056404
header_size = 2276
ds[APC_line_voltage].index = 0
ds[APC_line_voltage].type = "GAUGE"
ds[APC_line_voltage].minimal_heartbeat = 600
ds[APC_line_voltage].min = 0,0000000000e+00
ds[APC_line_voltage].max = 2,8000000000e+02
ds[APC_line_voltage].last_ds = "231"
ds[APC_line_voltage].value = 9,2400000000e+02
ds[APC_line_voltage].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 500
rra[0].cur_row = 73
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[1].cf = "AVERAGE"
rra[1].rows = 600
rra[1].cur_row = 533
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[2].cf = "AVERAGE"
rra[2].rows = 700
rra[2].cur_row = 381
rra[2].pdp_per_row = 6
rra[2].xff = 5,0000000000e-01
rra[2].cdp_prep[0].value = 4,6098333333e+02
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 775
rra[3].cur_row = 180
rra[3].pdp_per_row = 24
rra[3].xff = 5,0000000000e-01
rra[3].cdp_prep[0].value = 4,5859366667e+03
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[4].cf = "AVERAGE"
rra[4].rows = 797
rra[4].cur_row = 131
rra[4].pdp_per_row = 288
rra[4].xff = 5,0000000000e-01
rra[4].cdp_prep[0].value = 3,2692060000e+04
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 500
rra[5].cur_row = 458
rra[5].pdp_per_row = 1
rra[5].xff = 5,0000000000e-01
rra[5].cdp_prep[0].value = NaN
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 600
rra[6].cur_row = 543
rra[6].pdp_per_row = 1
rra[6].xff = 5,0000000000e-01
rra[6].cdp_prep[0].value = NaN
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 700
rra[7].cur_row = 418
rra[7].pdp_per_row = 6
rra[7].xff = 5,0000000000e-01
rra[7].cdp_prep[0].value = 2,3098333333e+02
rra[7].cdp_prep[0].unknown_datapoints = 0
rra[8].cf = "MAX"
rra[8].rows = 775
rra[8].cur_row = 770
rra[8].pdp_per_row = 24
rra[8].xff = 5,0000000000e-01
rra[8].cdp_prep[0].value = 2,3098333333e+02
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[9].cf = "MAX"
rra[9].rows = 797
rra[9].cur_row = 103
rra[9].pdp_per_row = 288
rra[9].xff = 5,0000000000e-01
rra[9].cdp_prep[0].value = 2,3900000000e+02
rra[9].cdp_prep[0].unknown_datapoints = 0
Database is accessible. What can i check now?
Executing poller.php as www-data user gives to output.
Is that correct?
Code: Select all
$ php /usr/share/cacti/site/poller.php
Any ideas, what to do now? I don't want to reinstall cacti to solve that...