Florian Forster | 1 Mar 2006 18:37
Favicon

Re: MySQL Plugin Problem

Hi Shaun,

sorry for not answering quicker; I was on vacation..

On Sun, Feb 26, 2006 at 08:08:27AM -0500, Shaun wrote:
> collectd[14793]: Plugin `mysql' doesn't provide a read function.

This means that the MySQL-Plugin was compiled and not linked against
`libmysqlclient'. You should install it first or, if you've already done
that, try the `--with-libmysql' configure-argument.

Regards,
-octo
--

-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
Florian Forster | 1 Mar 2006 18:43
Favicon

Re: FC4, collectd, lm_sensors and hddtemp

Hi Jeffrey,

On Sun, Feb 26, 2006 at 08:30:55PM -0800, Green Cafe wrote:
> I have collectd working well as well as lm_sensors and hddtemp.... but 
> not together.
> In /var/lib/collectd I have all the basic rrds but nothing for hddtemp 
> or lm_sensors.  How do I get them all to work together?

most likely you need to comment-in the accordant lines in
`/etc/collectd.conf'.. If that's not it please tell me/us what packages
you installes or which arguments you used to compile it. Also check if
the `sensors' application shows anything of interest..

Regards,
-octo
--

-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
Green Cafe | 2 Mar 2006 21:03

Re: FC4, collectd, lm_sensors and hddtemp

Florian Forster wrote:

>Hi Jeffrey,
>
>On Sun, Feb 26, 2006 at 08:30:55PM -0800, Green Cafe wrote:
>  
>
>>I have collectd working well as well as lm_sensors and hddtemp.... but 
>>not together.
>>In /var/lib/collectd I have all the basic rrds but nothing for hddtemp 
>>or lm_sensors.  How do I get them all to work together?
>>    
>>
>
>most likely you need to comment-in the accordant lines in
>`/etc/collectd.conf'.. If that's not it please tell me/us what packages
>you installes or which arguments you used to compile it. Also check if
>the `sensors' application shows anything of interest..
>
>Regards,
>-octo
>  
>
hddtemp works now. I checked /etc/collectd.conf and those items are not 
commented out.
lm-sensors works fine from  the command line.  I could not get collectd 
to compile so I used the rpm for FC1.  I will try to recompile with 
collectd-3.3.0 and forward the error message.

Jeffrey
(Continue reading)

Green Cafe | 2 Mar 2006 21:26

Re: FC4, collectd, lm_sensors and hddtemp

When I run ./configure
 I get
'configure: error: librrd could not be found. Be sure to install rrdtool 
first!'

librrd is installed however.

Jeffrey

Florian Forster wrote:

>Hi Jeffrey,
>
>On Sun, Feb 26, 2006 at 08:30:55PM -0800, Green Cafe wrote:
>  
>
>>I have collectd working well as well as lm_sensors and hddtemp.... but 
>>not together.
>>In /var/lib/collectd I have all the basic rrds but nothing for hddtemp 
>>or lm_sensors.  How do I get them all to work together?
>>    
>>
>
>most likely you need to comment-in the accordant lines in
>`/etc/collectd.conf'.. If that's not it please tell me/us what packages
>you installes or which arguments you used to compile it. Also check if
>the `sensors' application shows anything of interest..
>
>Regards,
>-octo
(Continue reading)

Florian Forster | 2 Mar 2006 21:46
Favicon

Re: MySQL Plugin Problem

Hello Shaun,

On Wed, Mar 01, 2006 at 12:49:40PM -0500, Shaun wrote:
> I am using the rpm version of the MySQL plugin for RHEL3. Is the rpm
> looking for the files in a certain directory?

I managed to unpack an RPM and the MySQL-plugin is really not linked
against libmysql{,client}. I'll contact Andreas Sartori who packaged the
RHEL RPM packages, maybe he's so nice as to create 3.7.2 packages that
are linked as expected. Sorry for the inconvenience :/

Regards,
-octo
--

-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
Florian Forster | 2 Mar 2006 21:56
Favicon

Re: FC4, collectd, lm_sensors and hddtemp

Hi Jeffrey,

On Thu, Mar 02, 2006 at 12:03:52PM -0800, Green Cafe wrote:
> lm-sensors works fine from  the command line.  I could not get collectd 
> to compile so I used the rpm for FC1.  I will try to recompile with 
> collectd-3.3.0 and forward the error message.

On Thu, Mar 02, 2006 at 12:26:53PM -0800, Green Cafe wrote:
> When I run ./configure
> I get
> 'configure: error: librrd could not be found. Be sure to install rrdtool 
> first!'
> 
> librrd is installed however.

first, you are using an very outdated version of collectd. Up to date
versions compile cleanly without librrd, though such binaries are
(obviously) limited to client-mode.

Other than that please make sure that the development packages are
installed too. On my long gone RedHat 7 box those packages were called
`lm_sensors-devel' and `rrdtool-devel'.

If those packages are installed and the configure script still failes to
find the libraries try giving that paths manually. Look for the files
named `rrd.h' and/or `sensors.h'. Their path should look like this:
  /path/to/include/rrd.h
  /path/to/include/sensors/sensors.h
Run `configure' with `--with-rrdtool=/path/to' and/or
`--with-lm-sensors=/path/to', where `/path/to' is the directory in which
(Continue reading)

Green Cafe | 2 Mar 2006 22:37

Re: FC4, collectd, lm_sensors and hddtemp

Hi Florian.

I download the latest tarball from your website and it compile!

• collectd-3.7.2.tar.gz

I did
./configure
make
make install
/etc/init.d/collectd restart

but still lmsensors.rrd

I noticed after the ./config command that
the summary screen had this:

Configuration:
Libraries:
librrd . . . . . . no (librrd not found)
lm_sensors . . . . no (libsensors not found)
libstatgrab . . . . no
libkstat . . . . . no (Solaris only)
libmysql . . . . . no (libmysql not found)

Features:
debug . . . . . . . no
daemon mode . . . . yes

Modules:
(Continue reading)

Green Cafe | 2 Mar 2006 22:47

Re: FC4, collectd, lm_sensors and hddtemp

Hi Florian,

I installed lm_sensors-devel' and `rrdtool-devel' and reconpile 
successfully.
and ./configure gave me this:

still no sign of lm_sensors.rrd

Jeffrey

Configuration:
  Libraries:
    librrd  . . . . . . yes
    lm_sensors  . . . . yes
    libstatgrab . . . . no
    libkstat  . . . . . no (Solaris only)
    libmysql  . . . . . no (libmysql not found)

  Features:
    debug . . . . . . . no
    daemon mode . . . . yes

  Modules:
    battery . . . . . . yes
    cpu . . . . . . . . yes
    cpufreq . . . . . . yes
    df  . . . . . . . . yes
    disk  . . . . . . . yes
    hddtemp . . . . . . yes
    load  . . . . . . . yes
(Continue reading)

Green Cafe | 3 Mar 2006 18:06

Re: FC4, collectd, lm_sensors and hddtemp

Hi Florian,

I got lm-sensors to work now. The plugins were located in
the

/usr/local/src/collectd-3.7.2/src/.libs/sensors.o

but not in

/usr/lib/collectd

where collectd.conf says they should be located.  I copied sensors.o over
and it works now.  I do however get only fan speed and temperature readings.
Is there a way to get the voltage readings as well. I going to guess I 
have to recompile
 sensors.c .

Jeffrey

Green Cafe wrote:

> Hi Florian,
>
> I installed lm_sensors-devel' and `rrdtool-devel' and reconpile 
> successfully.
> and ./configure gave me this:
>
> still no sign of lm_sensors.rrd
>
> Jeffrey
(Continue reading)

Vincent Stehlé | 5 Mar 2006 17:32
Picon
Favicon

Rrd display script


Hi,

Here is a perl script I use to generate static html pages from the rrd 
data gathered by collectd.

The feature I like about it is that it needs no congiguration at all but 
can still display any rrd data type (well, not as good as a tuned 
script, but not bad anyway).

As it works correctly, and nothing exactly like this script is in the 
provided examples, I thought I might as well post it here.

This is GPL, *blah*...

Best regards and happy data collection,

--

-- 
Vincent Stehlé
Attachment (collectd2html.pl): application/x-perl, 4670 bytes

Gmane