现在的位置: 首页 > 综合 > 正文

icinga安装PNP4Nagios

2013年10月06日 ⁄ 综合 ⁄ 共 955字 ⁄ 字号 评论关闭

这个addon可视化的展现了监控数据,非常有用。check_mk的表格中也链接了该页面。现在看看怎么安装?

官方站点:http://docs.pnp4nagios.org/pnp-0.6/start

首先下载软件:

wget http://docs.pnp4nagios.org/_media/dwnld/pnp4nagios-head.tar.gz

解压:

tar zxvf pnp4nagios-head.tar.gz

cd pnp4nagios-head

编译步骤:

./configure --with-nagios-user=icinga --with-nagios-group=icinga

报错:

checking for rrdtool... no
checking rrdtool path ... no
configure: error:  is a directory! PNP needs the Path to the rrdtool binary!

安装rrdtool

apt-get install rrdtool rrdtool-dbg

再次运行configure, 成功。

运行make all编译很快结束。

安装:

make install

make install-webconf

make install-config

make install-init

其实应该就用一个命令搞定:

make fullinstall

后面配置真的好烦,重点参考:

https://wiki.icinga.org/display/howtos/Setting+up+PNP4Nagios+with+Icinga-Web

https://wiki.icinga.org/display/howtos/Setting+up+PNP+with+Icinga#SettingupPNPwithIcinga-Classic-UI

https://wiki.icinga.org/display/howtos/PNP4Nagios+in+Classic-UI

http://blog.csdn.net/wych1981/article/details/7246787

最后不要忘记:

apt-get purge libapache2-mod-php5 php5 && apt-get install libapache2-mod-php5 php5

抱歉!评论已关闭.