Code

collectd.git
16 years agoMerge branch 'ff/tail'
Florian Forster [Sun, 24 Feb 2008 14:43:14 +0000 (15:43 +0100)]
Merge branch 'ff/tail'

16 years agosrc/types_list.c: Removed annoying debug messages.
Florian Forster [Sun, 24 Feb 2008 14:43:07 +0000 (15:43 +0100)]
src/types_list.c: Removed annoying debug messages.

16 years agosrc/utils_match.c: Added a debug message to print the received regex.
Florian Forster [Sun, 24 Feb 2008 14:41:33 +0000 (15:41 +0100)]
src/utils_match.c: Added a debug message to print the received regex.

Escapes in the configfile made it interesting what string actually arrives at
the plugin.

16 years agosrc/utils_tail_match.c: Submit NAN if type if gauge and no values were matched.
Florian Forster [Sun, 24 Feb 2008 14:40:30 +0000 (15:40 +0100)]
src/utils_tail_match.c: Submit NAN if type if gauge and no values were matched.

16 years agotail plugin: Fix a typo in the name of the config keys.
Florian Forster [Sun, 24 Feb 2008 14:23:32 +0000 (15:23 +0100)]
tail plugin: Fix a typo in the name of the config keys.

16 years agotail plugin: Add a plugin to tail and parse logfiles.
Florian Forster [Sun, 24 Feb 2008 11:11:36 +0000 (12:11 +0100)]
tail plugin: Add a plugin to tail and parse logfiles.

16 years agoRenamed: src/utils_logtail.[ch] -> src/utils_tail_match.[ch]
Florian Forster [Sun, 24 Feb 2008 08:48:35 +0000 (09:48 +0100)]
Renamed: src/utils_logtail.[ch] -> src/utils_tail_match.[ch]

16 years agosrc/utils_match.[ch]: Improved the handling of gauge values.
Florian Forster [Sat, 23 Feb 2008 18:51:59 +0000 (19:51 +0100)]
src/utils_match.[ch]: Improved the handling of gauge values.

They can not use the consolidation functions `AVERAGE', `MIN', `MAX' and `LAST'
just as you know them from RRDTool.

16 years agoMerge branch 'ff/tail'
Florian Forster [Sat, 23 Feb 2008 18:27:12 +0000 (19:27 +0100)]
Merge branch 'ff/tail'

16 years agosrc/utils_match.c: Actually set `ds_type' in the object.
Florian Forster [Sat, 23 Feb 2008 18:26:28 +0000 (19:26 +0100)]
src/utils_match.c: Actually set `ds_type' in the object.

Also use the sub-match, not the overall match.

16 years agosrc/utils_logtail.c: Added another error message.
Florian Forster [Sat, 23 Feb 2008 18:25:27 +0000 (19:25 +0100)]
src/utils_logtail.c: Added another error message.

16 years agosrc/utils_tail.c: Added more error messages.
Florian Forster [Sat, 23 Feb 2008 18:25:03 +0000 (19:25 +0100)]
src/utils_tail.c: Added more error messages.

16 years agosrc/utils_logtail.h: Completed the documentation.
Florian Forster [Sat, 23 Feb 2008 16:30:34 +0000 (17:30 +0100)]
src/utils_logtail.h: Completed the documentation.

16 years agosrc/utils_logtail.[ch]: Implement a module that parses logfiles using the `utils_tail...
Florian Forster [Sat, 23 Feb 2008 16:08:57 +0000 (17:08 +0100)]
src/utils_logtail.[ch]: Implement a module that parses logfiles using the `utils_tail' and `utils_match' modules.

16 years agosrc/utils_match.[ch]: Add a module to automate regular expression matching on a string.
Florian Forster [Sat, 23 Feb 2008 14:44:27 +0000 (15:44 +0100)]
src/utils_match.[ch]: Add a module to automate regular expression matching on a string.

16 years agosrc/utils_logtail.c: Code cleanups.
Florian Forster [Sat, 23 Feb 2008 12:16:44 +0000 (13:16 +0100)]
src/utils_logtail.c: Code cleanups.

Replaced the `DESTROY_INSTANCE' macro with the `destroy_instance' function.
Made the `logtail_read' easier to read.

16 years agosrc/utils_logtail.[ch]: Add a module to provide facilities for logfile tailing.
Luke Heberling [Sat, 23 Feb 2008 11:37:48 +0000 (12:37 +0100)]
src/utils_logtail.[ch]: Add a module to provide facilities for logfile tailing.

16 years agoMerge branch 'lh/tail'
Florian Forster [Sat, 23 Feb 2008 11:07:17 +0000 (12:07 +0100)]
Merge branch 'lh/tail'

16 years agosrc/utils_tail.[ch]: Streamlined error handling.
Florian Forster [Sat, 23 Feb 2008 11:05:40 +0000 (12:05 +0100)]
src/utils_tail.[ch]: Streamlined error handling.

Also the coding style has been adapted to match the one of the rest of the
daemon better.

16 years agoMerge branch 'collectd-4.2' into collectd-4.3
Florian Forster [Sat, 23 Feb 2008 09:58:09 +0000 (10:58 +0100)]
Merge branch 'collectd-4.2' into collectd-4.3

16 years agoMerge branch 'collectd-4.1' into collectd-4.2
Florian Forster [Sat, 23 Feb 2008 09:58:00 +0000 (10:58 +0100)]
Merge branch 'collectd-4.1' into collectd-4.2

16 years agoping plugin: Deactivate the plugin if (pingobj == NULL).
Florian Forster [Sat, 23 Feb 2008 09:56:37 +0000 (10:56 +0100)]
ping plugin: Deactivate the plugin if (pingobj == NULL).

If (pingobj == NULL), then the init-function will return (-1) so that the
plugin is deactivated.

16 years agosrc/collectd.c: Fix the arguments passed to an error message.
Brian Micek [Sat, 23 Feb 2008 09:51:46 +0000 (10:51 +0100)]
src/collectd.c: Fix the arguments passed to an error message.

Unfortunately the compiler doesn't check va-args, so this was unnoticed :/

16 years agoMerge branch 'collectd-4.2' of octo@verplant.org:/var/lib/git/collectd into collectd-4.2
Florian Forster [Sat, 23 Feb 2008 09:48:19 +0000 (10:48 +0100)]
Merge branch 'collectd-4.2' of octo@verplant.org:/var/lib/git/collectd into collectd-4.2

16 years agoswap plugin: Reapply a patch for Solaris.
Christophe Kalt [Sat, 23 Feb 2008 09:47:20 +0000 (10:47 +0100)]
swap plugin: Reapply a patch for Solaris.

This is a previously applied change that somehow got lost.

See http://git.verplant.org/?p=collectd.git;a=commitdiff;h=ee1113650b0b565776fc3d62162d84741e234f05
and http://git.verplant.org/?p=collectd.git;a=commitdiff;h=f68b68c5825efbd23c51531ff4e43c78a3bb2b3b

16 years agocontrib/extractDS.px: Enhanced the script to modify RRD files a bit.
Florian Forster [Fri, 22 Feb 2008 16:24:23 +0000 (17:24 +0100)]
contrib/extractDS.px: Enhanced the script to modify RRD files a bit.

It can now also change the stepsize and add an RRA.

16 years agosrc/utils_tail.[ch]: Added a generic interface for `tail'ing files.
Luke Heberling [Fri, 22 Feb 2008 16:18:30 +0000 (17:18 +0100)]
src/utils_tail.[ch]: Added a generic interface for `tail'ing files.

This will be used to parse logfiles in the near future.

16 years agoChangeLog: Removed the legacy message about Nagios integration in the exec plugin.
Florian Forster [Tue, 19 Feb 2008 18:06:13 +0000 (19:06 +0100)]
ChangeLog: Removed the legacy message about Nagios integration in the exec plugin.

16 years agoREADME: Moved "libxml2" from the "Features" section to "Prerequisites".
Sebastian Harl [Tue, 19 Feb 2008 13:22:45 +0000 (14:22 +0100)]
README: Moved "libxml2" from the "Features" section to "Prerequisites".

D'oh!

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoMerge branch 'pull/collectd-4.1' into collectd-4.1
Florian Forster [Tue, 19 Feb 2008 13:00:37 +0000 (14:00 +0100)]
Merge branch 'pull/collectd-4.1' into collectd-4.1

16 years agosrc/collectd.c: Write a more informative error message if looking up the FQDN fails.
Florian Forster [Tue, 19 Feb 2008 13:00:22 +0000 (14:00 +0100)]
src/collectd.c: Write a more informative error message if looking up the FQDN fails.

As requested by Micha Krause.

16 years agoexec plugin: Use `setgroups' to set the list of supplementary group IDs.
Florian Forster [Tue, 19 Feb 2008 12:55:32 +0000 (13:55 +0100)]
exec plugin: Use `setgroups' to set the list of supplementary group IDs.

Thanks to Peter Holik for suggesting this.

16 years agosrc/configfile.c: Fix another access of free'd memory. collectd-4.3.0
Florian Forster [Mon, 18 Feb 2008 22:11:52 +0000 (23:11 +0100)]
src/configfile.c: Fix another access of free'd memory.

This led to a crash with the default config of the Debian package.

16 years agoliboconfig: Make sure that option-strings can always be freed.
Florian Forster [Mon, 18 Feb 2008 22:10:52 +0000 (23:10 +0100)]
liboconfig: Make sure that option-strings can always be freed.

This resolved a nasty crash when including files.

16 years agoBumped version to 4.3.0; Updated ChangeLog.
Florian Forster [Mon, 18 Feb 2008 20:24:56 +0000 (21:24 +0100)]
Bumped version to 4.3.0; Updated ChangeLog.

16 years agoexec plugin: Removed the Nagios logic from the plugin.
Florian Forster [Mon, 18 Feb 2008 20:19:32 +0000 (21:19 +0100)]
exec plugin: Removed the Nagios logic from the plugin.

Instead point users to the `exec-nagios.px' script in collectd-exec(5).

16 years agomigrate-3-4.px: Do not translate the disk names used by hddtemp.
Sebastian Harl [Sun, 17 Feb 2008 19:23:46 +0000 (20:23 +0100)]
migrate-3-4.px: Do not translate the disk names used by hddtemp.

In version 4, hddtemp still uses major/minor device numbers to identify disks.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agomigrate-3-4.px: Do not translate the disk names used by hddtemp.
Sebastian Harl [Sun, 17 Feb 2008 19:23:46 +0000 (20:23 +0100)]
migrate-3-4.px: Do not translate the disk names used by hddtemp.

In version 4, hddtemp still uses major/minor device numbers to identify disks.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoMerge branch 'collectd-4.2'
Florian Forster [Mon, 18 Feb 2008 19:53:54 +0000 (20:53 +0100)]
Merge branch 'collectd-4.2'

16 years agoMerge branch 'collectd-4.1' into collectd-4.2
Florian Forster [Mon, 18 Feb 2008 19:53:44 +0000 (20:53 +0100)]
Merge branch 'collectd-4.1' into collectd-4.2

16 years agoMerge branch 'sh/hddtemp'
Florian Forster [Mon, 18 Feb 2008 19:53:32 +0000 (20:53 +0100)]
Merge branch 'sh/hddtemp'

16 years agohddtemp plugin, collectd.conf(5): Added "TranslateDevicename" config option.
Sebastian Harl [Sun, 17 Feb 2008 19:22:49 +0000 (20:22 +0100)]
hddtemp plugin, collectd.conf(5): Added "TranslateDevicename" config option.

If enabled, translate the disk names to major/minor device numbers. For
backwards compatibility this defaults to true but it it recommended to disable
it as it will probably be removed in the next major version. Any other parts
of collectd have changed in a similar way with version 4.0, so hddtemp should
do so as well.

This option is disabled in new versions of the config file.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agorrdtool plugin: Sort the list of user defined `RRATimespan's.
Florian Forster [Mon, 18 Feb 2008 19:41:38 +0000 (20:41 +0100)]
rrdtool plugin: Sort the list of user defined `RRATimespan's.

This is required by the logic calculating the RRA sized.

16 years agoMerge branch 'master' of octo@verplant.org:/var/lib/git/collectd
Florian Forster [Mon, 18 Feb 2008 17:30:10 +0000 (18:30 +0100)]
Merge branch 'master' of octo@verplant.org:/var/lib/git/collectd

16 years agoperl plugin: Do not abort while preparing the stack for a subroutine call.
Sebastian Harl [Sat, 16 Feb 2008 13:09:36 +0000 (14:09 +0100)]
perl plugin: Do not abort while preparing the stack for a subroutine call.

Else the stack would probably be left in an inconsistent case and might even
leak memory.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agocollectd.conf(5): Added a note that libvirt's RefreshInterval may be disabled.
Sebastian Harl [Sat, 16 Feb 2008 13:08:59 +0000 (14:08 +0100)]
collectd.conf(5): Added a note that libvirt's RefreshInterval may be disabled.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoREADME: Added libxml2 to the list of prerequisites.
Sebastian Harl [Sat, 16 Feb 2008 13:08:24 +0000 (14:08 +0100)]
README: Added libxml2 to the list of prerequisites.

The libvirt plugin uses this library to parse data provided by libvirt.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoREADME: Fixed a typo.
Sebastian Harl [Sat, 16 Feb 2008 13:07:47 +0000 (14:07 +0100)]
README: Fixed a typo.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoUpdated collectd.conf.in.
Sebastian Harl [Sat, 16 Feb 2008 13:07:18 +0000 (14:07 +0100)]
Updated collectd.conf.in.

 * Missing plugins and config options have been added.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agocontrib/README: Removed the section about PerlLib/.
Sebastian Harl [Sat, 16 Feb 2008 13:06:25 +0000 (14:06 +0100)]
contrib/README: Removed the section about PerlLib/.

This subdirectory no longer exists - it has been moved to bindings/perl/.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoMakefile.am: Create `$(localstatedir)/log' so the logfile plugin works out-of-the...
Florian Forster [Fri, 15 Feb 2008 07:04:47 +0000 (08:04 +0100)]
Makefile.am: Create `$(localstatedir)/log' so the logfile plugin works out-of-the-box.

And don't search for `.svn' directories anymore - they're long gone.

16 years agoexec plugin: Changed the format in which notifications are passed to the programs. collectd-4.3.0beta1
Florian Forster [Mon, 11 Feb 2008 11:47:18 +0000 (12:47 +0100)]
exec plugin: Changed the format in which notifications are passed to the programs.

Using a `Message:' header field restricts us to one-line messages, which is
probably not very farsighted.

16 years agoexec plugin: Disabled the `NagiosExec' option.
Florian Forster [Mon, 11 Feb 2008 11:35:02 +0000 (12:35 +0100)]
exec plugin: Disabled the `NagiosExec' option.

All references to this option have been removed from the manpages, too.

16 years agocollectd.conf(5), ChangeLog: Documented the new `Include' features.
Florian Forster [Mon, 11 Feb 2008 11:21:24 +0000 (12:21 +0100)]
collectd.conf(5), ChangeLog: Documented the new `Include' features.

16 years agosrc/configfile.c: Use wordexp(3) to expand shell wildcards if available.
Florian Forster [Mon, 11 Feb 2008 11:01:06 +0000 (12:01 +0100)]
src/configfile.c: Use wordexp(3) to expand shell wildcards if available.

16 years agocontrib/migrate-3-4.px: Handle `hddtemp' graphs correctly.
Florian Forster [Mon, 11 Feb 2008 10:18:58 +0000 (11:18 +0100)]
contrib/migrate-3-4.px: Handle `hddtemp' graphs correctly.

16 years agocontrib/exec-nagios.px: Added a Perl script which handles Nagios plugins.
Florian Forster [Sun, 10 Feb 2008 15:40:58 +0000 (16:40 +0100)]
contrib/exec-nagios.px: Added a Perl script which handles Nagios plugins.

It handles most of the Nagios plugin API, including multi-line output (a
Nagios 3 feature) and performance data. It's basic on purpose so that easy
stuff is possible but complex stuff is about as hard as rewriting the plugin ;)

16 years agocontrib/exec-munin.px: Fix a typo in the config handling functions.
Florian Forster [Sun, 10 Feb 2008 15:10:40 +0000 (16:10 +0100)]
contrib/exec-munin.px: Fix a typo in the config handling functions.

16 years agosrc/utils_ignorelist.c: Remove an annoying debug message.
Florian Forster [Sat, 9 Feb 2008 17:07:08 +0000 (18:07 +0100)]
src/utils_ignorelist.c: Remove an annoying debug message.

16 years agoconfigure: Fix a syntax error.
Florian Forster [Sat, 9 Feb 2008 17:06:48 +0000 (18:06 +0100)]
configure: Fix a syntax error.

16 years agoMerge branch 'master' of octo@verplant.org:/var/lib/git/collectd
Florian Forster [Sat, 9 Feb 2008 16:46:48 +0000 (17:46 +0100)]
Merge branch 'master' of octo@verplant.org:/var/lib/git/collectd

16 years agoconfigure: Correctly handle all cases when using AC_ARG_WITH().
Sebastian Harl [Tue, 5 Feb 2008 23:00:49 +0000 (00:00 +0100)]
configure: Correctly handle all cases when using AC_ARG_WITH().

In a lot of cases only "$withval" != "yes" and "no" had been handled when the
option had been given. Therefore, the option had been ignored if no argument
had been passed to the option, making --with-<option> and / or
--without-<option> a no-op. This patch fixes this issue.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agocontrib/examples/: Added an example for a notification callback.
Sebastian Harl [Tue, 5 Feb 2008 21:26:23 +0000 (22:26 +0100)]
contrib/examples/: Added an example for a notification callback.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agocollectd(1), README: Document notifications and related plugins.
Sebastian Harl [Tue, 5 Feb 2008 21:25:06 +0000 (22:25 +0100)]
collectd(1), README: Document notifications and related plugins.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agocollectdmon(1): Added a section about supported signals.
Sebastian Harl [Tue, 5 Feb 2008 09:45:42 +0000 (10:45 +0100)]
collectdmon(1): Added a section about supported signals.

Documented the effects of the SIGINT, SIGTERM and SIGHUP signals.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoREADME: Added "uuid" plugin to the list of available plugins.
Sebastian Harl [Tue, 5 Feb 2008 09:44:57 +0000 (10:44 +0100)]
README: Added "uuid" plugin to the list of available plugins.

 * Added an optional dependency on libhal.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoREADME: Updated package description.
Sebastian Harl [Tue, 5 Feb 2008 09:44:00 +0000 (10:44 +0100)]
README: Updated package description.

Added a note about the monitoring support (this has been copied from the
Debian package description).

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agosrc/configfile.c: Extend the `Include' statement to handle directories, too.
Florian Forster [Sat, 9 Feb 2008 16:44:34 +0000 (17:44 +0100)]
src/configfile.c: Extend the `Include' statement to handle directories, too.

Directories are included recursively. Files and directories begnning with a dot
are ignored. Symlinks are followed. You can crash collectd by looping the
symlinks.

16 years agoconfigure: Warn if librrd is not thread safe. collectd-4.3.0beta0
Sebastian Harl [Thu, 31 Jan 2008 21:21:41 +0000 (22:21 +0100)]
configure: Warn if librrd is not thread safe.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoplugin.c: Use an AVL tree to store the data sets.
Sebastian Harl [Tue, 29 Jan 2008 01:14:33 +0000 (02:14 +0100)]
plugin.c: Use an AVL tree to store the data sets.

The list of data sets is queried quite frequently but hardly ever modified.
Using an AVL tree instead of a linked list improves the search time from O(n)
to O(log n).

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoexec plugin: Fixed a possible (though very improbable) memory leak.
Sebastian Harl [Sun, 27 Jan 2008 22:26:41 +0000 (23:26 +0100)]
exec plugin: Fixed a possible (though very improbable) memory leak.

In case of an error, the program_list_and_notification_t pointer has not been
freed before calling pthread_exit() from exec_notification_one().

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoCollectd.pm: Use $interval_g instead of a hard-coded value.
Sebastian Harl [Tue, 29 Jan 2008 01:12:17 +0000 (02:12 +0100)]
Collectd.pm: Use $interval_g instead of a hard-coded value.

The hard-coded value was still legacy code from the time before the global
variables have been exported to Perl.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoperl.c: Unregister notifications in perl_shutdown().
Sebastian Harl [Tue, 29 Jan 2008 01:11:00 +0000 (02:11 +0100)]
perl.c: Unregister notifications in perl_shutdown().

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoperl plugin: Fixed a bug in Collectd::plugin_unregister_data_set().
Sebastian Harl [Tue, 29 Jan 2008 01:10:13 +0000 (02:10 +0100)]
perl plugin: Fixed a bug in Collectd::plugin_unregister_data_set().

The function tried to access a nonexistent second argument.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agocollectd-perl(5): Added documentation for the notification support.
Sebastian Harl [Mon, 28 Jan 2008 11:23:55 +0000 (12:23 +0100)]
collectd-perl(5): Added documentation for the notification support.

Some minor errors have been fixed as well and the ChangeLog has been updated.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoperl plugin: Exported plugin_dispatch_notification() to Perl.
Sebastian Harl [Mon, 28 Jan 2008 11:23:10 +0000 (12:23 +0100)]
perl plugin: Exported plugin_dispatch_notification() to Perl.

This adds the following function to collectd's Perl API:

Collectd::plugin_dispatch_notification:
  submit a notification to collectd's notification mechanism

  arguments:
  notif - notification

A notification is a reference to a hash with the following members:
  severity => $severity (default: NOTIF_FAILURE)
  time     => $time (default: time (NULL))
  message  => $msg
  host     => $host (default: hostname_g)
  plugin   => $plugin
  type     => $type
  plugin_instance => $instance
  type_instance   => $type_instance

The severity should be any of the Collectd::NOTIF_* constants.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoperl plugin: Added support to dispatch notifications to Perl plugins.
Sebastian Harl [Mon, 28 Jan 2008 11:20:29 +0000 (12:20 +0100)]
perl plugin: Added support to dispatch notifications to Perl plugins.

Perl plugin may now register a callback of type Collectd::TYPE_NOTIF which
accepts a single hash argument with the following members:

  severity
  time
  message
  host
  plugin
  plugin_instance
  type
  type_instance

Severity may be any of the following values (exported by the "notif" tag):

  Collectd::NOTIF_FAILURE
  Collectd::NOTIF_WARNING
  Collectd::NOTIF_OKAY

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoChangeLog: Describe changes to the perl plugin in more detail.
Sebastian Harl [Sun, 27 Jan 2008 22:04:13 +0000 (23:04 +0100)]
ChangeLog: Describe changes to the perl plugin in more detail.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoconfigure.in: Fixed handling of the --with-perl-bindings option.
Sebastian Harl [Sun, 27 Jan 2008 15:13:44 +0000 (16:13 +0100)]
configure.in: Fixed handling of the --with-perl-bindings option.

This option could not be disabled so far as this case has not been handled in
the configure script. This patch fixes this issue.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
16 years agoMerge branch 'collectd-4.2'
Florian Forster [Wed, 23 Jan 2008 19:54:10 +0000 (20:54 +0100)]
Merge branch 'collectd-4.2'

16 years agoMerge branch 'collectd-4.1' into collectd-4.2
Florian Forster [Wed, 23 Jan 2008 19:53:57 +0000 (20:53 +0100)]
Merge branch 'collectd-4.1' into collectd-4.2

16 years agonetwork plugin: Have two different threads for handling incoming packets.
Florian Forster [Wed, 23 Jan 2008 19:30:06 +0000 (20:30 +0100)]
network plugin: Have two different threads for handling incoming packets.

One that only receives and enqueues packets and one which parses the packets
and dispatches them to the daemon. This should solve problems with (too) short
socket buffers and (very) heavy load.

16 years agoCollectd::Unixsock: Added license information.
Florian Forster [Wed, 23 Jan 2008 18:28:38 +0000 (19:28 +0100)]
Collectd::Unixsock: Added license information.

The copyright information in some changed files has been updated, too.

16 years agoTODO: Removed the remark about the `libvirt' plugin.
Florian Forster [Wed, 23 Jan 2008 18:08:26 +0000 (19:08 +0100)]
TODO: Removed the remark about the `libvirt' plugin.

Now it builds flawlessly. Apparently it was some leftover file in my build tree
that caused this weird problem.

16 years agoTODO: Updated the todo file.
Florian Forster [Wed, 23 Jan 2008 17:17:01 +0000 (18:17 +0100)]
TODO: Updated the todo file.

16 years agosrc/utils_threshold.c: Implemented `warning' and `failure' thresholds.
Florian Forster [Wed, 23 Jan 2008 17:14:27 +0000 (18:14 +0100)]
src/utils_threshold.c: Implemented `warning' and `failure' thresholds.

The options `Min' and `Max' have been renamed to `FailureMin', `FailureMax',
`WarningMin', and `WarningMax'.

16 years agologfile plugin: Only print the host field (and other fields) of a notification if...
Florian Forster [Wed, 23 Jan 2008 16:32:56 +0000 (17:32 +0100)]
logfile plugin: Only print the host field (and other fields) of a notification if they hold any information.

16 years agoexec plugin: Implemented the `PUTNOTIF' command for external applications, too.
Florian Forster [Wed, 23 Jan 2008 16:07:35 +0000 (17:07 +0100)]
exec plugin: Implemented the `PUTNOTIF' command for external applications, too.

Also changed the manpage so that lines without the `PUTVAL' are mentioned as
being deprecated.

16 years agoCollectd::Unixsock: Added the `putnotif' method to dispatch notifications.
Florian Forster [Wed, 23 Jan 2008 14:48:34 +0000 (15:48 +0100)]
Collectd::Unixsock: Added the `putnotif' method to dispatch notifications.

16 years agoMerge branch 'collectd-4.2'
Florian Forster [Wed, 23 Jan 2008 13:54:54 +0000 (14:54 +0100)]
Merge branch 'collectd-4.2'

16 years agoMerge branch 'collectd-4.1' into collectd-4.2
Florian Forster [Wed, 23 Jan 2008 13:54:41 +0000 (14:54 +0100)]
Merge branch 'collectd-4.1' into collectd-4.2

16 years agocollectd-unixsock(5): Copied Sebastian's additions from collectd-exec(5).
Florian Forster [Wed, 23 Jan 2008 13:31:11 +0000 (14:31 +0100)]
collectd-unixsock(5): Copied Sebastian's additions from collectd-exec(5).

16 years agocollectd-unixsock(5): Documented the PUTNOTIF command.
Florian Forster [Wed, 23 Jan 2008 13:27:05 +0000 (14:27 +0100)]
collectd-unixsock(5): Documented the PUTNOTIF command.

16 years agoMerge branch 'collectd-4.1' of octo@verplant.org:/var/lib/git/collectd into collectd-4.1
Florian Forster [Wed, 23 Jan 2008 12:57:29 +0000 (13:57 +0100)]
Merge branch 'collectd-4.1' of octo@verplant.org:/var/lib/git/collectd into collectd-4.1

16 years agosrc/common.h: Fixed many typos in the header file.
Florian Forster [Wed, 23 Jan 2008 12:53:08 +0000 (13:53 +0100)]
src/common.h: Fixed many typos in the header file.

16 years agounixsock plugin: Imported the new `putnotif' command from the appropriate module.
Florian Forster [Wed, 23 Jan 2008 12:52:38 +0000 (13:52 +0100)]
unixsock plugin: Imported the new `putnotif' command from the appropriate module.

16 years agosrc/utils_cmd_putnotif.[ch]: Added a new module which handles parsing of notification...
Florian Forster [Wed, 23 Jan 2008 12:51:29 +0000 (13:51 +0100)]
src/utils_cmd_putnotif.[ch]: Added a new module which handles parsing of notifications from some command line or similar.

Of course, this is similar to the `utils_cmd_putval' module.

16 years agoTODO: Updated the todo file.
Florian Forster [Wed, 23 Jan 2008 12:47:53 +0000 (13:47 +0100)]
TODO: Updated the todo file.

Added the goal to remove the cache from the unixsock plugin.

16 years agosrc/liboconfig/parser.y: Updated copyright information.
Florian Forster [Wed, 23 Jan 2008 11:55:03 +0000 (12:55 +0100)]
src/liboconfig/parser.y: Updated copyright information.

16 years agosrc/{common,network}.[ch]: Updated copyright information.
Florian Forster [Wed, 23 Jan 2008 11:54:41 +0000 (12:54 +0100)]
src/{common,network}.[ch]: Updated copyright information.