Monitoring CloudLinux
With the CloudLinux Module you'll be able to monitor individual users on your CloudLinux servers.
Installing the Cloudlinux Plugin
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.
[cloudlinux]
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
cloudlinux:
{
"metrics": 0
.....
}
If the test is successful you can restart the agent to start sending data to Nixstats.
service nixstatsagent restart
Updated on: 14/04/2020
Thank you!