diff options
author | Alan Pevec <apevec@redhat.com> | 2013-04-09 10:14:19 +0200 |
---|---|---|
committer | Alan Pevec <apevec@redhat.com> | 2013-04-22 16:01:55 +0200 |
commit | 41d3e5c62b8615c643d440157856ed992b94470e (patch) | |
tree | 1e76b397d0870cbc309525610179b7d43de219b3 | |
parent | dcb79144b52b300acf43db06b286a5ba361982a9 (diff) | |
download | collectd-41d3e5c62b8615c643d440157856ed992b94470e.tar.gz collectd-41d3e5c62b8615c643d440157856ed992b94470e.tar.xz collectd-41d3e5c62b8615c643d440157856ed992b94470e.zip |
update to 5.2.2f18
Also fixes rhbz 954322 collectd package should be built with PIE flags
TODO sync with https://github.com/collectd/collectd/tree/master/contrib/redhat
For now, just adding conf files which were dropped upstream:
apache.conf email.conf mysql.conf nginx.conf sensors.conf snmp.conf
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | apache.conf | 7 | ||||
-rw-r--r-- | collectd.spec | 30 | ||||
-rw-r--r-- | email.conf | 7 | ||||
-rw-r--r-- | fixperlinstall.patch | 22 | ||||
-rw-r--r-- | mysql.conf | 7 | ||||
-rw-r--r-- | nginx.conf | 7 | ||||
-rw-r--r-- | sensors.conf | 7 | ||||
-rw-r--r-- | snmp.conf | 42 | ||||
-rw-r--r-- | sources | 2 |
10 files changed, 100 insertions, 33 deletions
@@ -1 +1 @@ -/collectd-5.2.1.tar.bz2 +/collectd-5.2.2.tar.bz2 diff --git a/apache.conf b/apache.conf new file mode 100644 index 0000000..a1a4848 --- /dev/null +++ b/apache.conf @@ -0,0 +1,7 @@ +LoadPlugin apache +#<Plugin apache> +# URL "http://localhost/status?auto" +# User "www-user" +# Password "secret" +# CACert "/etc/ssl/ca.crt" +#</Plugin> diff --git a/collectd.spec b/collectd.spec index 5b672c1..282eee5 100644 --- a/collectd.spec +++ b/collectd.spec @@ -1,6 +1,8 @@ +%global _hardened_build 1 + Summary: Statistics collection daemon for filling RRD files Name: collectd -Version: 5.2.1 +Version: 5.2.2 Release: 1%{?dist} License: GPLv2 Group: System Environment/Daemons @@ -10,8 +12,14 @@ Source: http://collectd.org/files/%{name}-%{version}.tar.bz2 Source1: collectd-httpd.conf Source2: collection.conf Source3: collectd.service +Source91: apache.conf +Source92: email.conf +Source93: mysql.conf +Source94: nginx.conf +Source95: sensors.conf +Source96: snmp.conf + Patch1: %{name}-include-collectd.d.patch -Patch2: fixperlinstall.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root @@ -189,7 +197,6 @@ This plugin collects information from virtualized guests. %prep %setup -q %patch1 -%patch2 sed -i.orig -e 's|-Werror||g' Makefile.in */Makefile.in @@ -349,12 +356,12 @@ find contrib -name '*.p[lm]' -exec mv {} perl-examples/ \; # Move config contribs mkdir -p %{buildroot}/etc/collectd.d/ -cp contrib/redhat/apache.conf %{buildroot}/etc/collectd.d/apache.conf -cp contrib/redhat/email.conf %{buildroot}/etc/collectd.d/email.conf -cp contrib/redhat/mysql.conf %{buildroot}/etc/collectd.d/mysql.conf -cp contrib/redhat/nginx.conf %{buildroot}/etc/collectd.d/nginx.conf -cp contrib/redhat/sensors.conf %{buildroot}/etc/collectd.d/sensors.conf -cp contrib/redhat/snmp.conf %{buildroot}/etc/collectd.d/snmp.conf +cp %{SOURCE91} %{buildroot}/etc/collectd.d/apache.conf +cp %{SOURCE92} %{buildroot}/etc/collectd.d/email.conf +cp %{SOURCE93} %{buildroot}/etc/collectd.d/mysql.conf +cp %{SOURCE94} %{buildroot}/etc/collectd.d/nginx.conf +cp %{SOURCE95} %{buildroot}/etc/collectd.d/sensors.conf +cp %{SOURCE96} %{buildroot}/etc/collectd.d/snmp.conf # configs for subpackaged plugins %ifnarch s390 s390x @@ -660,6 +667,11 @@ fi %endif %changelog +* Mon Apr 22 2013 Alan Pevec <apevec@redhat.com> 5.2.2-1 +- update to 5.2.2 + http://mailman.verplant.org/pipermail/collectd/2013-April/005749.html +- build with PIE flags rhbz#954322 + * Mon Feb 04 2013 Alan Pevec <apevec@redhat.com> 5.2.1-1 - update to 5.2.1 http://mailman.verplant.org/pipermail/collectd/2013-January/005577.html diff --git a/email.conf b/email.conf new file mode 100644 index 0000000..cc43ff0 --- /dev/null +++ b/email.conf @@ -0,0 +1,7 @@ +LoadPlugin email +#<Plugin email> +# SocketFile "/usr/var/run/collectd-email" +# SocketGroup "collectd" +# SocketPerms "0770" +# MaxConns 5 +#</Plugin> diff --git a/fixperlinstall.patch b/fixperlinstall.patch deleted file mode 100644 index f11d573..0000000 --- a/fixperlinstall.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- bindings/Makefile.am.orig 2013-01-27 14:47:05.000000000 +0100 -+++ bindings/Makefile.am 2013-02-04 00:48:01.854444442 +0100 -@@ -45,7 +45,7 @@ - - buildperl/Makefile: .perl-directory-stamp buildperl/Makefile.PL \ - $(top_builddir)/config.status -- cd buildperl && @PERL@ Makefile.PL INSTALL_BASE=$(DESTDIR)$(prefix) @PERL_BINDINGS_OPTIONS@ -+ cd buildperl && @PERL@ Makefile.PL @PERL_BINDINGS_OPTIONS@ - - buildperl/Makefile.PL: .perl-directory-stamp $(top_builddir)/config.status - ---- bindings/Makefile.in.orig 2013-01-27 14:47:35.000000000 +0100 -+++ bindings/Makefile.in 2013-02-04 00:48:51.440147674 +0100 -@@ -716,7 +716,7 @@ - - buildperl/Makefile: .perl-directory-stamp buildperl/Makefile.PL \ - $(top_builddir)/config.status -- cd buildperl && @PERL@ Makefile.PL INSTALL_BASE=$(DESTDIR)$(prefix) @PERL_BINDINGS_OPTIONS@ -+ cd buildperl && @PERL@ Makefile.PL @PERL_BINDINGS_OPTIONS@ - - buildperl/Makefile.PL: .perl-directory-stamp $(top_builddir)/config.status - diff --git a/mysql.conf b/mysql.conf new file mode 100644 index 0000000..6dc03cc --- /dev/null +++ b/mysql.conf @@ -0,0 +1,7 @@ +LoadPlugin mysql +#<Plugin mysql> +# Host "database.serv.er" +# User "db_user" +# Password "secret" +# Database "db_name" +#</Plugin> diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..ae56014 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,7 @@ +LoadPlugin nginx +#<Plugin nginx> +# URL "http://localhost/status?auto" +# User "www-user" +# Password "secret" +# CACert "/etc/ssl/ca.crt" +#</Plugin> diff --git a/sensors.conf b/sensors.conf new file mode 100644 index 0000000..8149f1b --- /dev/null +++ b/sensors.conf @@ -0,0 +1,7 @@ +LoadPlugin sensors +#<Plugin sensors> +# Sensor "it8712-isa-0290/temperature-temp1" +# Sensor "it8712-isa-0290/fanspeed-fan3" +# Sensor "it8712-isa-0290/voltage-in8" +# IgnoreSelected false +#</Plugin> diff --git a/snmp.conf b/snmp.conf new file mode 100644 index 0000000..235a068 --- /dev/null +++ b/snmp.conf @@ -0,0 +1,42 @@ +LoadPlugin snmp +#<Plugin snmp> +# <Data "powerplus_voltge_input"> +# Type "voltage" +# Table false +# Instance "input_line1" +# Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1" +# </Data> +# <Data "hr_users"> +# Type "users" +# Table false +# Instance "" +# Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0" +# </Data> +# <Data "std_traffic"> +# Type "if_octets" +# Table true +# Instance "IF-MIB::ifDescr" +# Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets" +# </Data> +# +# <Host "some.switch.mydomain.org"> +# Address "192.168.0.2" +# Version 1 +# Community "community_string" +# Collect "std_traffic" +# Inverval 120 +# </Host> +# <Host "some.server.mydomain.org"> +# Address "192.168.0.42" +# Version 2 +# Community "another_string" +# Collect "std_traffic" "hr_users" +# </Host> +# <Host "some.ups.mydomain.org"> +# Address "192.168.0.3" +# Version 1 +# Community "more_communities" +# Collect "powerplus_voltge_input" +# Interval 300 +# </Host> +#</Plugin> @@ -1 +1 @@ -350934cfea62d37e10191816744f0eb7 collectd-5.2.1.tar.bz2 +29e61411e51845d5ae71ab676078867e collectd-5.2.2.tar.bz2 |