CGP
CGP copied to clipboard
ERROR: No DS called 'value' in ... disk_io_time.rrd'
My CGP can't create disk_io_time graphs. Everything else is working fine.
I already checked the file CGP/plugin/disk.json. The DS entries io_time
and weighted_io_time
are correct. 😕
My version:
root@collectd:/var/www/html/CGP# git show --oneline -s
1920ca2 Merge pull request #162 from Self-Perfection/patch-1
Command:
root@collectd:/var/www/html/CGP# rrdtool info '/var/lib/collectd/rrd/xxx/disk-ST4000VN000-1H4168_XXXXXXXX/disk_io_time.rrd' | grep "ds\["
Output:
ds[io_time].index = 0
ds[io_time].type = "DERIVE"
ds[io_time].minimal_heartbeat = 20
ds[io_time].min = 0.0000000000e+00
ds[io_time].max = NaN
ds[io_time].last_ds = "2674344"
ds[io_time].value = 5.3984000000e+03
ds[io_time].unknown_sec = 0
ds[weighted_io_time].index = 1
ds[weighted_io_time].type = "DERIVE"
ds[weighted_io_time].minimal_heartbeat = 20
ds[weighted_io_time].min = 0.0000000000e+00
ds[weighted_io_time].max = NaN
ds[weighted_io_time].last_ds = "5529692"
ds[weighted_io_time].value = 8.5504000000e+03
ds[weighted_io_time].unknown_sec = 0
Error in logfile /var/log/apache2/error.log
:
ERROR: No DS called 'value' in '/var/lib/collectd/rrd/xxx/disk-ST4000VN000-1H4168_XXXXXXXX/disk_io_time.rrd'
My collectd version is: 5.7.2-2ubuntu1
I've got the same issue, and finally found a solution.
You certainly has a data_type line in /etc/collectd/my_types.db
, included in /etc/collectd/collectd.conf
(TypesDB parameter) defining these metrics, with this content :
disk io_time:DERIVE:0:U, weighted_io_time:DERIVE:0:U
You must :
- Copy this file to
/usr/www/<your_CGP_root>/inc/my_types.db
- Add the following line in your config file
/usr/www/<your_CGP_root>/conf/config.local.php
:
$CONFIG['typesdb'][] = 'inc/my_types.db';
Note : unfortunately, you cannot use an absolute path here, thus have a direct reference to the file (which is used by collected) located in /etc/collectd/
will not work.