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

From Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "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 Gua...")
Line 28: Line 28:
3. Restart all of the services. You can use the following command:
3. Restart all of the services. You can use the following command:
-
   /etc/init.d/templar restart; /etc/init.d/guardian stop && /etc/init.d/lifesigns restart && /etc/init.d/guardian start
+
   /etc/init.d/guardian stop && /etc/init.d/lifesigns stop && /etc/init.d/guardian start;/etc/init.d/templar restart;

Revision as of 07:14, 24 June 2014

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