字符模式的Nagios简单易用,但不能呈现历史数据。终于找到时间来安装尝试php4nagios。 结果configure运行完后,就提示”RRDs Perl Modules: *** NOT FOUND ***“。

该链接描述与解决此问题简洁明了, http://ronaldbradford.com/blog/installing-perl-rrd-module-rrdspm-2009-07-11/

检查模块是否存在:
# perl -MRRDs -le 'print q(ok!)'
Can't locate RRDs.pm in @INC (.....)
BEGIN failed--compilation aborted.
查看CentOS系统中安装的rrdtool
$ rpm -qa | grep rrd
rrdtool-1.2.27-3.el5

查找rrdtool相关模块:
# yum search rrdtool
....
rrdtool.i386 : Round Robin Database Tool to store and display time-series data
rrdtool.x86_64 : Round Robin Database Tool to store and display time-series data
rrdtool-devel.i386 : RRDtool libraries and header files
rrdtool-devel.x86_64 : RRDtool libraries and header files
rrdtool-doc.x86_64 : RRDtool documentation
rrdtool-perl.x86_64 : Perl RRDtool bindings
rrdtool-php.x86_64 : PHP RRDtool bindings
rrdtool-python.x86_64 : Python RRDtool bindings
rrdtool-ruby.x86_64 : Ruby RRDtool bindings
rrdtool-tcl.x86_64 : Tcl RRDtool bindings
ruby-RRDtool.x86_64 : RRDTool for Ruby
sysusage.noarch : System monitoring based on perl, rrdtool, and sysstatrrdtool.x86_64 : Round Robin Database Tool to store and display time-series data
安装rrdtool-perl,
# yum install rrdtool-perl
再测试,成功!
# perl -MRRDs -le 'print q(ok!)'
ok!
按照 http://docs.pnp4nagios.org/pnp-0.6/install 安装配置后,就看到测试机的相关历史曲线了!