Commit f4acfa14 authored by Sebastian Oeste's avatar Sebastian Oeste 🐧
Browse files

fix custom_types db in collectd package

* Add our custom_types.db to collectd package.
* Define paths to custom_types.db and types.db to /usr/share/collectd.
parent dc110ae8
......@@ -10,8 +10,8 @@
#HostnameReplace
TypesDB "CD_INST_PATH/share/collectd/types.db"
TypesDB "CUSTOM_TYPES_DIR/custom_types.db"
TypesDB "/usr/share/collectd/types.db"
TypesDB "/usr/share/collectd/custom_types.db"
Interval 30
AlignRead true
......
......@@ -14,6 +14,7 @@ Source1: collectd.conf
Source2: ib_bw.py
Source3: influx_write.py
Source4: lustre_bw.py
Source5: custom_types.db
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::Embed)
......@@ -628,6 +629,7 @@ make install DESTDIR="%{buildroot}"
install -Dp -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/collectd.conf
install -Dp -m0644 contrib/systemd.collectd.service %{buildroot}%{_unitdir}/collectd.service
install -Dp -m0644 %{SOURCE5} %{buildroot}%{_datadir}/collectd/custom_types.db
install -d %{buildroot}%{_datadir}/collectd/plugins/
install -Dp -m0644 %{SOURCE2} %{buildroot}%{_datadir}/collectd/plugins/ib_bw.py
install -Dp -m0644 %{SOURCE3} %{buildroot}%{_datadir}/collectd/plugins/influx_write.py
......@@ -684,6 +686,7 @@ make check
%{_sbindir}/collectd
%{_sbindir}/collectdmon
%{_datadir}/collectd/types.db
%{_datadir}/collectd/custom_types.db
%{_datadir}/collectd/plugins/ib_bw.py
%{_datadir}/collectd/plugins/influx_write.py
%{_datadir}/collectd/plugins/lustre_bw.py
......
likwid value:GAUGE:0:U
pair value:GAUGE:0:U, value:GAUGE:0:U
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment