Plugin : python-fd.so
Description: Python File Daemon Plugin
Version : 3, Date: May 2014
Author : Marco van Wieringen
License : Bareos AGPLv3
Usage : python:module_path=<path-to-python-modules>:module_name=<python-module-to-load>
So I started the fd with specified plugin using "Plugin Names = "bareos-fd-mysql.py". Restarted bareos-fd and now I see no plugin loaded.
Next step: Debugging.
Ran "/sbin/bareos-fd -c /etc/bareos/bareos-fd.conf -d 200 -v"
resulting in:
nag-fra6-fd: bsys.c:622-0 Could not open state file. sfd=-1 size=192: ERR=No such file or directory
nag-fra6-fd: plugins.c:222-0 load_plugins
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=BareosFdWrapper.pyc len=19
nag-fra6-fd: plugins.c:302-0 Found plugin: name=bpipe-fd.so len=11
nag-fra6-fd: fd_plugins.c:1616-0 is_plugin_compatible called
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=bareos-fd.py.template len=21
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=BareosFdMySQLclass.py len=21
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=BareosFdPluginBaseclass.pyc len=27
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=BareosFdPluginBaseclass.py len=26
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=BareosFdMySQLclass.pyc len=22
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=bareos_fd_consts.py len=19
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=BareosFdWrapper.py len=18
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=bareos-fd-mysql.py.bak.gz len=25
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=bareos-fd-mysql.py len=18
nag-fra6-fd: plugins.c:302-0 Found plugin: name=python-fd.so len=12
nag-fra6-fd: fd_plugins.c:1616-0 is_plugin_compatible called
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=BareosFdPluginLocalFileset.py len=29
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=bareos-fd-local-fileset.py len=26
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=bareos-fd-mock-test.py len=22
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=bareos-fd-mysql.pyc.gz len=22
nag-fra6-fd: plugins.c:299-0 Rejected plugin: want=-fd.so name=bareos_fd_consts.pyc len=20
nag-fra6-fd: fd_plugins.c:1591-0 Loaded plugin: bpipe-fd.so
nag-fra6-fd: fd_plugins.c:1591-0 Loaded plugin: python-fd.so
nag-fra6-fd: filed.c:267-0 filed: listening on port 9102
nag-fra6-fd: bnet_server_tcp.c:166-0 Addresses host[ipv4;0.0.0.0;9102]
I know I havent configured anything yet, but shouldnt it at least load the plugins and not rejecting them ?
Many thanks in advance :-)
Danskmand
>
> Howdy - I got a Ubuntu 14.04 lts Server that has the newest Bareos-fd
That is not quite true both python and bpipe are loaded.
But your real problem is that you don't load .py files those
are plugin scripts not plugins. the python-fd.so is the actual plugin
and that loads the actual python script as the module_name= expresses
in the config line.
>
> I know I havent configured anything yet, but shouldnt it at least load
> the plugins and not rejecting them ?
As explained above the .py/.pyc are not plugins but just plugin scripts
executed by the python-fd.so
The actual invocation of the plugin happens with a proper fileset,
please read the docs on the mysql plugin:
https://github.com/bareos/bareos-contrib/tree/master/fd-plugins/mysql-python
--
Marco van Wieringen marco.van...@bareos.com
Bareos GmbH & Co. KG Phone: +49-221-63069389
http://www.bareos.com
Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens,
P. Storz, M. v. Wieringen