CloudLinux / CageFS support for nixstatsagent
If you're running CloudLinux (with CageFS) you might not be able to view the processes list, or only be able to view the nixstatsagent process itself.
To enable the process level monitoring you have to exclude the nixstatsagent process from CageFS.
1) We need the groupid of nixstatsagent, get the groupid by running id nixstats
2) Edit the /etc/sysctl.conf
file and add the following line to the CageFS section.
fs.proc_super_gid=GROUPID
Replace GROUPID
with the groupid that was returned in step 1
3) Run sysctl -p
to enable the changes
4) Add nixstats
to /etc/cagefs/exclude/systemuserlist
5) Enable the changes by running cagefsctl --force-update
6) Run: service lve_namespaces restart
7) You can see if these changes works by running sudo -u nixstats nixstatsagent test process
Restart the nixstatsagent service `service nixstatsagent restart
Updated on: 09/05/2018
Thank you!