×

微信扫一扫,快捷登录!

Nagios之太阳(pnp)安装配置

标签: 暂无标签
来自:网络

                                  nagios培训
nagios实施
监控软件
Nagios太阳(pnp)安装配置 一.安装rrdtool RRDTOOL将nagios采集的数据绘制成图表。 #wget [  /rrdtool/pub/rrdtool-1.4.3.tar.gz]rrdtool/pub/rrdtool-1.4.3.tar.gz[/url] #tar zxvf rrdtool-1.4.3.tar.gz -C ../software #cd ../softwar/rrdtool-1.4.3 #./configure --prefix=/usr/local/rrdtool/ --with-perl-options=/usr/bin/perl 指定perl路径 #make #make install 二.安装pnp #wget [  /project/pnp4nagios/PNP/pnp-0.4.14/pnp-0.4.14.tar.gz?use_mirror=nchc]h  ... .gz?use_mirror=nchc[/url] #tar zxvf pnp-0.4.14.tar.gz -C ../software/ #cd ../software/pnp-0.4.14 #./configure \ --with-nagios-user=nagios\ --with-nagios-group=nagios\ --with-rrdtool=/usr/local/rrdtool/bin/rrdtool\ 指定rrdtool路径 --with-perfdata-dir=/usr/local/nagios/share/perfdata/ 指定perfdata存放路径 General Options: ------------------------- ------------------- Nagios user/group: nagios nagios Install directory: /usr/local/nagios HTML Dir: /usr/local/nagios/share/pnp Config Dir: /usr/local/nagios/etc/pnp Location of rrdtool binary: /usr/local/rrdtool/bin/rrdtool Version 1.4.3 RRDs Perl Modules: FOUND (Version 1.4003) RRD Files stored in: /usr/local/nagios/share/perfdata/ process_perfdata.pl Logfile: /usr/local/nagios/var/perfdata.log Perfdata files (NPCD) stored in: /usr/local/nagios/var/spool/perfdata/ #make all #make install #make install-config #make install-init 三.配置nagios #vi /usr/local/nagios/etc/nagios (在880行左右) process_performance_data=1 //开启收集perfdata(默认是关闭的) host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata #vi /usr/local/nagios/etc/objects/commands.cfg 增加对process-host-perfdata,process-service-perfdata命令的定义 define command{ command_name process-service-perfdata //定义命令名称 command_line /usr/local/nagios/libexec/process_perfdata.pl //指定命名 } define command{ command_name process-service-perfdata command_line /usr/local/nagios/libexec/process_perfdata.pl } # vi /usr/local/nagios/etc/objects/templates.cfg 添加太阳图标,配置前端页面 define service{ name generic-service process_perf_data 1 //开启收集perfdata action_url /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$ //定义URL } define service{ name local-service use generic-service action_url /nagios/pnp/index.php?host=$HOSTNAME$ process_perf_data 1 } # /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg 检测配置 #service nagios restart 四.验证 http://ip/nagios/pnp/


nagios配置
开源监控软件
nagios安装

想做Nagios Zabbix,Cacti,iTop各种交流的,可以进入开源监控工具Nagios交流  QQ群号 476809427





上一篇:nagios客户端是怎样安装的
下一篇:详解nagios原理及配置
monicazhang

写了 2297 篇文章,拥有财富 12859,被 21 人关注

您需要登录后才可以回帖 登录 | 立即注册
B Color Link Quote Code Smilies

成为第一个吐槽的人

Powered by IT 运维管理
返回顶部