本文共 1183 字,大约阅读时间需要 3 分钟。
报错如图
修改如下配置
/usr/local/nagios/etc/nagios.cfg配置文件
#修改值为1
process_performance_data=1
#取消下面行的注释
host_perfdata_command=process-host-perfdataservice_perfdata_command=process-service-perfdata/usr/local/nagios/etc/objects/commands.cfg配置文件
注释配置文件中的process-host-perfdata和process-service-perfdata
添加如下配置
define command{
command_name process-host-perfdatacommand_line /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl -d HOSTPERFDATA}define command{
command_name process-service-perfdatacommand_line /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl}/usr/local/pnp4nagios/etc/配置修改
cp misccommands.cfg-sample misccommands.cfg
cp rra.cfg-sample rra.cfg
cp nagios.cfg-sample nagios.cfg
/usr/local/pnp4nagios/etc/pages配置修改
cp web_traffic.cfg-sample web_traffic.cfg
/usr/local/pnp4nagios/etc/check_commands配置修改
cp check_all_local_disks.cfg-sample check_all_local_disks.cfg
cp check_nrpe.cfg-sample check_nrpe.cfg
cp check_nwstat.cfg-sample check_nwstat.cfg
复制鼠标悬停图标文件
cp /usr/src/pnp4nagios-0.6.24/contrib/ssi/* /usr/local/nagios/share/ssi/
最后
重启nagios、httpd、npcd服务
查看报错的目录/usr/local/pnp4nagios/var/perfdata是否有生成的数据文件
转载于:https://blog.51cto.com/xiaoshanzi/2062294