write_riemann: do not deadlock when sending from flush
write_riemann: add a BatchFlushTimeout option
write_riemann: kill old protobuf files
Merge pull request #1 from pyr/f/riemann/rcc
write_riemann: avoid deadlocks, rate limit log messages.
write_riemann: avoid deadlocks, rate limit log messages.
write_riemann: reorder host struct
write_riemann: use a single complaint field for send errors
write_riemann: use the complain mechanism to rate limit connection failure logs
write_riemann: avoid deadlock on connection failures
write_riemann: Add support for timeouts
Bump the riemann-c-client requirement to 1.8.0, which introduces
riemann_client_set_timeout(). With this in place, the plugin can now
accept the "Timeout" option, which specifies a timeout in seconds, for
all blocking operations (except TLS handshake).
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Bump the riemann-c-client requirement to 1.8.0, which introduces
riemann_client_set_timeout(). With this in place, the plugin can now
accept the "Timeout" option, which specifies a timeout in seconds, for
all blocking operations (except TLS handshake).
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
write_riemann: Use riemann-c-client 1.6.0+
Use a newer version of riemann-c-client, so that we can use
riemann_message_get_packed_size(), which was introduced partly to support
collectd's use of the library.
Also use riemann_event_string_attribute_add(), introduced in the same version,
to make a lot of the code simpler.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Use a newer version of riemann-c-client, so that we can use
riemann_message_get_packed_size(), which was introduced partly to support
collectd's use of the library.
Also use riemann_event_string_attribute_add(), introduced in the same version,
to make a lot of the code simpler.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
write_riemann: Use riemann-c-client
Instead of implementing a collectd-specific riemann client, use the
riemann-c-client library to talk to Riemann.
This also adds support for TLS, as an added bonus, and makes it easier to
improve the plugin later on.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Instead of implementing a collectd-specific riemann client, use the
riemann-c-client library to talk to Riemann.
This also adds support for TLS, as an added bonus, and makes it easier to
improve the plugin later on.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Add pkg-config to list of prerequisites
Merge pull request #1650 from kev009/freebsd-io-time
Submit FreeBSD disk IO time
Submit FreeBSD disk IO time
Add FreeBSD submit_io_time to disk plugin
Move submit_io_time outside of KERNEL_LINUX
GenericJMX: fix potential dereference after NPE
Fixes CID #41723
Fixes CID #41723
write_sensu: initialize ret_str
Else we might free an uninitialized ptr
CID #81392
Else we might free an uninitialized ptr
CID #81392
gmond plugin: check remaining setsockopt calls
Fixes CID #38112
Fixes CID #38112
write_sensu: fix resource leaks on error
Fixes CID #37998
Fixes CID #37998
collectdmon: close fd when dup2 fails
Fixed CID #73119
Fix a typo in the error message while we're at it.
Fixed CID #73119
Fix a typo in the error message while we're at it.
Merge pull request #1611 from stefanth/Collection3/graph-rendering-speedup
Collection3: Graphing speed improvements with many hosts
Collection3: Graphing speed improvements with many hosts
Merge pull request #1648 from rubenk/cleanup-whitespace
Treewide: cleanup whitespace
Treewide: cleanup whitespace
Treewide: cleanup whitespace
Merge pull request #1646 from rubenk/cleanup-malloc-calls
Cleanup malloc calls
Cleanup malloc calls
write_tsdb plugin: malloc + memset -> calloc
write_sensu plugin: malloc + memset -> calloc
write_riemann plugin: malloc + memset -> calloc
write_redis plugin: malloc + memset -> calloc
write_mongodb plugin: malloc + memset -> calloc
write_http plugin: remove unnecessary cast
write_http plugin: malloc + memset -> calloc
write_graphite plugin: malloc + memset -> calloc
varnish plugin: malloc + memset -> calloc
utils: malloc + memset -> calloc
teamspeak2: malloc + memset -> calloc
tcpconns plugin: malloc + memset -> calloc
target plugins: malloc + memset -> calloc
tail_csv: malloc + memset -> calloc
statsd plugin: malloc + memset -> calloc
snmp plugin: malloc + memset -> calloc
sigrok plugin: malloc + memset -> calloc
sensors plugin: malloc + memset -> calloc
routeros plugin: malloc + memset -> calloc
python plugin: malloc + memset -> calloc
processes plugin: malloc + memset -> calloc
powerdns plugin: malloc + memset -> calloc
postgresql plugin: malloc + memset -> calloc
pinba plugin: malloc + memset -> calloc
oracle plugin: malloc + memset -> calloc
openldap plugin: malloc + memset -> calloc
nut plugin: malloc + memset -> calloc
network plugin: malloc + memset -> calloc
netlink plugin: malloc + memset -> calloc
netapp plugin: malloc + memset -> calloc
mysql plugin: malloc + memset -> calloc
modbus plugin: malloc + memset -> calloc
memcached plugin: malloc + memset -> calloc
memcachec plugin: malloc + memset -> calloc
match plugins: malloc + memset -> calloc
liboconfig: malloc + memset -> calloc
libcollectdclient: malloc + memset -> calloc
java plugin: malloc + memset -> calloc
gmond: malloc + memset -> calloc
filecount plugin: malloc + memset -> calloc
exec plugin: malloc + memset -> calloc
ethstat plugin: malloc + memset -> calloc
email plugin: malloc + memset -> calloc
dns plugin: malloc + memset -> calloc
dbi plugin: malloc + memset -> calloc
daemon: malloc + memset -> calloc
curl_xml: malloc + memset -> calloc
curl_json: malloc + memset -> calloc
curl: malloc + memset -> calloc
collectd-tg: malloc + memset -> calloc
apache: malloc + memset -> calloc
amqp: malloc + memset -> calloc
aggregration: malloc + memset -> calloc
treewide: fix a few error messages
Don't log that malloc failed when we call calloc
Don't log that malloc failed when we call calloc
treewide: cleanup malloc calls
- Remove unnecessary casts
- Use the size of the variable for mallocs size
- Remove unnecessary casts
- Use the size of the variable for mallocs size
network.c: s/networt/network/g
Merge pull request #1592 from rpv-tomsk/mysql-plugin-sort
mysql plugin: Split 'mysql_sort' type into several types.
mysql plugin: Split 'mysql_sort' type into several types.
Merge branch 'collectd-5.5'
Merge branch 'collectd-5.4' into collectd-5.5
configure.ac: break long line and sort
This will make future merges easier.
This will make future merges easier.
Merge branch 'collectd-5.5'
Merge branch 'collectd-5.4' into collectd-5.5
Fix building with xfsprogs 4.5.0
xfsprogs 4.5.0 started to use off64_t in its headers,
which is hidden behind _GNU_SOURCE
Fixes #1637
xfsprogs 4.5.0 started to use off64_t in its headers,
which is hidden behind _GNU_SOURCE
Fixes #1637
Merge branch 'collectd-5.5'
Merge branch 'collectd-5.5'
Fix conflict markers
Merge branch 'collectd-5.4' into collectd-5.5
Fix indentation in previous commit
Merge pull request #1620 from skinowski/write_http_mem_leak_II
write_http: in cleanup handler free http headers
write_http: in cleanup handler free http headers
write_http: in cleanup handler free http headers
slist of http headers require cleanup to avoid
memory leak. See libcurl example:
https://curl.haxx.se/libcurl/c/httpcustomheader.html
slist of http headers require cleanup to avoid
memory leak. See libcurl example:
https://curl.haxx.se/libcurl/c/httpcustomheader.html
Merge branch 'collectd-5.4' into collectd-5.5
Fix build on Solaris 10 i386 part 2
utils_latency.c needs the same fix as applied in a41f312
(cherry picked from commit e7f7ecc1cac73841cdebd7e0462af4989532a107)
utils_latency.c needs the same fix as applied in a41f312
(cherry picked from commit e7f7ecc1cac73841cdebd7e0462af4989532a107)
Fix build on Solaris 10 i386
AC_SYS_LARGEFILE defines _FILE_OFFSET_BITS in src/config.h,
so we need this header first before including system headers.
Thanks to @dago for the report.
Fixes:
CC collectd-utils_random.o
In file included from collectd.h:31:0,
from utils_random.c:29:
../../src/config.h:1646:0: error: "_FILE_OFFSET_BITS" redefined
[-Werror]
#define _FILE_OFFSET_BITS 64
^
In file included from
/opt/csw/lib/gcc/i386-pc-solaris2.10/5.2.0/include-fixed/pthread.h:20:0,
from utils_random.c:27:
/opt/csw/lib/gcc/i386-pc-solaris2.10/5.2.0/include-fixed/sys/feature_tests.h:196:0:
note: this is the location of the previous definition
#define _FILE_OFFSET_BITS 32
^
cc1: all warnings being treated as errors
(cherry picked from commit a41f312a8d48a989dfba00a8b43532c60f67caba)
AC_SYS_LARGEFILE defines _FILE_OFFSET_BITS in src/config.h,
so we need this header first before including system headers.
Thanks to @dago for the report.
Fixes:
CC collectd-utils_random.o
In file included from collectd.h:31:0,
from utils_random.c:29:
../../src/config.h:1646:0: error: "_FILE_OFFSET_BITS" redefined
[-Werror]
#define _FILE_OFFSET_BITS 64
^
In file included from
/opt/csw/lib/gcc/i386-pc-solaris2.10/5.2.0/include-fixed/pthread.h:20:0,
from utils_random.c:27:
/opt/csw/lib/gcc/i386-pc-solaris2.10/5.2.0/include-fixed/sys/feature_tests.h:196:0:
note: this is the location of the previous definition
#define _FILE_OFFSET_BITS 32
^
cc1: all warnings being treated as errors
(cherry picked from commit a41f312a8d48a989dfba00a8b43532c60f67caba)
Merge branch 'collectd-5.5'
Merge branch 'collectd-5.4' into collectd-5.5