Florian Forster | 1 Jul 2007 10:16
Favicon

Re: collectd-4.x on OpenBSD build problem

Hi Eric,

On Mon, Jun 25, 2007 at 01:11:05PM +0200, eric fauser wrote:
> if u like, i can give you an login to the build host running on
> openbsd4.1

thanks for the login :) I was able to resolve almost all problems:

>  > > utils_dns.c:700: error: `ns_t_a' undeclared (first use in this
>  > > function)
> 
> it looks like the same problem as above; openbsd does not have `enum 
> ns_type' in namser.h
> it has an old structure like `T_foo` and only a few return_codes (rcode_str)

Apparently the <arpa/nameser.h> file is somehow connected with BIND.
There's a define that tells you about the `interface' that's implemented
in the header file. On my workstation that's
  #define __NAMESER 19991006
which is accompanied by arpa/nameser_compat.h, which defines the
``(DEAD) interface version stamp.''
  #define __BIND 19950621

On your OpenBSD 4.1 box the version is defined as
  #define __BIND 19960801

By the way: The version of Bind is 9.3.4 on both hosts, so this isn't
related.

Based on these versions I've written a version of src/utils_dns.c which
(Continue reading)

Florian Forster | 5 Jul 2007 22:30
Favicon

Version 4.0.5 available

Hi everybody,

I've fixed some build issues under OpenBSD (thanks to Eric for providing
me with a test account, it was very useful :), so all plugins (except
the Perl plugin) will build now.

If you've had trouble building collectd on some platform this release
may be worth a look.

Regards,
-octo
--

-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
Sebastian Harl | 9 Jul 2007 16:25
Gravatar

[PATCH] Added a sample collection.conf to contrib/.


Signed-off-by: Sebastian Harl <sh@...>
---
 contrib/collection.conf |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
 create mode 100644 contrib/collection.conf

diff --git a/contrib/collection.conf b/contrib/collection.conf
new file mode 100644
index 0000000..e8444f5
--- /dev/null
+++ b/contrib/collection.conf
 <at>  <at>  -0,0 +1,3  <at>  <at> 
+datadir: "/opt/collectd/var/lib/collectd/rrd/"
+libdir: "/opt/collectd/lib/collectd/"
+
--

-- 
1.5.2.1

Sebastian Harl | 15 Jul 2007 16:43
Gravatar

[PATCH] parser.y: Allow an argument list to be empty.

This allows you to specify options without any or optional arguments in the
config file. This is quite useful to e.g. implement "flag" options to change
program behavior in just one way where the opposite way does not make sense or
is not possible at all.

Signed-off-by: Sebastian Harl <sh@...>
---
 src/parser.y |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/parser.y b/src/parser.y
index ea6ed0a..a5fcfce 100644
--- a/src/parser.y
+++ b/src/parser.y
 <at>  <at>  -91,6 +91,13  <at>  <at>  argument_list:
 	 $$.argument[0] = $1;
 	 $$.argument_num = 1;
 	}
+	| /* epsilon */
+	{
+	 $$.argument = malloc (sizeof (oconfig_value_t));
+	 $$.argument[0].value.string = NULL;
+	 $$.argument[0].type = OCONFIG_TYPE_STRING;
+	 $$.argument_num = 1;
+	}
 	;

 identifier:
--

-- 
1.5.1.4
(Continue reading)

Kjell Randa | 24 Jul 2007 09:59
Picon

Collectd 4.0.5 spec file working on Fedora 7

Hi,

Here is a spec file that seems to be working on Fedora 7 for collectd 4.0.5
Only trivial changes to get it working.

Regards
Kjell Randa

Attachment (collectd.spec): text/x-rpm-spec, 8 KiB
Kjell Randa | 25 Jul 2007 00:10
Picon

Collectd 4.0.5 Fedora 7 spec file

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

Attachment (collectd.spec): text/x-rpm-spec, 11 KiB
Sebastian Harl | 26 Jul 2007 18:12
Gravatar

[PATCH] Updated .gitignore.


Signed-off-by: Sebastian Harl <sh@...>
---
 .gitignore |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/.gitignore b/.gitignore
index 5029e96..855e36b 100644
--- a/.gitignore
+++ b/.gitignore
 <at>  <at>  -32,6 +32,7  <at>  <at>  config.status
 libtool
 src/.deps
 src/Makefile
+src/collectd.conf
 src/config.h
 src/libconfig/Makefile
 src/liboping/Makefile
 <at>  <at>  -43,16 +44,22  <at>  <at>  src/*.la
 src/*.lo
 src/*.o
 src/collectd
-src/collectd.1
-src/collectd.conf.5
+src/collectd*.1
+src/collectd*.5
 src/config.h.in~
-src/libconfig/.libs
-src/libconfig/*.la
-src/libconfig/*.lo
(Continue reading)

Sebastian Harl | 26 Jul 2007 18:13
Gravatar

[PATCH] 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@...>
---
 configure.in   |    2 +-
 version-gen.sh |   14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)
 create mode 100755 version-gen.sh

diff --git a/configure.in b/configure.in
index 5b3a54a..735ea74 100644
--- a/configure.in
+++ b/configure.in
 <at>  <at>  -1,5 +1,5  <at>  <at> 
 dnl Process this file with autoconf to produce a configure script.
-AC_INIT(collectd, 4.0.5)
+AC_INIT(collectd, m4_esyscmd(./version-gen.sh))
 AC_CONFIG_SRCDIR(src/collectd.c)
 AC_CONFIG_HEADERS(src/config.h)
(Continue reading)

Richard Shade | 26 Jul 2007 22:51
Gravatar

Collectd 3.11.5 Questions Apache Plugin, MySQL Plugin

I am having a problem with the Apache and MySQL plugins. First Question is the collectd.conf read in sequence, Do I have to have the load plugins at the beginning or will it work anywhere in the file. Secondly, Is there a place it logs, I need to see why it's not making the apache directory. Third, I am getting this error from the mysql plugin: Jul 26 16:43:41 domU-12-31-35-00-06-44 collectd[26479]: Plugin `mysql' doesn't provide a read function. Can you guys give me a hand?


--
Thanks,

Richard Shade
RightScale
http://www.rightscale.com/

rastislav piater | 25 Jul 2007 17:22

HELP: disk plugin not works on 2.4.x kernel

Hi,

I need help:
I try complile collectd 4.0.5 on more machines with 2.4.x kernel,  but
still same. All plugins are ok, but DISK plugin not work.
I  compile it with debug, but I don't see where could be problem.

Please help me.

Thanks,
Rasto.


Gmane