Unable to Update CCM Global Settings
Posted: Sun Jan 24, 2016 4:52 pm
We are using non-XI Nagios Core 3.5.1 and Nagios CCM 1.03.
When attempting to update CCM Global Settings using URL, we get the error message "Unable to save to file: /var/www/html/ccm/config/settings.php"
The config.inc file at /var/www/html/ccm seems to be correct:
When attempting to update CCM Global Settings using URL, we get the error message "Unable to save to file: /var/www/html/ccm/config/settings.php"
The config.inc file at /var/www/html/ccm seems to be correct:
<?php //config.inc.php
//global configuration options for Nagios CCM
$CFG = array();
if(ENVIRONMENT=='nagiosxi') {
//use XI's generated config
require_once('/usr/local/nagiosxi/etc/components/ccm_config.inc.php');
$CFG['audit_send'] = '/usr/local/nagiosxi/scripts/send_to_auditlog.php';
}
else { //nagioscore
//nagios file locations
$CFG['plugins_directory'] = '/usr/local/nagios/libexec';
$CFG['command_file'] = '/usr/local/nagios/var/rw/nagios.cmd';
$CFG['lock_file'] = '/usr/local/nagios/var/nagios.lock';
$CFG['audit_send'] = '/dev/null';
//mysql database connection info
$CFG['db'] = array(
'server' => 'localhost',
'port' => '3306',
'database' => 'nagiosql',
'username' => 'nagiosql',
'password' => 'n@gweb',
);
}
//misc global settings
$CFG['common']['install'] = 'passed';
$CFG['domain'] = 'localhost';
$CFG['default_pagelimit'] = 15;
$CFG['lock_file'] = '/usr/local/nagios/var/nagios.lock';
$CFG['pear_include'] = '/usr/share/pear/HTML/Template/IT.php';
?>