Configure Guardian/Local Interface to show statistics when CloudLinux/CageFS is used

From Wiki

Jump to: navigation, search

If you have CloudLinux on your servers and you also use CageFS you need to follow the steps below in order to see the Guardian statistics in the Local Interface:

1. Copy the Guardian status file from the global /tmp folder to your /usr/share/cagefs-skeleton/dev/shm directory:

 cp -a /tmp/guardian.status /usr/share/cagefs-skeleton/dev/shm/

2. Modify the following configuration files:


Replace the "/tmp/guardian.status" string with the following string:


You also need to edit one more configuration file:


but this time replace the default guardian.status location with the following string:


3. Restart all of the services. You can use the following command:

 /etc/init.d/guardian stop && /etc/init.d/lifesigns stop && /etc/init.d/guardian start;/etc/init.d/templar restart;

An alternative solution is to disable the CageFS for the 1h user. To do this use the following command:

 /usr/sbin/cagefsctl -w 1h && /usr/sbin/cagefsctl --disable 1h

This way the 1h user will be able to access the global /tmp folder on the server and use the status file.

Personal tools