34 Commits

Author SHA1 Message Date
danj
08c3b51d84 Patches were committed upstream 2017-07-01 13:35:30 +00:00
danj
977bd0d31b Enlarge some buffers because 2048 is not enough to get getgrnam_r result.
Also fix errno handling in exec.c. Many thanks to jca@ for the help.

"if it builds, ship it" jca@
2017-06-29 00:33:59 +00:00
landry
172b707924 Update to collectd 5.7.1, from Pavel Korovin, thanks !
See https://collectd.org/wiki/index.php/Version_5.7
2017-04-30 17:52:15 +00:00
landry
c55f7ac65c Ugly bandaid: bump CMDLINE_BUFFER_SIZE to 16k instead of defaulting to
4k, i'm hitting "processes plugin: Command line did not fit into
buffer." warning way too much and this spams logs. Better solution would
be to dynamically alloc the array on the fly as-needed like top/ps
does..
2016-12-12 17:55:24 +00:00
landry
f9eaf01334 add link to upstream pull-request 2016-12-08 10:06:42 +00:00
landry
3981736abe Drop useless patch, netinet/in.h is properly detected and included. 2016-12-08 09:42:11 +00:00
jca
8cce6470d9 Unbreak the kvm(3) calls used by the processes and tcpconns plugins.
- patch the correct kvm_open call to use KVM_NO_FILES.  Also, use
  kvm_openfiles instead, as was probably intended
- add a new implementation for tcpconns, based on kvm_getfiles instead
  of peeking at kernel memory

ok landry@
2016-12-04 16:56:53 +00:00
jca
6eedafef6f Kill useless patch.
This plugin uses swapctl(2), not kvm_getswapinfo(3) (which we don't
provide).
2016-12-04 16:52:39 +00:00
landry
99f2ee96c4 Update to collectd 5.6.2.
- put the write_riemann plugin in its own subpackage, depending on
  riemann-c-client.
- disable protobuf-c detection/dependency, used by two plugins we dont
  enable (pinba and grpc)
- fix some WANTLIB
- the processes and tcpconns plugin still seem to be busted, calling
  kvm_openfiles with O_RDONLY|KVM_NO_FILES is apparently not enough.
Interestingly, swap plugin (using the same code) works ?

Based on a diff from Pavel Korovin for 5.6.1, thanks!
2016-12-03 11:44:41 +00:00
jca
8ddf812acd Use KVM_NO_FILES to unbreak processes and swap plugins.
The tcpconns plugin needs more work, using kvm_getfiles(3) or sysctl(3).
Prodded by landry@
2016-12-02 15:50:29 +00:00
landry
9d52f74e0e Update to collectd 5.5.1.
Remove patches merged upstream, add patch to fix the build from
https://github.com/collectd/collectd/issues/1674
2016-06-13 09:12:40 +00:00
sthen
5f98583af5 handle rrdtool lib change that I missed in collectd when I looked at
sqlports results (thanks nigel for pointing out), sync other wantlib
while there.
2016-04-22 15:27:45 +00:00
landry
9746975e2e Backport fix for https://github.com/collectd/collectd/issues/1094
ok sthen@
2015-07-31 12:06:18 +00:00
landry
5baedee076 Regen patches. 2015-07-31 12:05:36 +00:00
landry
b1570099de Fix previous, collectd failed to load its plugins and really wants to
use gnu libtool with -export-symbol-regex when linking them, otherwise
it fails to find module_register. While here fix PKGLOCALSTATEDIR and
PIDFILE in src/daemon/Makefile.in.
Somehow, my limited testing on powerpc didnt show this failure at all..

All this from Pavel Korovin, thanks!
2015-07-27 14:53:38 +00:00
landry
2b05235748 Update to collectd 5.5.0.
Enable aggregation, curl_json, fhcount, log_logstash, memcached,
threshold, write_log & write_riemann plugins.
Add dependencies on devel/libyajl for curl_json & log_logstash and
devel/protobuf-c for write_riemann.
Add a README explaining how to run the daemon as _collectd user in case
you dont need the dns and ping plugins (the only ones requiring root).
Lots of patches merged upstream.

From Pavel Korovin with small tweaks by me, tested here on ppc.
2015-07-23 07:33:17 +00:00
landry
3dc0616b30 Update to collectd 5.4.2.
See https://github.com/collectd/collectd/releases/tag/collectd-5.4.2 for details.

Enable memcachec, libvirt, python and nut plugins, each in its subpackage.

ok ajacoutot@
2015-05-03 10:41:34 +00:00
naddy
29704fbaad <netinet/in.h> before <net/pfvar.h> 2015-01-23 13:01:16 +00:00
landry
871200dbb8 More links to pull requests merged upstream. 2014-11-17 15:23:12 +00:00
landry
70acb3cdc9 add links to upstream github PR 2014-10-27 09:07:07 +00:00
landry
1cd40058ea Enable the processes & rrdcached plugins.
whack processes.c to use the same codepaths as freebsd's, taking into
account kinfo_proc differences.. to be properly pushed upstream.
Tested on ppc & amd64.
2014-10-26 20:43:56 +00:00
landry
65cbb87679 Fix patch, somehow i failed at merging this.. noticed by rpe@, thanks! 2014-09-26 22:19:32 +00:00
landry
52a62809c3 Long awaited update to collectd 5.4.1.
- remove useless MESSAGE, provide an rc script instead
- enable pf, target_v5upgrade, tail_csv and write_graphite plugins
- backport fixes from FreeBSD and NetBSD to build with newer libstatgrab
  (upstream collectd github ticket #445)
- remove the check and inclusion of pcap-bpf.h, we dont have/need it
- users of the previous 4.x version should refer to
  https://collectd.org/wiki/index.php/V4_to_v5_migration_guide for the
upgrade path.

tested on ppc & amd64.
2014-09-25 20:10:13 +00:00
sthen
d28ae1dd0c include vmmeter.h 2014-07-11 00:12:15 +00:00
landry
5737d43f49 Install the example collectd.conf with 644 mode, and use @mode 640 for
the @sample version.
2014-01-24 20:40:17 +00:00
krw
ae52e93779 Replace circleq inpt_queue with tailq, as inpt_queue is now a TAILQ.
Spotted in bulk build by sthen@.
2013-12-28 20:44:21 +00:00
jasper
7b5bd51a46 remove -lpthread vs. -pthread patches/chunks 2012-09-23 19:33:02 +00:00
naddy
8772c908e9 arpa/inet.h and netinet/in.h can now be #included in either order 2012-08-05 20:28:51 +00:00
jasper
9041fc74ae - these patches (or chunks) are not needed anymore since arpa/inet.h -r1.12 2012-06-26 14:40:06 +00:00
jasper
4f6e160902 - disable -Werror to unbreak the build after the recent libgcrypt update. 2012-04-05 09:20:12 +00:00
jasper
5b965fc5da SECURITY UPDATE of collectd to 4.10.2, among the regular bugfixes is a fix
for SA42393, collectd "cu_rrd_create_file()" Denial of Service Vulnerability.

ok landry@
2010-11-29 20:20:41 +00:00
landry
56a34dfaf4 Update to collectd 4.10.1, from Simon Kuhnle, thanks! 2010-09-07 11:12:05 +00:00
landry
233c804269 Make sure netinet/in.h is included before arpa/inet.h.
Fixes build with -Wsystem-headers. While here use REVISION/fix DEPENDS
2010-07-22 14:40:49 +00:00
landry
da4ec499a5 Import of collectd 4.10, yet another monitoring daemon :
collectd gathers statistics about the system it is running on and stores
this information. Those statistics can then be used to find current
performance bottlenecks (i.e. performance analysis) and predict future
system load (i.e. capacity planning). Or if you just want pretty graphs
of your private server and are fed up with some homegrown solution
you're at the right place, too ;).

Reworked by bernd@ to use MULTI_PACKAGES instead of FLAVORS, thanks!
With feedback from Nico Szalay.

ok bernd@
2010-06-23 18:04:26 +00:00