故障描述:
在Centreon的Web界面上点击Configuration/Nagios/Generate/Export按钮的时候,发现Nagios的调试信息不出现,这样对Nagios的错误配置就无法发现.
解决方法:
在"www/include/configuration/configGenerate/formGenerateFiles.php"文件里的"If debug needed"代码段(210行),
将:
$DBRESULT_Servers =& $pearDB->query("SELECT `nagios_bin` FROM `nagios_server` WHERE `ns_activate` = '1' AND `localhost` = '1' LIMIT 1");
改为:
$DBRESULT_Servers =& $pearDB->query("SELECT `nagios_bin` FROM `nagios_server` WHERE `ns_activate` = '1' LIMIT 1");
阅读(1891) | 评论(0) | 转发(0) |