syslog-ng错误提示Plugin module not found in

2014-01-17 14:31

安装syslog-ng作为syslog的替代工具,可以完全替代syslog的服务,并且通过定义规则,实现更好的过滤功能。于是我就安装了syslog-ng,不过重启和启动syslog-ng时发现了提示:Plugin module not found in ‘module-path’; module-path=’/lib/syslog-ng’, module=’afsql’
Starting syslog-ng: Plugin module not found in ‘module-path’; module-path=’/lib/syslog-ng’, module=’afsql’,于是去Google了下解决方案。

[root@Min ~]# service syslog-ng start
Plugin module not found in 'module-path'; module-path='/lib/syslog-ng', module='afsql'
Starting syslog-ng: Plugin module not found in 'module-path'; module-path='/lib/syslog-ng', module='afsql'
                                                           [  OK  ]
[root@Min ~]# service syslog-ng restart
Stopping syslog-ng:                                        [  OK  ]
Plugin module not found in 'module-path'; module-path='/lib/syslog-ng', module='afsql'
Starting syslog-ng: Plugin module not found in 'module-path'; module-path='/lib/syslog-ng', module='afsql'
                                                           [  OK  ]

由于是缺乏插件模块,只需安装syslog-ng-libdbi插件模块即可,直接yum安装。

[root@Min ~]# yum install syslog-ng-libdbi
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package syslog-ng-libdbi.i686 0:3.2.5-3.el6 will be installed
--> Processing Dependency: libdbi.so.0 for package: syslog-ng-libdbi-3.2.5-3.el6.i686
--> Running transaction check
---> Package libdbi.i686 0:0.8.3-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch         Version               Repository    Size
================================================================================
Installing:
 syslog-ng-libdbi         i686         3.2.5-3.el6           epel          31 k
Installing for dependencies:
 libdbi                   i686         0.8.3-4.el6           base          39 k

Transaction Summary
================================================================================
Install       2 Package(s)

Total download size: 70 k
Installed size: 134 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): libdbi-0.8.3-4.el6.i686.rpm                       |  39 kB     00:00
(2/2): syslog-ng-libdbi-3.2.5-3.el6.i686.rpm             |  31 kB     00:00
--------------------------------------------------------------------------------
Total                                            80 kB/s |  70 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libdbi-0.8.3-4.el6.i686                                      1/2
  Installing : syslog-ng-libdbi-3.2.5-3.el6.i686                            2/2

Installed:
  syslog-ng-libdbi.i686 0:3.2.5-3.el6

Dependency Installed:
  libdbi.i686 0:0.8.3-4.el6

Complete!
[root@Min ~]# service syslog-ng restart
Stopping syslog-ng:                                        [  OK  ]
Starting syslog-ng:                                        [  OK  ]
[root@Min ~]#

重启过程中再没这现象了,问题解决。