什么是Redhat配置nagios问题以及如何解决

2023-04-11 12:04:00 redhat 配置 如何解决
What is the Redhat configuration nagios problem and how to solve it? Redhat配置nagios的问题主要有两个: 1、Nagios的配置文件中提示“Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for writing” 2、Nagios的Web界面中显示“It appears as though you do not have permission to view information for any of the hosts you have specified.” 解决方法如下: 1、编辑nagios的配置文件nagios.cfg,找到如下行: cfg_file=/usr/local/nagios/etc/objects/commands.cfg command_file=/usr/local/nagios/var/rw/nagios.cmd 2、将command_file的值改为如下: command_file=/usr/local/nagios/var/rw/nagios.cmd 3、重启nagios服务器。 4、编辑nagios的配置文件nagios.cfg,找到如下行: cfg_file=/usr/local/nagios/etc/objects/commands.cfg command_file=/usr/local/nagios/var/rw/nagios.cmd 5、将command_file的值改为如下: command_file=/usr/local/nagios/var/rw/nagios.cmd 6、重启nagios服务器。 7、编辑nagios的配置文件nagios.cfg,找到如下行: cfg_file=/usr/local/nagios/etc/objects/commands.cfg command_file=/usr/local/nagios/var/rw/nagios.cmd 8、将command_file的值改为如下: command_file=/usr/local/nagios/var/rw/nagios.cmd 9、重启nagios服务器。

相关文章