To enable process level and network statistics for nixstatsagent follow this guide.

With the CloudLinux Module you'll be able to monitor individual users on your CloudLinux servers.

Installing the Cloudlinux Plugin

You need at least nixstatsagent version 1.1.47, to upgrade run pip install nixstatsagent --upgrade.

The nixstats user needs sudo access to run lveinfo. Open /etc/sudoers and append the following at the end of the file.

nixstats ALL=(ALL) NOPASSWD: /usr/sbin/lveinfo
This is considering lveinfo is installed in /usr/sbin/lveinfo.

Now open /etc/nixstats.ini and append the following lines at the end of the file.

enabled = yes

Testing the cloudlinux plugin

Run sudo -u nixstats nixstatsagent test cloudlinux the following to see if everything is installed correctly.

root@nixstats:~# sudo -u nixstats nixstatsagent test cloudlinux
"metrics": 0

If the test is successful you can restart the agent to start sending data to Nixstats.

service nixstatsagent restart
Was this article helpful?
Thank you!