[collectd] plugins don't "provide a read function"

samuel gipe sgipe<span style="display: none;">.trailing-username</span>(a)<span style="display: none;">leading-domain.</span>yahoo.com
Fri Mar 30 01:27:33 CEST 2007


Using collectd-3.11.2 on a solaris 10 machine, I find notices in
/var/adm/messages that most plugins don't "provide a read function"(excerpt
below).  The plugins "load" and "ping" produce data (and don't advise regarding
the read function), but others do not.  Do you have advice on how to get the
other modules to report data or how to better troubleshoot?

Configure finds libkstat and libstatgrab, but the modules do not seem to be
able to make use of either library.  In the case of memory.c, the module
doesn't look for libstatgrab and doesn't seem to know about libkstat:
48:#if defined (HOST_VM_INFO) || HAVE_SYSCTLBYNAME || KERNEL_LINUX ||
HAVE_LIBKSTAT

It looks like one module that does report data, load, is the only one to use
libstatgrab. 29:#if defined(HAVE_GETLOADAVG) || defined(KERNEL_LINUX) ||
defined(HAVE_LIBSTATGRAB)

thanks in advance!
sam

Details:

from /var/adm/message:
collectd[8590]: [ID 245061 daemon.notice] Plugin `cpu' doesn't provide a read
function.
collectd[8590]: [ID 245061 daemon.notice] Plugin `cpufreq' doesn't provide a
read function.
collectd[8590]: [ID 245061 daemon.notice] Plugin `memory' doesn't provide a
read function.
collectd[8590]: [ID 245061 daemon.notice] Plugin `nfs' doesn't provide a read
function.
collectd[8590]: [ID 245061 daemon.notice] Plugin `processes' doesn't provide a
read function.
collectd[8590]: [ID 245061 daemon.notice] Plugin `serial' doesn't provide a
read function.
collectd[8590]: [ID 245061 daemon.notice] Plugin `swap' doesn't provide a read
function.
collectd[8590]: [ID 245061 daemon.notice] Plugin `traffic' doesn't provide a
read function.

configure command and excerpt of its output (libstat is in
/usr/local/lib-and-include):

env  CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
CC=/usr/sfw/bin/gcc ./configure --disable-mysql --prefix=/usr/local/collectd

Configuration:
 Libraries:
   libcurl . . . . . . no
   libiokit  . . . . . no
   liboping  . . . . . yes (shipped version)
   librrd  . . . . . . no (librrd not found)
   lm_sensors  . . . . no
   libstatgrab . . . . no (libstatgrab not found)
   libkstat  . . . . . yes
   libmysql  . . . . . yes
   libpcap . . . . . . no (libpcap not found)
   libpthread  . . . . yes

 Features:
   debug . . . . . . . no
   daemon mode . . . . yes
   step  . . . . . . . 10 seconds
   heartbeat . . . . . 25 seconds

 Modules:
   apache  . . . . . . yes
   apcups  . . . . . . yes
   apple_sensors . . . yes
   battery . . . . . . yes
   cpu . . . . . . . . yes
   cpufreq . . . . . . yes
   df  . . . . . . . . yes
   disk  . . . . . . . yes
   dns . . . . . . . . yes
   email . . . . . . . yes
   hddtemp . . . . . . yes
   load  . . . . . . . yes
   mbmon . . . . . . . yes
   memory  . . . . . . yes
   multimeter  . . . . yes
   mysql . . . . . . . no
   nfs . . . . . . . . yes
   ntpd  . . . . . . . yes
   ping  . . . . . . . yes
   processes . . . . . yes
   sensors . . . . . . yes
   serial  . . . . . . yes
   swap  . . . . . . . yes
   tape  . . . . . . . yes
   traffic . . . . . . yes
   users . . . . . . . yes
   vserver . . . . . . yes
   wireless  . . . . . yes

bash-3.00# grep KSTAT config.log | #define HAVE_KSTAT_H 1
| #define COLLECT_KSTAT 1
| #define HAVE_KSTAT_H 1
| #define COLLECT_KSTAT 1
| #define HAVE_KSTAT_H 1
| #define COLLECT_KSTAT 1
| #define HAVE_KSTAT_H 1
| #define COLLECT_KSTAT 1
| #define HAVE_KSTAT_H 1
| #define COLLECT_KSTAT 1
BUILD_WITH_LIBKSTAT_FALSE='#'
BUILD_WITH_LIBKSTAT_TRUE=''
#define HAVE_KSTAT_H 1
#define COLLECT_KSTAT 1
bash-3.00# grep KSTAT Makefile   BUILD_WITH_LIBKSTAT_FALSE = #
BUILD_WITH_LIBKSTAT_TRUE =



 
____________________________________________________________________________________
Don't get soaked.  Take a quick peek at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather



More information about the collectd mailing list