collectd.conf.in: Added sample configuration for the tcpconns plugin.
tcpconns plugin: Changed the plugin to collect all TCP states, nut just `established'.
Also the contrib/collection.cgi script has been updated.
Also the contrib/collection.cgi script has been updated.
ChangeLog: Documented the changes to the perl plugin..
..a little
..a little
perl plugin: Converted to use "complex" configuration.
The parsing of the syntax tree of the "Plugin perl" section is now done in
perl_config() allowing more flexible setups like passing configuration
options to Perl plugins.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
The parsing of the syntax tree of the "Plugin perl" section is now done in
perl_config() allowing more flexible setups like passing configuration
options to Perl plugins.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
perl plugin: Added "EnableDebugger" config option.
This config option will pass control to the Perl debugger after the
interpreter has been initialized. This is exactly the same as invoking perl
with the "-d" command line switch.
Just as with perl's "-d" command line option you can supply an alternative
debugger. Pass the package name as an argument to the "EnableDebugger" option
See perldebug(1) for more details.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
This config option will pass control to the Perl debugger after the
interpreter has been initialized. This is exactly the same as invoking perl
with the "-d" command line switch.
Just as with perl's "-d" command line option you can supply an alternative
debugger. Pass the package name as an argument to the "EnableDebugger" option
See perldebug(1) for more details.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
perl plugin: Fixed an "unused variable" warning.
When compiling with debugging disabled, gcc complained about an unused
variable in init_pi(). -Werror thus caused the build to fail.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
When compiling with debugging disabled, gcc complained about an unused
variable in init_pi(). -Werror thus caused the build to fail.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
tcpconns plugin: Added a new plugin that counts the number of TCP connections to specific ports.
Merge branch 'collectd-4.1'
snmp plugin: Improve the timing method, so that hosts are queried more steadily.
rrdtool plugin: Use the right variables when calling `rrd_update'..
*argl*
*argl*
rrdtool plugin: Removed unused variables.
rrdtool plugin: Use the thread-safe `librrd_th' if available.
collectd-snmp(5): Added a note about the interpreted environment variables.
snmp plugin: Print a warning if querying a host takes longer than the confiured interval.
Makefile.am: Include version-gen.sh in a distribution as well.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
bindings/perl: Removed VERSION from all Makefile.PL's.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Sebastian Harl <sh@tokkee.org>
perl plugin: bootstrap Collectd when initializing Perl interpreter
This automatically makes all symbols available at (Perl) compile time,
thus making the API built into collectd.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
This automatically makes all symbols available at (Perl) compile time,
thus making the API built into collectd.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
perl plugin: Reimplemented plugin_{,un}register() in plain Perl.
As this involves only Perl data structures, it makes more sense to write
the algorithms in plain Perl as well. I suppose the perl interpreter can
do a better job optimizing the code :-)
Signed-off-by: Sebastian Harl <sh@tokkee.org>
As this involves only Perl data structures, it makes more sense to write
the algorithms in plain Perl as well. I suppose the perl interpreter can
do a better job optimizing the code :-)
Signed-off-by: Sebastian Harl <sh@tokkee.org>
perl plugin: Do not initialize the Perl interpreter until loading a module.
This makes further and more flexible configurations possible.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
This makes further and more flexible configurations possible.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Moved contrib/PerlLib/ to bindings/perl/.
Added bindings/Makefile.am and bindings/perl/Collectd/Makefile.PL,
bindings/perl/Makefile.PL to integrate the Perl modules into the build
system and the official distribution.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Added bindings/Makefile.am and bindings/perl/Collectd/Makefile.PL,
bindings/perl/Makefile.PL to integrate the Perl modules into the build
system and the official distribution.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
collectd-snmp(5): Documented the `InstancePrefix' option and the new `Instance' behavior.
snmp plugin: Added the `InstancePrefix' option.
snmp plugin: Changed the table code so that an `instance' is optional.
Merge branch 'pull/collectd-4.1' into collectd-4.1
Merge branch 'collectd-4.1'
Conflicts:
ChangeLog
Conflicts:
ChangeLog
Bumped version to 4.1.2; Updated ChangeLog.
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
ChangeLog
configure.in
contrib/PerlLib/Collectd.pm
Conflicts:
ChangeLog
configure.in
contrib/PerlLib/Collectd.pm
Bumped version to 4.0.9; Updated ChangeLog.
Merge branch 'collectd-3.11' into collectd-4.0
Conflicts:
ChangeLog
configure.in
src/wireless.c
Conflicts:
ChangeLog
configure.in
src/wireless.c
Bumped version to 3.11.7; Updated ChangeLog.
Merge branch 'ff/collection' into collectd-4.0
contrib/collection.cgi: Add a vertical legend to `meta_graph_memory'.
contrib/collection.cgi: Fix the `charge' and `current' graphs.
Merge branch 'pull/collectd-4.1' into collectd-4.1
17 years agocollectd.conf(5): Make it more clear that rrdtool's `StepSize' and `HeartBeat' should...
collectd.conf(5): Make it more clear that rrdtool's `StepSize' and `HeartBeat' should not be set.
This has caused some problems with users of the snmp plugin.
This has caused some problems with users of the snmp plugin.
snmp plugin: Improved the error messages in the init code.
snmp plugin: Fix a segfault when a host times out but more data should be queried.
snmp plugin: Handle `ASN_TIMETICKS' as `counter' if it's known by the SNMP library.
Merge branch 'collectd-4.1'
Merge branch 'collectd-4.0' into collectd-4.1
perl plugin: Fixed a possible buffer overflow in get_module_name().
A '\0' might have been written above the buffer array bounds.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
A '\0' might have been written above the buffer array bounds.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Merge branch 'pull/collectd-4.1' into collectd-4.1
build system: Fix detection of libraries when giving a directory.
Merge branch 'pull/collectd-4.1' into collectd-4.1
build system: Fixed the improved detection of the Net-SNMP library.
build system: Improve the detection of the Net-SNMP library.
collectd: Add the config option `Include' which includes other files.
This is done recursively so that you can have a depth of up to `n' (currently eight).
This is done recursively so that you can have a depth of up to `n' (currently eight).
netlink plugin: Don't fail if `IFLA_STATS' doesn't exist for an interface.
Hopefully this fixes problems on my WRT ;)
Hopefully this fixes problems on my WRT ;)
wireless plugin: Correct the handling of cards returning signal and noise quality as percentage.
Merge branch 'collectd-4.1'
Merge branch 'collectd-4.0' into collectd-4.1
Merge branch 'collectd-3.11' into collectd-4.0
Conflicts:
src/apcups.c
nothing added to commit but untracked files present (use "git add" to track)
Conflicts:
src/apcups.c
nothing added to commit but untracked files present (use "git add" to track)
apcups plugin: Warn about the irritating name `apcups_charge_pct'.
netlink plugin: Fix build issues under Debian Sarge
or generally older Linux versions.
or generally older Linux versions.
snmp plugin: Added the options `Scale' and `Shift' to Data-blocks..
..to correct the values returned by SNMP-agents.
..to correct the values returned by SNMP-agents.
Merge branch 'ff/apcups' into collectd-4.0
Bumped the version to 4.1.1
build system: Fix yet another issue with the detection of libupsclient.
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
ChangeLog
Conflicts:
ChangeLog
apcups plugin: Fix reporting of the `load percent' data.
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
contrib/PerlLib/Collectd.pm
nothing added to commit but untracked files present (use "git add" to track)
Conflicts:
contrib/PerlLib/Collectd.pm
nothing added to commit but untracked files present (use "git add" to track)
contrib/PerlLib/Collectd.pm: Bumbed the version to 4.0.8.
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
ChangeLog
configure.in
Conflicts:
ChangeLog
configure.in
Bumped version to 4.0.8; updated ChangeLog.
plugin.c: Print lt_dlopen() error messages to STDERR as well.
This makes sure the user will get the message on the terminal in any case.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
This makes sure the user will get the message on the terminal in any case.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Removed some legacy calls to DEBUG().
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
rrdtool plugin: Use `-b' (begin) when creating rrd-files.
When receiving data from a host that has a clock that lacks behind the servers
clock, the newly created rrd-files had a timestamp that was ten seconds in the
past from the server's point of view. If the client was, for example, 10:00
minutes late, there would therefore be 9:50 minutes of invalid data which cause
warnings, empty graphs and overall missery. This commit changes this behavior
to not use the default `begin' time but set it explicitely based on the
client's time.
When receiving data from a host that has a clock that lacks behind the servers
clock, the newly created rrd-files had a timestamp that was ten seconds in the
past from the server's point of view. If the client was, for example, 10:00
minutes late, there would therefore be 9:50 minutes of invalid data which cause
warnings, empty graphs and overall missery. This commit changes this behavior
to not use the default `begin' time but set it explicitely based on the
client's time.
Merge branch 'collectd-4.0' into collectd-4.1
ChangeLog: Documented the fix in the apcups plugin.
Merge branch 'uni/collectd-4.1' into collectd-4.1
Merge branch 'uni/collectd-4.0' into collectd-4.0
apcups plugin: Fix the types used in the plugin.
They still had an `apcups_' prefix which isn't legal anymore.
They still had an `apcups_' prefix which isn't legal anymore.
collectd: Make `mkdir' error messages more identifiable.
netlink plugin: Fix an error-message.
ChangeLog: Documented the changes since 4.1.0.
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
ChangeLog
Conflicts:
ChangeLog
ChangeLog: Fix a merge bug.
ChangeLog: Added a note about the improved `sstrerror' function.
contrib/collection.cgi: Fix a bug in the `meta_graph_generic_stack' function.
Also add a meta-graph-handler for if_[rt]x_errors.
Also add a meta-graph-handler for if_[rt]x_errors.
Merge branch 'pull/collectd-4.1' into collectd-4.1
build system: Include <adm/types.h> when checking for `libnetlink.h'.
netlink plugin: Use the defines to determine where the `libnetlink.h' is.
build system: Check for libnetlink.h in more than one directory.
And some minor cleanups..
And some minor cleanups..
build system: Some cosmetic fixes for the libupsclient.
Merge branch 'collectd-4.0' into collectd-4.1
Merge branch 'pull/collectd-4.0' into collectd-4.0
src/plugin.c: plugin_dispatch_values: Include the interval in the debugging output.
exec plugin: Set the real group, effective group, and real and effective user.
In that order. The manpage and the config template have been updated.
In that order. The manpage and the config template have been updated.
exec plugin: Call `setgid' first so argitary groups can be configured.
sstrerror: Be even more cautios with the return value of `strerror_r'..
I don't trust this GNU implementation one bit.. ;)
I don't trust this GNU implementation one bit.. ;)
contrib/collection.cgi: Display MySQL traffic as bits/s, not bytes/s.
Merge branch 'collectd-4.0' into collectd-4.1
contrib/collection.cgi: Added meta graph handlers for nfs_procedure, ps_state, swap, mysql_commands, and mysql_handler.
src/common.c: Copy the error-string to the buffer - no matter which implementation is used.
ChangeLog: Fix a typo.
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
contrib/collection.cgi
Conflicts:
contrib/collection.cgi
README: Added libnetlink, libnetsnmp and libxmms prerequisites.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
contrib/collection.cgi: Don't show all the plugins on the host's page.
Waiting for so many graphs to load is no fun. You _have_ to specify the plugins
you're interested in now.
Waiting for so many graphs to load is no fun. You _have_ to specify the plugins
you're interested in now.
contrib/collection.cgi: Quite some changes, but still incomplete and not very usable..
Merge branch 'pull/collectd-4.0' into collectd-4.0