Sebastian Harl | 3 Jun 2007 15:32
Gravatar

[PATCH] Added Perl module "Collectd" to contrib.


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

diff --git a/contrib/PerlLib/Collectd.pm b/contrib/PerlLib/Collectd.pm
new file mode 100644
index 0000000..a2c9a1a
--- /dev/null
+++ b/contrib/PerlLib/Collectd.pm
 <at>  <at>  -0,0 +1,52  <at>  <at> 
+# collectd - Collectd.pm
+# Copyright (C) 2007  Sebastian Harl
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation; only version 2 of the License is applicable.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+# Author:
(Continue reading)

Sebastian Harl | 3 Jun 2007 15:33
Gravatar

[PATCH] Marked the perl plugin to be experimental.


Signed-off-by: Sebastian Harl <sh@...>
---
 README                |    3 +++
 src/collectd-perl.pod |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/README b/README
index 555af86..794511c 100644
--- a/README
+++ b/README
 <at>  <at>  -112,6 +112,9  <at>  <at>  Features
       write your own plugins in Perl and return arbitary values using this
       API. See collectd-perl(5).

+      This plugin is still considered to be experimental and subject to change
+      between minor releases.
+
     - ping
       Network latency: Time to reach the default gateway or another given
       host.
diff --git a/src/collectd-perl.pod b/src/collectd-perl.pod
index 90a35da..7b74eee 100644
--- a/src/collectd-perl.pod
+++ b/src/collectd-perl.pod
 <at>  <at>  -21,6 +21,9  <at>  <at>  plugins for collectd in Perl. This is a lot more performant than executing a
 Perl-script every time you want to read a value with the C<exec plugin> (see
 L<collectd-exec(5)>) and provides a lot more functionality, too.

+Please note that this is still considered to be experimental and subject to
(Continue reading)

Florian Forster | 3 Jun 2007 21:21
Favicon

Version 4.0.0 available

Hi everybody,

I've just packed and uploaded version 4.0.0. I think the new features
are well known by now, but if you want to have a look at the changelog
again, here you go:
<http://git.verplant.org/?p=collectd.git;a=blob;h=ac1d9c7e5ae4bfdf44c17826b087292dd64493fc;hb=b2b34e32f8eb39b3374d09b4d23100da5da2db90;f=ChangeLog>

So, have fun and report any bugs you can find ;)
-octo
--

-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
Robert Liscak | 4 Jun 2007 14:44
Picon

Configuration file for collection.cgi

Hi,

when I downloaded version 4.0 of collectd, I'v been register change in cgi script contrib/collection.cgi
- it requires configuration file, but I cannot find an example everywhere.

Can you send me some info about /etc/collection.conf syntax, or an example-file?

Thank you very much.

Robert.

Sebastian Harl | 5 Jun 2007 07:34
Gravatar

Re: Configuration file for collection.cgi

Hi,

On Mon, Jun 04, 2007 at 02:44:17PM +0200, Robert Liscak wrote:
> when I downloaded version 4.0 of collectd, I'v been register change in cgi script
contrib/collection.cgi - it requires configuration file, but I cannot find an example everywhere.
> 
> Can you send me some info about /etc/collection.conf syntax, or an example-file?

An example might look like this:

  datadir: "/var/lib/collectd/rrd/"
  libdir: "/usr/lib/collectd/

Cheers,
Sebastian

--

-- 
Sebastian "tokkee" Harl
GnuPG-ID: 0x8501C7FC
http://tokkee.org/

Sebastian Harl | 5 Jun 2007 12:57
Gravatar

[PATCH] collectd.conf.pod: Fixed a typo.

The rrdtool plugin does not create CSV-files ;-)

Signed-off-by: Sebastian Harl <sh@...>
---
 src/collectd.conf.pod |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 939c72a..a190dd6 100644
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
 <at>  <at>  -555,7 +555,7  <at>  <at>  can savely ignore these settings.

 =item B<DataDir> I<Directory>

-Set the directory to store CSV-files under. Per default CSV-files are generated
+Set the directory to store RRD-files under. Per default RRD-files are generated
 beneath the daemon's working directory, i.E<nbsp>e. the B<BaseDir>.

 =item B<StepSize> I<Seconds>
--

-- 
1.5.0.5

Evan Miller | 7 Jun 2007 02:03
Picon

[PATCH] its/it's in documentation

A grammatical pet peeve of mine...

Cheers,

Evan

diff --git a/README b/README
index 794511c..c39885d 100644
--- a/README
+++ b/README
<at> <at> -253,7 +253,7 <at> <at> Prerequisites

   * librrd (optional; headers and library; rrdtool 1.0 and 1.2 both work fine)
     If built without `librrd' the resulting binary will be `client only', i.e.
-    will send it's values via multicast and not create any RRD files itself.
+    will send its values via multicast and not create any RRD files itself.
     Alternatively you can chose to write CSV-files (Comma Seperated Values)
     instead.

diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 939c72a..2843c2b 100644
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
<at> <at> -103,7 +103,7 <at> <at> the following snipped to base your Apache config upon:
     </Location>
   </IfModule>

-Since it's C<mod_status> module is very similar to Apache's, B<lighttpd> is
+Since its C<mod_status> module is very similar to Apache's, B<lighttpd> is
 also supported. It introduces a new field, called C<BusyServers>, to count the
 number of currently connected clients. This field is also supported.


Florian Forster | 7 Jun 2007 10:36
Favicon

Version 4.0.1 available.

Hi everybody,

as expected it didn't take long for the first bug to turn up: When
passing a comment name to the `Chain' option of the iptables-plugin the
daemon would crash.

Of course, the typos reported by Evan and Sebastian have been fixed,
too. Thank you for reporting them :)

Regards,
-octo
--

-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
a.shubnik | 7 Jun 2007 14:37
Picon

collectd-4.0.0 problems

    Hello Florian!
    Thank you very much for new 'collectd' version with much more new
useful plugins. After i compiled and installed collectd-4.0.0 i see
follow messages in /var/log/messages:

Jun  7 15:16:41 backup-srv collectd: cpufreq plugin: Found 0 CPUs
Jun  7 15:16:41 backup-srv collectd[29928]: email: No such group:  
`collectd'
Jun  7 15:16:41 backup-srv collectd[29928]: hddtemp: getaddrinfo  
(127.0.0.1, 7634.000000): Servname not supported for ai_socktype
Jun  7 15:16:41 backup-srv collectd[29928]: read-function of plugin  
`hddtemp' failed. Will syspend it for 10 seconds.
Jun  7 15:16:41 backup-srv collectd[29928]: unixsock plugin: bind failed:  
Address already in use
Jun  7 15:16:41 backup-srv collectd[29928]: ntpd plugin: getaddrinfo  
(localhost, 123.000000): Servname not supported for ai_socktype
Jun  7 15:16:41 backup-srv collectd[29928]: read-function of plugin `ntpd'  
failed. Will syspend it for 10 seconds.
Jun  7 15:16:51 backup-srv collectd[29928]: hddtemp: getaddrinfo  
(127.0.0.1, 7634.000000): Servname not supported for ai_socktype
Jun  7 15:16:51 backup-srv collectd[29928]: read-function of plugin  
`hddtemp' failed. Will syspend it for 20 seconds.
Jun  7 15:16:51 backup-srv collectd[29928]: ntpd plugin: getaddrinfo  
(localhost, 123.000000): Servname not supported for ai_socktype
Jun  7 15:16:51 backup-srv collectd[29928]: read-function of plugin `ntpd'  
failed. Will syspend it for 20 seconds.

    I attached my config file.
    And yet one. I edit one string in 'collection.cgi':

our $Config = "/usr/local/etc/collectd.conf";

    but when i enter in browser on 'collection.cgi' url i don't see  
anything.
    This is source html code:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
   <head>
     <title>collection.cgi, Version 2</title>
     <style type="text/css">
       img
       {
	border: none;
       }
     </style>
   </head>

   <body>
<ul>
</ul>
   </body>
</html>

      and string from 'apache' log:

192.168.5.45 - - [07/Jun/2007:15:29:49 +0300] "GET /cgi-bin/collection.cgi  
HTTP/1.1" 200 383 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1
.8.1.4) Gecko/20070515 Firefox/2.0.0.4"

      May be you can help me with discover these stranges?
      'collectd-3.11.3' works very well.
      With best wishes,
      Alex

Attachment (collectd.conf): application/octet-stream, 3655 bytes
Florian Forster | 7 Jun 2007 18:18
Favicon

Re: collectd-4.0.0 problems

Hi Alex,

On Thu, Jun 07, 2007 at 03:37:14PM +0300, a.shubnik@... wrote:
> i see follow messages in /var/log/messages:
> 
> Jun  7 15:16:41 backup-srv collectd: cpufreq plugin: Found 0 CPUs

I apparently your CPU doesn't have any speed-stepping feature (or
something like that). If you don't load the plugin, you won't get this
message..

> Jun  7 15:16:41 backup-srv collectd[29928]: email: No such group: `collectd'

If collectd is run as root, is does a `chgrp' after creating the UNIX
domain socket, so unprivileged processes may access it. Configure a
group that exists here and you'll be fine.

> Jun  7 15:16:41 backup-srv collectd[29928]: hddtemp: getaddrinfo (127.0.0.1, 7634.000000): Servname
not supported for ai_socktype
> Jun  7 15:16:41 backup-srv collectd[29928]: read-function of plugin `hddtemp' failed. Will syspend it
for 10 seconds.

Ugh, that's not good.. The number in the configfile is parsed as a
floating point number which is an illegal port (/service). Since you're
using the default port just comment that line. I'll fix this in the next
patch release.

> Jun  7 15:16:41 backup-srv collectd[29928]: unixsock plugin: bind failed: Address already in use

Apparently `/usr/local/stow/collectd-4.0.0/var/run/collectd-unixsock'
still exists. Did the daemon crash before or something? Normally the
file should be removed during shutdown.

> Jun  7 15:16:41 backup-srv collectd[29928]: ntpd plugin: getaddrinfo (localhost, 123.000000):
Servname not supported for ai_socktype
> Jun  7 15:16:41 backup-srv collectd[29928]: read-function of plugin `ntpd' failed. Will syspend it for
10 seconds.

Same problem as above.

> but when i enter in browser on 'collection.cgi' url i don't see
> anything.

Do you get any warnings/errors in the servers error-log?

Regards,
-octo
--

-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/

Gmane