]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Merge branch 'collectd-5.3' into collectd-5.4
authorFlorian Forster <octo@collectd.org>
Mon, 18 Aug 2014 07:35:04 +0000 (09:35 +0200)
committerFlorian Forster <octo@collectd.org>
Mon, 18 Aug 2014 07:35:04 +0000 (09:35 +0200)
Conflicts:
contrib/redhat/collectd.spec

1  2 
configure.ac
contrib/redhat/collectd.spec
src/Makefile.am
src/collectd.conf.pod
src/common.c
src/configfile.c
src/curl.c
src/curl_json.c
src/curl_xml.c
src/write_riemann.c

diff --cc configure.ac
Simple merge
index 2379c8d5b1944aa0677c3434e3d1ba5532d98b6c,2e374c66481130b44b82ce7dd540e30496e1ee41..43704c4f5bdec2beb2d618dad044713489f16b7b
@@@ -43,8 -43,8 +43,9 @@@
  %{?el6:%global _has_recent_libganglia 1}
  %{?el6:%global _has_working_libiptc 1}
  %{?el6:%global _has_ip_vs_h 1}
 +%{?el6:%global _has_lvm2app_h 1}
  %{?el6:%global _has_perl_extutils_embed 1}
+ %{?el6:%global _has_libmodbus 1}
  
  # plugins enabled by default
  %define with_aggregation 0%{!?_without_aggregation:1}
@@@ -92,8 -90,8 +93,9 @@@
  %define with_memcached 0%{!?_without_memcached:1}
  %define with_memory 0%{!?_without_memory:1}
  %define with_multimeter 0%{!?_without_multimeter:1}
+ %define with_modbus 0%{!?_without_modbus:0%{?_has_libmodbus}}
  %define with_mysql 0%{!?_without_mysql:1}
 +%define with_netlink 0%{!?_without_netlink:1}
  %define with_network 0%{!?_without_network:1}
  %define with_nfs 0%{!?_without_nfs:1}
  %define with_nginx 0%{!?_without_nginx:1}
@@@ -412,16 -383,16 +414,26 @@@ instance. Note that another plugin, nam
  similar job, without requiring the installation of libmemcached.
  %endif
  
 +%if %{with_mic}
 +%package mic
 +Summary:      mic plugin for collectd
 +Group:                System Environment/Daemons
 +Requires:     %{name}%{?_isa} = %{version}-%{release}
 +%description mic
 +The mic plugin collects CPU usage, memory usage, temperatures and power
 +consumption from Intel Many Integrated Core (MIC) CPUs.
 +%endif
 +
+ %if %{with_modbus}
+ %package modbus
+ Summary:       modbus plugin for collectd
+ Group:         System Environment/Daemons
+ Requires:      %{name}%{?_isa} = %{version}-%{release}
+ BuildRequires:        libmodbus-devel
+ %description modbus
+ The modbus plugin collects values from Modbus/TCP enabled devices
+ %endif
  %if %{with_mysql}
  %package mysql
  Summary:      MySQL plugin for collectd
  %doc contrib/
  
  %changelog
 +* Mon Aug 19 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.4.0-1
 +- New upstream version
 +- Build netlink plugin by default
 +- Enable cgroups, lvm and statsd plugins
 +- Enable (but don't build by default) mic, aquaero and sigrok plugins
 +
+ * Wed Aug 06 2014 Marc Fournier <marc.fournier@camptocamp.com> 5.3.1-2
+ - Enabled modbus plugin
  * Tue Aug 06 2013 Marc Fournier <marc.fournier@camptocamp.com> 5.3.1-1
  - New upstream version
  - Added RHEL5 support:
diff --cc src/Makefile.am
Simple merge
Simple merge
diff --cc src/common.c
Simple merge
Simple merge
diff --cc src/curl.c
Simple merge
diff --cc src/curl_json.c
index 42a3a10c8f3d3174d29acd095b2d7ab18d7c317c,a4afa02e4c70da022e4ad8487d6208f9205a9fff..9e0f6723c35c363198a3f1df165a6c5e8dcdb444
@@@ -955,9 -854,17 +955,17 @@@ static int cj_read (user_data_t *ud) /
    db->state[db->depth].tree = db->tree;
    db->key = NULL;
  
 -  return cj_curl_perform (db, db->curl);
 +  return cj_perform (db);
  } /* }}} int cj_read */
  
+ static int cj_init (void) /* {{{ */
+ {
+   /* Call this while collectd is still single-threaded to avoid
+    * initialization issues in libgcrypt. */
+   curl_global_init (CURL_GLOBAL_SSL);
+   return (0);
+ } /* }}} int cj_init */
  void module_register (void)
  {
    plugin_register_complex_config ("curl_json", cj_config);
diff --cc src/curl_xml.c
Simple merge
Simple merge