nagios配置pnp4nagios报错“Please check the documentation for information about the following error”
2017-11-16 11:01
691 查看
报错如下
![](https://oscdn.geek-share.com/Uploads/Images/Content/201909/15/548b6eb86a6e97c9ba102aa5b5979b10)
修改如下配置
/usr/local/nagios/etc/nagios.cfg配置文件
#修改值为1
process_performance_data=1
#取消下面行的注释
host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata
/usr/local/nagios/etc/objects/commands.cfg配置文件
注释配置文件中的process-host-perfdata和process-service-perfdata
添加如下配置
define command{
command_name process-host-perfdata
command_line /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
}
define command{
command_name process-service-perfdata
command_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是否有生成的数据文件
修改如下配置
/usr/local/nagios/etc/nagios.cfg配置文件
#修改值为1
process_performance_data=1
#取消下面行的注释
host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata
/usr/local/nagios/etc/objects/commands.cfg配置文件
注释配置文件中的process-host-perfdata和process-service-perfdata
添加如下配置
define command{
command_name process-host-perfdata
command_line /usr/bin/perl /usr/local/pnp4nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
}
define command{
command_name process-service-perfdata
command_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是否有生成的数据文件
相关文章推荐
- nagios配置pnp4nagios报错“Please check the documentation for information about the following error”
- nagios配置pnp4nagios报错“Please check the documentatio
- MS SQL错误:SQL Server failed with error code 0xc0000000 to spawn a thread to process a new login or connection. Check the SQL Server error log and the Windows event logs for information about possible related problems
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- configure: error: mysql configure failed. Please check config.log for more information.
- arcgis server manager - An error has occured on the server. For details please check the Event (Application) log on the web.
- configure: error: mysql configure failed. Please check config.log for more information.
- PHP: configure: error: mysql configure failed. Please check config.log for more information.
- Custom tool error: Failed to generate code for the service reference ××××××. Please check other erro
- Exception occurred while processing this request, check the log for more information!安装ActiveMq-5.14.1 配置安全验证报错解决
- vivado仿真出错: Please check the Tcl console or log files for more information.
- Custom tool error: Failed to generate code for the service reference ××××××. Please check other error and warning messages for details.
- Custom tool error: Failed to generate code for the service reference ××××××. Please check other erro
- DataTables warning: table id=DataTables_Table_0 - Requested unknown parameter '1' for row 0. For more information about this error, please see http://datatables.net/tn/4
- configure: error: GD build test failed. Please check the config.log for details.
- linux64位编译php遇到configure: error: GD build test failed. Please check the config.log for details
- #Redis Error #MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details a
- 编译PHP5.6 提示configure: error: GD build test failed. Please check the config.log for details.
- An error has occured on the server. For details please check the Event (Application) log on the web server.