Question

Centreon retention didn't work

  • 18 August 2023
  • 2 replies
  • 43 views

Badge +3

Hello, 

 

I set retention time to 20 days, but all of my database are growing fast. 

 

After some researches, i found a cron task which is executed all nights. When i look into the logs, i saw this error : 

 

PHP Warning:  file_put_contents(/var/log/centreon/sql-error.log): Failed to open stream: Permission denied in /usr/share
/centreon/www/class/centreonLog.class.php on line 193

 

I try to execute “sudo -u centreon php /usr/share/centreon/cron/centstorage_purge.php” but i got same error. 

 

Is there anything i can do to solve this bug ?

 

Regards, 

 

Florian


2 replies

Userlevel 1
Badge +7

Does apache own writing privileges on /var/log/centreon/sql-error.log ?

Badge +3

Good morning,

Sorry for my response time. The vacation was too long!

Indeed, the Apache user (www-data) has the right to write to the file /var/log/centreon/sql-error.log

Sincerely,

Florian

Reply