Skip to main content

Hello All.

My first question on this forum !

I migrated our Centreon server to Debian 11 one year ago and sized all the volumes as per the recommandations. Lv_log is 10 GB. The version of Centreon is 24.04.7

I recently remarked this volume was full because of the file /var/log/centreon-engine/centengine.log. There is enough free space on the volume group so I increased the size of the logical volume.

But this file is increasing at a rate of about 6 MB per day, it’s size is now 7,6 GB. I don’t see any option to save an history of the file and start with a empty new one.

Am I missing something ?

Have a nice day.

👋👋👋

 

Hello @OlivierV 🤗 welcome, regarding your question. Is your logrotate working? 

systemctl status logrotate

cat /etc/logrotate.d/centengine


Hello @ponchoh 

Good point : the service is stopped and I get the following errors when I start it :

error: found error in file centreon-broker, skipping
error: centreon-engine:1 duplicate log entry for /var/log/centreon-engine/centengine.log
error: found error in file centreon-engine, skipping
error: centreontrapd:1 duplicate log entry for /var/log/centreon/centreontrapd.log
error: found error in file centreontrapd, skipping
error: Ignoring gorgoned because it is writable by group or others.
error: skipping "/var/log/centreon-engine/centengine.log" because parent directory has insecure permissions (It's world writable or writable by group whi…

I’m searching the forum to get the answers to these errors.


Solved !

There was three files in /etc/logrotate.d that were dupplicates :

cbd ↔️ centreon-broker

centengine ↔️ centreon-engine

centreontrapd ↔️ centreon-trap

They were exact copies of the others so I moved the first ones to an other folder and started logrotate successfuly. Even the permission error disappeared.

Some links to help for debugging :

https://www.cisco.com/c/en/us/support/docs/switches/cluster-management-suite-cms-software/218149-resolve-logrotation-failures-due-to-perm.html

https://access.redhat.com/solutions/32831

Thank you @ponchoh for pointing to the right direction.


Nice!! welcome! 😁


Reply