Nagios使用pnp4画图

 

Nagios使用pnp4画图_第1张图片

2、修改 /etc/nagios3/nagios.cfg,去掉前面的#,类似下面的内容
process_performance_data=1
host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata

3、安装PNP插件
下载PNP,解压缩并安装
wget http://docs.pnp4nagios.org/_media/dwnld/pnp-latest.tar.gz?cache=nocache
mv pnp-latest.tar.gz\?cache\=nocache pnp-latest.tar.gz
tar -zxvf pnp-latest.tar.gz
cd pnp-latest
./configure 找不到rrdtool perl模块

apt-get install librrds-perl rrdtool

make all
make install

4、拷贝  cp -R  /usr/local/nagios/share/pnp  /usr/share/nagios3/htdocs/pnp

5、修改 /usr/local/nagios/etc/pnp/config.php 类似如下内容:
$conf['nagios_base'] = "/secured_nagios3/cgi-bin";

6、修改/etc/nagios3/commands.cfg,制定相关路径类似如下信息:
define command{
command_name    process-service-perfdata
command_line /usr/local/nagios/libexec/process_perfdata.pl
}
7、重启相关服务 /etc/init.d/nagios3 restart

8、浏览器输入 http://192.168.1.1/nagios3/php 就可以访问
 

 

你可能感兴趣的:(职场,nagios,休闲,RRD)