Discussion:
[collectd] python plugin.
Dan Dong
2015-03-10 15:19:06 UTC
Permalink
Hi, All,
Could anyone hint me how to install the python plugin of collectd? I
downloaded the collectd-5.4.2.tar.gz but after:
$./configure --prefix=/opt/collectd --enable-python
$sudo make all install

Where can I find the python plugin? Is it supposed to be under:
/opt/collectd/lib/collectd/plugins/python/ ?

But nothing there under /opt/collectd/lib/collectd/plugins/

Cheers,
Dan
Giovanni Torres
2015-03-10 19:11:48 UTC
Permalink
Before you compile with --enable-python, make sure the python headers are installed on your system:

apt-get install libpython (debian)
yum install python-devel (redhat)

Then recompile.  Make sure the summary at the end of the configure step says:

    python  . . . . . . . yes

Resulting python plugin shared module will be in:

${prefix}/lib/collectd/python.so

-Giovanni
________________________________
Date: Tue, 10 Mar 2015 10:19:06 -0500
Subject: [collectd] python plugin.
Hi, All,
Could anyone hint me how to install the python plugin of collectd? I
$./configure --prefix=/opt/collectd --enable-python
$sudo make all install
/opt/collectd/lib/collectd/plugins/python/ ?
But nothing there under /opt/collectd/lib/collectd/plugins/
Cheers,
Dan
_______________________________________________ collectd mailing list
Dan Dong
2015-03-10 19:37:06 UTC
Permalink
Thanks Giovanni, I could see it already there:
processes . . . . . . yes
protocols . . . . . . yes
python . . . . . . . yes

and
$ ll /opt/collectd/lib/collectd/python*
-rw-r--r-- 1 root root 288892 Mar 10 15:04
/opt/collectd/lib/collectd/python.a
-rwxr-xr-x 1 root root 969 Mar 10 15:04 /opt/collectd/lib/collectd/
python.la
-rwxr-xr-x 1 root root 188262 Mar 10 15:04
/opt/collectd/lib/collectd/python.so

Just confused by misleading info from the web that the lib should be under:
/opt/collectd/lib/collectd/plugins/python/

Cheers,
Dan
Post by Giovanni Torres
Before you compile with --enable-python, make sure the python headers are
apt-get install libpython (debian)
yum install python-devel (redhat)
Then recompile. Make sure the summary at the end of the configure step
python . . . . . . . yes
${prefix}/lib/collectd/python.so
-Giovanni
________________________________
Date: Tue, 10 Mar 2015 10:19:06 -0500
Subject: [collectd] python plugin.
Hi, All,
Could anyone hint me how to install the python plugin of collectd? I
$./configure --prefix=/opt/collectd --enable-python
$sudo make all install
/opt/collectd/lib/collectd/plugins/python/ ?
But nothing there under /opt/collectd/lib/collectd/plugins/
Cheers,
Dan
_______________________________________________ collectd mailing list
_______________________________________________
collectd mailing list
http://mailman.verplant.org/listinfo/collectd
Marc Fournier
2015-03-10 20:40:37 UTC
Permalink
Post by Dan Dong
Hi, All,
Could anyone hint me how to install the python plugin of collectd? I
$./configure --prefix=/opt/collectd --enable-python
$sudo make all install
/opt/collectd/lib/collectd/plugins/python/ ?
But nothing there under /opt/collectd/lib/collectd/plugins/
You should be looking for /opt/collectd/lib/collectd/python.so.

After running ./configure, a summary is printed out which should tell
you which plugins won't be built and why not.

Maybe the configure script can't figure out where python is located on
your system ? Try adding --with-python=/path/to/python to ./configure in
this case.

Cheers,
Marc
Dan Dong
2015-03-10 20:46:01 UTC
Permalink
Thanks Marc, it is fixed now, yes, the plugin is exactly under
/opt/collectd/lib/collectd
A default configure without any options will be enough to generate the
python.so

Cheers,
Dan
Post by Marc Fournier
Post by Dan Dong
Hi, All,
Could anyone hint me how to install the python plugin of collectd? I
$./configure --prefix=/opt/collectd --enable-python
$sudo make all install
/opt/collectd/lib/collectd/plugins/python/ ?
But nothing there under /opt/collectd/lib/collectd/plugins/
You should be looking for /opt/collectd/lib/collectd/python.so.
After running ./configure, a summary is printed out which should tell
you which plugins won't be built and why not.
Maybe the configure script can't figure out where python is located on
your system ? Try adding --with-python=/path/to/python to ./configure in
this case.
Cheers,
Marc
Continue reading on narkive:
Loading...