这个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!
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