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:

 /usr/local/1h/etc/guardian.conf
 /usr/local/1h/etc/lifesigns.conf
 /usr/local/1h/etc/templar.conf
 /usr/local/1h/lib/perl/config_checks.pm
 /home/1h/etc/guardian.conf
 /etc/guardian.conf

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

/usr/share/cagefs-skeleton/dev/shm/guardian.status

You also need to edit one more configuration file:

 /home/1h/etc/portal_local.conf

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

/dev/shm/guardian.status

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
Namespaces
Variants
Actions
Navigation
Toolbox