Code

collectd.git
16 years agoChangeLog: Added a note about the queueing changes to the rrdtool plugin. collectd-4.1.0
Florian Forster [Sat, 1 Sep 2007 21:42:55 +0000 (23:42 +0200)]
ChangeLog: Added a note about the queueing changes to the rrdtool plugin.

16 years agocollectd(1): Add some references to collectd-snmp(5).
Florian Forster [Sat, 1 Sep 2007 21:42:31 +0000 (23:42 +0200)]
collectd(1): Add some references to collectd-snmp(5).

16 years agocollectd.conf(5): Add some more references to collectd-snmp(5).
Florian Forster [Sat, 1 Sep 2007 21:42:01 +0000 (23:42 +0200)]
collectd.conf(5): Add some more references to collectd-snmp(5).

16 years agoBumped version to 4.1.0; Updated ChangeLog.
Florian Forster [Sat, 1 Sep 2007 20:01:24 +0000 (22:01 +0200)]
Bumped version to 4.1.0; Updated ChangeLog.

16 years agocollectd-snmp(5): Update the documentation.
Florian Forster [Sat, 1 Sep 2007 19:44:59 +0000 (21:44 +0200)]
collectd-snmp(5): Update the documentation.

16 years agoMerge branch 'collectd-4.0'
Florian Forster [Sat, 1 Sep 2007 19:00:46 +0000 (21:00 +0200)]
Merge branch 'collectd-4.0'

16 years agoMerge branch 'pull/master'
Florian Forster [Sat, 1 Sep 2007 19:00:40 +0000 (21:00 +0200)]
Merge branch 'pull/master'

16 years agoMerge branch 'pull/master'
Florian Forster [Sat, 1 Sep 2007 18:59:45 +0000 (20:59 +0200)]
Merge branch 'pull/master'

16 years agocontrib/collection.cgi: Quite some changes, but still incomplete and not very usable..
Florian Forster [Sat, 1 Sep 2007 18:59:27 +0000 (20:59 +0200)]
contrib/collection.cgi: Quite some changes, but still incomplete and not very usable..

16 years agosrc/plugin.c: Remove a legacy debug message.
Florian Forster [Sat, 1 Sep 2007 18:54:35 +0000 (20:54 +0200)]
src/plugin.c: Remove a legacy debug message.

16 years agonetlink plugin: Removed unused code.
Florian Forster [Sat, 1 Sep 2007 18:53:52 +0000 (20:53 +0200)]
netlink plugin: Removed unused code.

16 years agoChangeLog, README: Added the netlink plugin.
Florian Forster [Sat, 1 Sep 2007 13:41:22 +0000 (15:41 +0200)]
ChangeLog, README: Added the netlink plugin.

16 years agobuild system: Fix linking with the libnetlib library.
Florian Forster [Sat, 1 Sep 2007 13:41:00 +0000 (15:41 +0200)]
build system: Fix linking with the libnetlib library.

16 years agonetlink plugin: Fix several issues, including the collection of classes and filters.
Florian Forster [Sat, 1 Sep 2007 13:39:38 +0000 (15:39 +0200)]
netlink plugin: Fix several issues, including the collection of classes and filters.

When requesting qdiscs for ifindex == 0 you get the qdiscs of all interfaces.
The same doesn't work for classes and filters.
This commit changes the behavior to iterate over a list of interfaces and
request qdiscs, classes and filters for each interface seperately. The
ignorelist is checked before sending a request to avoid unnecessary requests.

Newlines have been removed from error messages.

16 years agobuild system: Correct the detection of Mac OS X.
Florian Forster [Sat, 1 Sep 2007 10:00:24 +0000 (12:00 +0200)]
build system: Correct the detection of Mac OS X.

16 years agoMerge branch 'pull/master'
Florian Forster [Sat, 1 Sep 2007 09:07:58 +0000 (11:07 +0200)]
Merge branch 'pull/master'

16 years agobuild system: Skip a lot of Mac OS X only header checks when not on Mac OS X.
Florian Forster [Sat, 1 Sep 2007 09:07:40 +0000 (11:07 +0200)]
build system: Skip a lot of Mac OS X only header checks when not on Mac OS X.

16 years agobuild system: Improve detection of the libnetlink library.
Florian Forster [Sat, 1 Sep 2007 08:57:45 +0000 (10:57 +0200)]
build system: Improve detection of the libnetlink library.

16 years agoMerge branch 'collectd-4.0'
Florian Forster [Fri, 31 Aug 2007 14:10:33 +0000 (16:10 +0200)]
Merge branch 'collectd-4.0'

16 years agocollectd.conf(5): Undo the changes of the previous merge.
Florian Forster [Fri, 31 Aug 2007 14:09:53 +0000 (16:09 +0200)]
collectd.conf(5): Undo the changes of the previous merge.

This problem doesn't exist in this version.

16 years agoMerge branch 'collectd-3.11' into collectd-4.0
Florian Forster [Fri, 31 Aug 2007 14:08:37 +0000 (16:08 +0200)]
Merge branch 'collectd-3.11' into collectd-4.0

Conflicts:

ChangeLog
configure.in

16 years agoBumped version to 3.11.6; Updated ChangeLog. collectd-3.11.6
Florian Forster [Fri, 31 Aug 2007 10:17:48 +0000 (12:17 +0200)]
Bumped version to 3.11.6; Updated ChangeLog.

16 years agonetlink plugin: Yet another fix. `if_dropped' was getting bytes..
Florian Forster [Fri, 31 Aug 2007 08:42:01 +0000 (10:42 +0200)]
netlink plugin: Yet another fix. `if_dropped' was getting bytes..

16 years agonetlink plugin: Fix the submitted values.
Florian Forster [Thu, 30 Aug 2007 21:35:39 +0000 (23:35 +0200)]
netlink plugin: Fix the submitted values.

16 years agoconfigure.in: Display wether the netlink library was found or not.
Florian Forster [Thu, 30 Aug 2007 13:42:25 +0000 (15:42 +0200)]
configure.in: Display wether the netlink library was found or not.

16 years agosrc/types.db: Added the new types introduced by the netlink plugin.
Florian Forster [Thu, 30 Aug 2007 13:42:05 +0000 (15:42 +0200)]
src/types.db: Added the new types introduced by the netlink plugin.

16 years agocollectd.conf(5): Added informatioin about the netlink plugin.
Florian Forster [Thu, 30 Aug 2007 13:41:40 +0000 (15:41 +0200)]
collectd.conf(5): Added informatioin about the netlink plugin.

src/collectd.conf.in has been updated, too.

16 years agonetlink plugin: Use the parent's classid for `filter'.
Florian Forster [Thu, 30 Aug 2007 13:40:54 +0000 (15:40 +0200)]
netlink plugin: Use the parent's classid for `filter'.

Also added the remaining statistics for `VerboseInterface'.

16 years agonetlink plugin: Added a plugin for (very) enhanced Linux traffic statistics.
Florian Forster [Wed, 29 Aug 2007 20:34:47 +0000 (22:34 +0200)]
netlink plugin: Added a plugin for (very) enhanced Linux traffic statistics.

This plugin uses the netlink sockets provided by Linux 2.2 and later to get
information about the links, qdiscs, classes, and filters in the network stack
of a Linux system. With this plugin it's possible to get some _very_ detailed
statistics.

Still to do: Update the `types.db', `collectd.conf(5)', and `configure.conf.in'.

16 years agoutils_cmd_putval.c: Fixed a copy&paste error.
Sebastian Harl [Tue, 28 Aug 2007 17:05:19 +0000 (19:05 +0200)]
utils_cmd_putval.c: Fixed a copy&paste error.

"unixsock plugin" is supposed to be "cmd putval".

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
16 years agosrc/Makefile.am: Added utils_cmd_putval to exec_la_SOURCES.
Sebastian Harl [Tue, 28 Aug 2007 17:04:53 +0000 (19:04 +0200)]
src/Makefile.am: Added utils_cmd_putval to exec_la_SOURCES.

Without this, utils_cmd_putval will not be linked into the exec plugin and the
"handle_putval" symbol will not be available at runtime.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
16 years agoexec plugin: Fixed a "control reaches end of non-void function" warning.
Sebastian Harl [Tue, 28 Aug 2007 17:04:19 +0000 (19:04 +0200)]
exec plugin: Fixed a "control reaches end of non-void function" warning.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
16 years ago[PATCH 2/2] collectd.conf.pod: Documented the exec plugin's group support.
Sebastian Harl [Tue, 28 Aug 2007 16:56:22 +0000 (18:56 +0200)]
[PATCH 2/2] collectd.conf.pod: Documented the exec plugin's group support.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
16 years ago[PATCH 1/2] exec plugin: Added support to specify a group as well.
Sebastian Harl [Tue, 28 Aug 2007 16:54:53 +0000 (18:54 +0200)]
[PATCH 1/2] exec plugin: Added support to specify a group as well.

Now, the user and group as which the process should be executed can be
specified as the first argument to the "Exec" config option. The syntax is
identical to the one used by GNU's chown(1).

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
16 years agoMerge branch 'collectd-4.0'
Florian Forster [Tue, 28 Aug 2007 22:02:21 +0000 (00:02 +0200)]
Merge branch 'collectd-4.0'

Conflicts:

ChangeLog
configure.in
src/Makefile.am
src/collectd-unixsock.pod
src/mysql.c
src/nut.c

16 years agoChangeLog: Added a short note about the fix in the processes plugin. collectd-4.0.7
Florian Forster [Tue, 28 Aug 2007 13:23:48 +0000 (15:23 +0200)]
ChangeLog: Added a short note about the fix in the processes plugin.

16 years agomysql plugin: Use a different define to determine if the read functionality should...
Florian Forster [Tue, 28 Aug 2007 13:18:27 +0000 (15:18 +0200)]
mysql plugin: Use a different define to determine if the read functionality should be enabled.

16 years agocollectd.conf(5): Added a note about that trailing whitespace bug.
Florian Forster [Mon, 27 Aug 2007 15:02:04 +0000 (17:02 +0200)]
collectd.conf(5): Added a note about that trailing whitespace bug.

16 years agoBumped version to 4.0.7; Updated ChangeLog.
Florian Forster [Sun, 26 Aug 2007 17:40:19 +0000 (19:40 +0200)]
Bumped version to 4.0.7; Updated ChangeLog.

16 years agoMerge branch 'collectd-3.11' into collectd-4.0
Florian Forster [Sun, 26 Aug 2007 17:07:46 +0000 (19:07 +0200)]
Merge branch 'collectd-3.11' into collectd-4.0

16 years agoprocesses plugin: Fix a possible segfault.
Florian Forster [Sun, 26 Aug 2007 17:07:10 +0000 (19:07 +0200)]
processes plugin: Fix a possible segfault.

16 years agobuild system: Several fixes for libcurl, libmysql, and libupsclient.
Florian Forster [Sun, 26 Aug 2007 13:14:36 +0000 (15:14 +0200)]
build system: Several fixes for libcurl, libmysql, and libupsclient.

libcurl:      Check for CFLAGS using `curl-config --cflags' and use these
      CFLAGS when checking for <curl/curl.h> to allow for weird
      locations of the library.
libmysql:     Cleaned up the checking code.
libupsclient: Check if the header file provides `UPSCONN' or `UPSCONN_t' and
      use the one available. This should fix compile issues with with
      the nut plugin.

16 years agobuild system: Use the libs provided by `mysql_config' to check for the lib itself.
Florian Forster [Fri, 24 Aug 2007 11:57:19 +0000 (13:57 +0200)]
build system: Use the libs provided by `mysql_config' to check for the lib itself.

16 years agoMerge branch 'pull/collectd-4.0' into collectd-4.0
Florian Forster [Fri, 24 Aug 2007 10:12:40 +0000 (12:12 +0200)]
Merge branch 'pull/collectd-4.0' into collectd-4.0

16 years agobuild system: Use `mysql_config' to find the appropriate flags for MySQL.
Florian Forster [Fri, 24 Aug 2007 10:12:23 +0000 (12:12 +0200)]
build system: Use `mysql_config' to find the appropriate flags for MySQL.

16 years agoMerge branch 'pull/master'
Florian Forster [Thu, 23 Aug 2007 06:05:56 +0000 (08:05 +0200)]
Merge branch 'pull/master'

16 years agoexec and unixsock plugin: Move the shared `PUTVAL' code into src/utils_cmd_putval...
Florian Forster [Thu, 23 Aug 2007 06:05:09 +0000 (08:05 +0200)]
exec and unixsock plugin: Move the shared `PUTVAL' code into src/utils_cmd_putval.[ch].

The putval code itself has been extended to allow `options' which can currently
be used to set the interval of the value-list(s) being submitted. Also,
submiting multiple value-lists in one command has been implemented. The
manpages should be up to date.

16 years agocontrib/collectd2html.pl: Don't invoke the Perl interpreter with `-w'.
Florian Forster [Wed, 22 Aug 2007 15:22:35 +0000 (17:22 +0200)]
contrib/collectd2html.pl: Don't invoke the Perl interpreter with `-w'.

16 years agocontrib/collectd2html.pl: Allow generation of graphs from remote hosts or in an alter...
Eddy Petrișor [Wed, 22 Aug 2007 15:15:34 +0000 (17:15 +0200)]
contrib/collectd2html.pl: Allow generation of graphs from remote hosts or in an alternative directory.

In the contribs area of the package there is a nice collectd2html.pl script
which assumes that the data is present in /var/lib/collectd and infers the
hostname. All fine and dandy, but there is no way to override this. This is
useful if one generates the data on a machine, but generates the graphs on
another one.

With the attached patch now is possible to specify a different host and/or a
different directory for the data.

The added options are '--host-is' and '--data-dir'.

An invocation for a remote host whose rrd files have been placed in
/var/tmp/collectd-remoteh looks like:
 collectd2html.pl --host-is=remoteh --data-dir=/var/tmp/collectd-remoteh

16 years agoMerge branch 'pull/collectd-4.0' into collectd-4.0
Florian Forster [Wed, 22 Aug 2007 14:37:29 +0000 (16:37 +0200)]
Merge branch 'pull/collectd-4.0' into collectd-4.0

16 years agoMerge branch 'sh/master'
Florian Forster [Wed, 22 Aug 2007 14:36:10 +0000 (16:36 +0200)]
Merge branch 'sh/master'

Conflicts:

configure.in

16 years agocontrib/README: Updated information about collection.cgi.
Sebastian Harl [Thu, 9 Aug 2007 21:12:54 +0000 (23:12 +0200)]
contrib/README: Updated information about collection.cgi.

The list of required Perl modules has been updated and some instructions
how to install the script have been added. Also a note about the config
file required since version 4 has been added.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoconfigure.in: Generate version dynamically using version-gen.sh.
Sebastian Harl [Thu, 26 Jul 2007 16:13:18 +0000 (18:13 +0200)]
configure.in: Generate version dynamically using version-gen.sh.

This dynamically creates the version string when the configure script is
created. If run from within a repository the output of "git describe" is
used to create the version string. Else it defaults to a hardcoded value
which should be something like "$latest_version.git".

The idea is to update the default version to the new version (without
".git" appended) as the last commit of a release cycle. This commit is
tagged as the new version. The next commit after the release will set the
default version to "$new_version.git".

The benefit is that a pre-release with a quite well defined and unique
version can be easily created at any time.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoFixed some typos in the manpages.
Sebastian Harl [Thu, 9 Aug 2007 21:11:50 +0000 (23:11 +0200)]
Fixed some typos in the manpages.

The adjective "performant" does not seem to exist (neither in English nor
in German). I've replaced it with "efficient".

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoREADME, contrib/README: Fixed some typos.
Sebastian Harl [Thu, 9 Aug 2007 21:11:03 +0000 (23:11 +0200)]
README, contrib/README: Fixed some typos.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agonetwork plugin: Allow port arguments to be numeric.
Florian Forster [Sun, 19 Aug 2007 15:19:12 +0000 (17:19 +0200)]
network plugin: Allow port arguments to be numeric.

16 years agoREADME: Added a pointer to the mailinglist.
Florian Forster [Sun, 19 Aug 2007 15:14:14 +0000 (17:14 +0200)]
README: Added a pointer to the mailinglist.

16 years agoMerge branch 'pull/collectd-4.0'
Florian Forster [Wed, 8 Aug 2007 19:43:08 +0000 (21:43 +0200)]
Merge branch 'pull/collectd-4.0'

16 years agocontrib/fedora/collectd.spec: Updated for 4.0.6.
Kjell Randa [Sun, 5 Aug 2007 21:39:09 +0000 (23:39 +0200)]
contrib/fedora/collectd.spec: Updated for 4.0.6.

Hi,

Here is an updated version of the F7 rpm spec file.
It now handles updates as well (rpm -U).

When new versions of collectd are out please bump the version tag at the top of
the spec file.
It will then build correct version of collectd.

Regards
Kjell Randa

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agocollectd(1): Fix typo.
Michael Renzmann [Sat, 4 Aug 2007 10:22:54 +0000 (12:22 +0200)]
collectd(1): Fix typo.

16 years agoMerge branch 'pull/master'
Florian Forster [Fri, 3 Aug 2007 08:56:17 +0000 (10:56 +0200)]
Merge branch 'pull/master'

16 years agoMerge branch 'collectd-4.0'
Florian Forster [Fri, 3 Aug 2007 08:55:03 +0000 (10:55 +0200)]
Merge branch 'collectd-4.0'

Conflicts:

ChangeLog

16 years agoBumped version to 4.0.6; Updated ChangeLog. collectd-4.0.6
Florian Forster [Fri, 3 Aug 2007 08:09:47 +0000 (10:09 +0200)]
Bumped version to 4.0.6; Updated ChangeLog.

16 years agoUpdated .gitignore.
Sebastian Harl [Thu, 26 Jul 2007 16:12:01 +0000 (18:12 +0200)]
Updated .gitignore.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoMerge branch 'pull/collectd-4.0' into collectd-4.0
Florian Forster [Tue, 31 Jul 2007 07:29:46 +0000 (09:29 +0200)]
Merge branch 'pull/collectd-4.0' into collectd-4.0

16 years agosrc/collectd.conf.in: Added the `SocketFile' option for the email plugin.
Florian Forster [Tue, 31 Jul 2007 07:29:19 +0000 (09:29 +0200)]
src/collectd.conf.in: Added the `SocketFile' option for the email plugin.

16 years agoFixed Fedora specfile for Fedora 7 and collectd 4.0.5
Kjell Randa [Tue, 31 Jul 2007 07:28:38 +0000 (09:28 +0200)]
Fixed Fedora specfile for Fedora 7 and collectd 4.0.5

Hi,

Here is a working spec file for Fedora 7.
Copy the tar.gz file to /usr/src/redhat/SOURCES and run
  rpmbuild -ba collectd.spec
It has only been tested on  x86_64, but I well see if I can find time to test
on x86 as well.

Upgrade not tested.

The file /etc/collection.conf referenced in collection.cgi is missing in the
tar file and not installed by the spec file.

Regards
Kjell Randa

16 years agosyslog plugin: Call `openlog' right when the plugin is loaded.
Florian Forster [Mon, 30 Jul 2007 20:43:26 +0000 (22:43 +0200)]
syslog plugin: Call `openlog' right when the plugin is loaded.

16 years agosensors plugin: Fix the use of the ignorelist, so it matches the documentation.
Florian Forster [Mon, 30 Jul 2007 18:15:31 +0000 (20:15 +0200)]
sensors plugin: Fix the use of the ignorelist, so it matches the documentation.

16 years agoChangeLog: A first draft of the changes that were made for 4.1.
Florian Forster [Mon, 30 Jul 2007 17:38:36 +0000 (19:38 +0200)]
ChangeLog: A first draft of the changes that were made for 4.1.

16 years agoconfigure.in: Use the custom CFLAGS and LDFLAGS when testing for the upsclient library.
Bruno Prémont [Tue, 10 Jul 2007 21:30:57 +0000 (23:30 +0200)]
configure.in: Use the custom CFLAGS and LDFLAGS when testing for the upsclient library.

16 years agoAdded a sample collection.conf to contrib/.
Sebastian Harl [Mon, 9 Jul 2007 14:25:02 +0000 (16:25 +0200)]
Added a sample collection.conf to contrib/.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoChanged the test for the `libupsclient' to it uses `libupsclient-config'.
Florian Forster [Tue, 10 Jul 2007 13:53:29 +0000 (15:53 +0200)]
Changed the test for the `libupsclient' to it uses `libupsclient-config'.

Apparently it's linked against libssl on some systems, so getting the LDFLAGS
right is important.

16 years agoMerge branch 'collectd-4.0'
Florian Forster [Thu, 5 Jul 2007 20:16:17 +0000 (22:16 +0200)]
Merge branch 'collectd-4.0'

Conflicts:

configure.in

16 years agoBumped version to 4.0.5; Updated ChangeLog. collectd-4.0.5
Florian Forster [Thu, 5 Jul 2007 20:02:48 +0000 (22:02 +0200)]
Bumped version to 4.0.5; Updated ChangeLog.

16 years agocollectd-nagios: Display performance data and generally be more verbose.
Florian Forster [Wed, 4 Jul 2007 21:06:24 +0000 (23:06 +0200)]
collectd-nagios: Display performance data and generally be more verbose.

16 years agosrc/collectd.conf.in: s/_MODULE_/_PLUGIN_/g
Florian Forster [Wed, 4 Jul 2007 21:05:37 +0000 (23:05 +0200)]
src/collectd.conf.in: s/_MODULE_/_PLUGIN_/g

16 years agoMerge branch 'pull/master'
Florian Forster [Mon, 2 Jul 2007 14:00:23 +0000 (16:00 +0200)]
Merge branch 'pull/master'

Conflicts:

src/memory.c

16 years agomemory plugin: Check for `HAVE_HOST_STATISTICS' rather than `HOST_VM_INFO'.
Florian Forster [Mon, 2 Jul 2007 13:59:21 +0000 (15:59 +0200)]
memory plugin: Check for `HAVE_HOST_STATISTICS' rather than `HOST_VM_INFO'.

16 years agoRemoved the `XXX_HAVE_READ' defines from all plugins.
Florian Forster [Mon, 2 Jul 2007 13:46:31 +0000 (15:46 +0200)]
Removed the `XXX_HAVE_READ' defines from all plugins.

16 years agocollectd-nagios(1): Fix typo.
Florian Forster [Mon, 2 Jul 2007 09:59:46 +0000 (11:59 +0200)]
collectd-nagios(1): Fix typo.

16 years agobuild system: Do dependency checking in the configure script.
Florian Forster [Sun, 1 Jul 2007 15:28:26 +0000 (17:28 +0200)]
build system: Do dependency checking in the configure script.

The plan is to remove the dependency defines from the plugins and do all that
in the configure script from now on.

16 years agodns plugin: Added support for the old bind-interface.
Florian Forster [Sun, 1 Jul 2007 07:50:43 +0000 (09:50 +0200)]
dns plugin: Added support for the old bind-interface.

Apparently it is still in use, even in new distributions:
-- 8< --
 bsbuild>uname -a
 OpenBSD bsbuild 4.1 GENERIC#1435 i386
 bsbuild>/usr/sbin/named -v
 BIND 9.3.4
-- >8 --

16 years agosrc/common.c: Allow the `pwbufp' argument to `getpwnam_r' to be NULL.
Florian Forster [Sun, 1 Jul 2007 06:53:18 +0000 (08:53 +0200)]
src/common.c: Allow the `pwbufp' argument to `getpwnam_r' to be NULL.

16 years agoImpelemt an own version of `getpwnam_r'.
Florian Forster [Sat, 30 Jun 2007 21:22:41 +0000 (23:22 +0200)]
Impelemt an own version of `getpwnam_r'.

Since OpenBSD doesn't provide a threadsafe version itself, we need to provide
it in this case.. :/

16 years ago{hddtemp,mbmon,ntpd} plugins: Only use the `AI_ADDRCONFIG' if it's defined.
Florian Forster [Sat, 30 Jun 2007 15:01:04 +0000 (17:01 +0200)]
{hddtemp,mbmon,ntpd} plugins: Only use the `AI_ADDRCONFIG' if it's defined.

16 years agoconfigure.in: Include `sys/types.h' and `sys/param.h' before other `sys/*.h' includes.
Florian Forster [Sat, 30 Jun 2007 14:04:26 +0000 (16:04 +0200)]
configure.in: Include `sys/types.h' and `sys/param.h' before other `sys/*.h' includes.

This fixes build problems under OpenBSD.

16 years agoMerge branch 'collectd-4.0'
Florian Forster [Sun, 24 Jun 2007 20:42:09 +0000 (22:42 +0200)]
Merge branch 'collectd-4.0'

16 years agoBumped version to 4.0.4; Updated ChangeLog. collectd-4.0.4
Florian Forster [Sun, 24 Jun 2007 20:41:17 +0000 (22:41 +0200)]
Bumped version to 4.0.4; Updated ChangeLog.

16 years agosrc/collectd-nagios.c: Copy the NAN-defines from `collectd.h'.
Florian Forster [Sun, 24 Jun 2007 20:40:36 +0000 (22:40 +0200)]
src/collectd-nagios.c: Copy the NAN-defines from `collectd.h'.

This should fix the bug reported by Daniel Leite.

16 years agosnmp plugin: Use several reading threads to parallelize the reading of SNMP hosts.
Florian Forster [Sat, 23 Jun 2007 17:45:27 +0000 (19:45 +0200)]
snmp plugin: Use several reading threads to parallelize the reading of SNMP hosts.

16 years agosnmp plugin: Use the `snmp_sess_*' interface.
Florian Forster [Sat, 23 Jun 2007 09:48:18 +0000 (11:48 +0200)]
snmp plugin: Use the `snmp_sess_*' interface.

Apparently that's thread safe..

16 years agodns plugin: Check for `net/ppp_defs.h' and include it before `net/if_ppp.h' if it...
Florian Forster [Sat, 23 Jun 2007 07:02:13 +0000 (09:02 +0200)]
dns plugin: Check for `net/ppp_defs.h' and include it before `net/if_ppp.h' if it exists.

This hopefully solves build problems under OpenBSD.

16 years agosnmp plugin: Many important bugfixes.
Florian Forster [Thu, 21 Jun 2007 17:50:03 +0000 (19:50 +0200)]
snmp plugin: Many important bugfixes.

It workes a lot better now :)

16 years agomemory plugin: Fix a typo in the Solaris code.
Daniel Leite [Thu, 21 Jun 2007 08:45:18 +0000 (10:45 +0200)]
memory plugin: Fix a typo in the Solaris code.

16 years agoliboconfig: Added `%option noyywrap' to the scanner.
Florian Forster [Thu, 21 Jun 2007 08:40:49 +0000 (10:40 +0200)]
liboconfig: Added `%option noyywrap' to the scanner.

This should solve the link issues when collectd is built without flex being
installed.

16 years agoload plugin: Fix the Linux code that reads `/proc/loadavg'.
Florian Forster [Thu, 21 Jun 2007 08:39:39 +0000 (10:39 +0200)]
load plugin: Fix the Linux code that reads `/proc/loadavg'.

16 years agocpu, interface plugin: Fix compilation issues under Solaris.
Daniel Leite [Thu, 21 Jun 2007 08:38:24 +0000 (10:38 +0200)]
cpu, interface plugin: Fix compilation issues under Solaris.

16 years agoMerge branch 'collectd-4.0'
Florian Forster [Tue, 19 Jun 2007 19:43:42 +0000 (21:43 +0200)]
Merge branch 'collectd-4.0'

16 years agoBumped version to 4.0.3. collectd-4.0.3
Florian Forster [Tue, 19 Jun 2007 19:31:07 +0000 (21:31 +0200)]
Bumped version to 4.0.3.