[collectd] trouble trying to use "tail_csv" plugin
Gerardo Herzig
gherzig at fmed.uba.ar
Thu Sep 15 15:32:53 CEST 2016
Hi all: Im trying (with no luck) to parse a csv file to feed my rrds.
the file look likd this (real data):
root at admin-server:/opt/collectd/var/lib/collectd/admin-server# tail /opt/collectd/var/log/trafico_reduba-internet.csv
752.2,129.8
752.2,129.8
1164.9,162.7
1164.9,162.7
1164.9,162.7
767.2,154.9
767.2,154.9
739.5,150.2
739.5,150.2
739.5,150.2
Relevant data (collectd.conf):
Hostname "admin-server"
<Plugin "tail_csv">
<Metric "traf-reduba-internet-in">
Type "total_in_traffic"
Instance "in-traffic-in-mb"
ValueFrom 0
</Metric>
<Metric "traf-reduba-internet-out">
Type "total_out_traffic"
Instance "out-traffic-in-mb"
ValueFrom 1
</Metric>
<File "/opt/collectd/var/log/trafico_reduba-internet.csv">
Instance "trafico-reduba"
Interval 60
Collect "traf-reduba-internet-in" "traf-reduba-internet-out"
</File>
</Plugin>
Types definition (types.db)
total_in_traffic value:GAUGE:0:U
total_out_traffic value:GAUGE:0:U
That is what i got so far. No errors in the log file...Im waiting to see a directory called "tail_csv-something", but nothing appears...(yes, other metrics are working just fine)
So, how can i turn on debugging to try to see what is the csv_plugin doing (or not doing)? Any hints?
Thanks!
Gerardo
More information about the collectd
mailing list