Dieter Bloms | 1 Feb 2007 13:56
Picon
Favicon

how to change the order of the collection when viewing in browser ?

Hi,

I want to change the order when viewing the results in a browser like:

cpu usage
load usage
hddtemp
traffic

is it possible to do it ?

--

-- 
Gruß

  Dieter

--
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
From field.
Sebastian Harl | 1 Feb 2007 15:53
Gravatar

[PATCH] collection.cgi: Made sorting of graphs configurable.

On Thu, Feb 01, 2007 at 01:56:41PM +0100, Dieter Bloms wrote:
> I want to change the order when viewing the results in a browser like:
> 
> cpu usage
> load usage
> hddtemp
> traffic
> 
> is it possible to do it ?

Please try the attached patch. Simply set the value of  <at> plugins to the list of
plugins you want to display.
(e.g. " <at> plugins = (qw( cpu load hddtemp traffic ))")

Signed-off-by: Sebastian Harl <sh@...>
---
 contrib/collection.cgi |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/contrib/collection.cgi b/contrib/collection.cgi
index 5c8bd4d..559fa5d 100755
--- a/contrib/collection.cgi
+++ b/contrib/collection.cgi
 <at>  <at>  -12,6 +12,10  <at>  <at>  use Carp (qw(carp cluck confess croak));

 our $Config = read_config ();

+# if this array contains any elements, only plugins listed therein are
+# displayed in the given order
+my  <at> plugins = ();
(Continue reading)

Dieter Bloms | 1 Feb 2007 16:52
Picon
Favicon

Re: [PATCH] collection.cgi: Made sorting of graphs configurable.

Hi,

it works for plugins with no extra directory, but plugins with
directories like mysql, apache ... are listed on the top.

On Thu, Feb 01, Sebastian Harl wrote:

> On Thu, Feb 01, 2007 at 01:56:41PM +0100, Dieter Bloms wrote:
> > I want to change the order when viewing the results in a browser like:
> > 
> > cpu usage
> > load usage
> > hddtemp
> > traffic
> > 
> > is it possible to do it ?
> 
> Please try the attached patch. Simply set the value of  <at> plugins to the list of
> plugins you want to display.
> (e.g. " <at> plugins = (qw( cpu load hddtemp traffic ))")
> 
> Signed-off-by: Sebastian Harl <sh@...>
> ---
>  contrib/collection.cgi |   17 ++++++++++++++++-
>  1 files changed, 16 insertions(+), 1 deletions(-)
> 
> diff --git a/contrib/collection.cgi b/contrib/collection.cgi
> index 5c8bd4d..559fa5d 100755
> --- a/contrib/collection.cgi
> +++ b/contrib/collection.cgi
(Continue reading)

Sebastian Harl | 5 Feb 2007 22:42
Gravatar

[PATCH] processes.c, utils_dns.c: Fix compile errors on GNU/kFreeBSD.


Signed-off-by: Sebastian Harl <sh@...>
---
 src/processes.c |    8 +++++++-
 src/utils_dns.c |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/processes.c b/src/processes.c
index c8f3016..6898445 100644
--- a/src/processes.c
+++ b/src/processes.c
 <at>  <at>  -144,12 +144,14  <at>  <at>  static char *ps_pagefaults_ds_def[] =
 };
 static int ps_pagefaults_ds_num = 2;

+#if HAVE_THREAD_INFO | KERNEL_LINUX
 static char *config_keys[] =
 {
 	"Process",
 	NULL
 };
 static int config_keys_num = 1;
+#endif

 typedef struct procstat_entry_s
 {
 <at>  <at>  -192,7 +194,9  <at>  <at>  typedef struct procstat
 	struct procstat_entry_s *instances;
 } procstat_t;

(Continue reading)

Daniel Leite | 9 Feb 2007 16:34
Picon
Favicon

no df statistics

Hi

	Sorry if this is a duplicate email, but i wasnt still
subscribed to the list when i sent the email...

	i just installed collectd in several solaris machines and make
then log to a remote collectd server...

	all works fine, except the partitions space statistics (df)
	a local linux machine is logging to the server and i get the
partitions usage, but from the solaris i get no info about this.

	is there any problem with df in solaris?

	i have the df plugin and i load it in the config

$ ls -l /opt/collectd/lib/collectd/d*
-rwxr-xr-x   1 root root     790 Feb  9 10:32 /opt/collectd/lib/collectd/df.la 
-rwxr-xr-x   1 root root   14480 Feb  9 10:32 /opt/collectd/lib/collectd/df.so
-rwxr-xr-x   1 root root     802 Feb  9 10:32 /opt/collectd/lib/collectd/disk.la
-rwxr-xr-x   1 root root   13444 Feb  9 10:32 /opt/collectd/lib/collectd/disk.so

$ cat /opt/collectd/etc/collectd.conf |grep df
LoadPlugin df

	there is no space after the df...

	so any help would be most helpfull

thanks
(Continue reading)

Florian Forster | 9 Feb 2007 17:53
Favicon

Re: no df statistics

Hi Daniel,

On Fri, Feb 09, 2007 at 03:34:43PM +0000, Daniel Leite wrote:
> Sorry if this is a duplicate email, but i wasnt still subscribed to
> the list when i sent the email...

don't worry about it; I get the moderation requests once a day, so I'll
simply skip over this message tonight ;)

> i just installed collectd in several solaris machines and make then
> log to a remote collectd server...
> 
> all works fine, except the partitions space statistics (df) a local
> linux machine is logging to the server and i get the partitions usage,
> but from the solaris i get no info about this.

That was a dumb bug in the utility code that gets a list of mounted
filesystems from the kernel. That part is a bit messy because it's not
in any of the POSIX specs and libc-writers tend to get inventive..

> is there any problem with df in solaris?

Yes, I was able to reproduce the problem and fix the bug. Please try the
attached patch and if you could tell me `yep, works now' that's be
awesome :) Appart from that I'll likely pack a 3.11.1 release tonight
which should fix this bug.

Regards,
-octo
--

-- 
(Continue reading)

Daniel Leite | 9 Feb 2007 19:26
Picon
Favicon

Re: no df statistics

Hi Florian

	Thanks for collectd, its a great product!! 8)

On Fri, 9 Feb 2007 17:53:48 +0100
Florian Forster <octo@...> wrote:
> don't worry about it; I get the moderation requests once a day, so
> I'll simply skip over this message tonight ;)

	no need, i got the moderation warning email and i was able to
cancel the post

> Yes, I was able to reproduce the problem and fix the bug. Please try
> the attached patch and if you could tell me `yep, works now' that's be
> awesome :) 

	yep, work now!!  :)

	thanks alot, i can now go the weekend with this working fine

>Appart from that I'll likely pack a 3.11.1 release tonight which
>should fix this bug.

	i have a few comments about collectd in solaris, maybe its the
right time (or already too late) to tell you...

	when compiling i found several minor problems like this:

if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT
processes.lo -MD -MP -MF ".deps/processes.Tpo" -c -o processes.lo processes.c; \
(Continue reading)

Florian Forster | 9 Feb 2007 23:07
Favicon

Re: no df statistics

Hi Daniel,

On Fri, Feb 09, 2007 at 06:26:09PM +0000, Daniel Leite wrote:
> > Yes, I was able to reproduce the problem and fix the bug. Please try
> > the attached patch and if you could tell me `yep, works now' that's be
> > awesome :) 
> 
> yep, work now!!  :)

Okay, good. Thanks for the feedback :)

> i have a few comments about collectd in solaris, maybe its the right
> time (or already too late) to tell you...

Feedback is always welcome, especially since I hardly use Solaris
myself..

> processes.c: In function `ps_config':
> processes.c:412: warning: implicit declaration of function `ps_list_register'
> processes.c: At top level:
> processes.c:195: warning: 'list_head_g' defined but not used

I think Sebastian sent in a patch to fix a similar bug under FreeBSD and
I'm quite sure this resolves this problem, too. I'll double-check
tomorrow.

> There are more problems like this in some modules, but if i removed
> the -Werror from AM_CFLAGS in src/Makefile all compiles fine...

Could you send me the entire output of an `make all'? It _should_ build
(Continue reading)

Florian Forster | 10 Feb 2007 11:38
Favicon

Version 3.11.1 available

Hi everybody,

as said yesterday I've packet a new release, 3.11.1, which fixes the
Solaris issues reported by Daniel and includes the GNU/kFreeBSD patches
provided by Sebastian.

Regards,
-octo
--

-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
martin östlund | 10 Feb 2007 14:39
Picon

collectd not generating rrd files?

Hello.

I installed collectd-3.11.1 from source on a Slackware 11.0 system. I
configured collectd.conf to DataDir   /var/collectd/var/lib/collectd.
my configure line is ./configure --disable-hddtemp --with-lm-sensors
--prefix=/var/collectd --with-rrdtool

The files in DataDir does not end in .rrd, is this a problem ? Also,
when I read howtos and such for rrdtool, they seem to have example
.rrd-files which is not in the same format as the files outputted by
collectd, what am I missing here, im new to all this...

With best regards,
Georgie


Gmane