大家好:
我在使用nginx + munin,使用fcgiwrap来启动munin cgi模式。今天启动时,系统报出了如下异常。
Can't locate CGI/Fast.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl) at /usr/lib/munin/cgi/munin-cgi-html line 30
经过检查,是缺少libcgi-fast-perl包引起的,安装后恢复正常。但是我在munin的相关依赖中找不到需要这个包。这是munin的bug么?
系统是jessie,相关包的版本如下。
ii munin 2.0.14-1
all network-wide graphing framework (grapher/gatherer)
ii munin-common 2.0.14-1
all network-wide graphing framework (common)
ii munin-doc 2.0.14-1
all network-wide graphing framework (documentation)
ii munin-node 2.0.14-1
all network-wide graphing framework (node)
ii munin-plugins-core 2.0.14-1
all network-wide graphing framework (plugins for node)
ii munin-plugins-extra 2.0.14-1
all network-wide graphing framework (user contributed plugins for
node)
shell@web:~$ dpkg -l | grep nginx
ii nginx 1.2.6-1
all small, powerful, scalable web/proxy server
ii nginx-common 1.2.6-1
all small, powerful, scalable web/proxy server - common files
ii nginx-full 1.2.6-1
i386 nginx web/proxy server (standard version)
shell@web:~$ dpkg -l | grep fcgi
ii fcgiwrap 1.0.3-3
i386 simple server to run CGI applications over FastCGI
ii libfcgi-perl 0.74-1+b1
i386 helper module for FastCGI
ii libfcgi0ldbl 2.4.0-8.1
i386 Shared library of FastCGI
ii spawn-fcgi 1.6.3-1
i386 A fastcgi process spawner
相关部分配置如下
location /munin/ {
root /usr/lib/munin/cgi;
fastcgi_split_path_info ^(/munin)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME /usr/lib/munin/cgi/munin-cgi-html;
fastcgi_param SCRIPT_NAME /munin-cgi-html;
fastcgi_pass unix:/var/run/munin-web.socket;
}
此
致
--
无能者无所求,饱食而遨游,泛若不系之舟
blog: http://shell909090.com/blog/
twitter: http://twitter.com/shell909090