HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/local/lib/python3.6/site-packages/agent360/plugins/__pycache__/cloudlinux.cpython-36.pyc
3

3	Eg��@s@ddlZddlZddlZGdd�dej�Zedkr<e�j�dS)�Nc@seZdZdZdd�ZdS)�PluginZ
cloudlinuxcCsvtjd�j�}i}ytj|�}Wntk
r4dSX|ddk	rFdSi}x&|dD]}|d}|d=|||<qTW|S)a
        Beta plugin to monitor cloudlinux users
        Requires sudo access to lveinfo (whereis lveinfo) add to /etc/sudoers:
        agent360 ALL=(ALL) NOPASSWD: /REPLACE/PATH/TO/lveinfo

        To enable add to /etc/agent360.ini:
        [cloudlinux]
        enabled = yes
        z3sudo lveinfo -d --period 5m -o cpu_avg -l 20 --jsonzCould not load lveinfo data�success�zFailed to load lveinfo�dataZID)�os�popen�read�json�loads�	Exception)�self�configr�results�line�username�r�D/root/tmp/pip-build-f6rmvwrq/agent360/agent360/plugins/cloudlinux.py�runs
z
Plugin.runN)�__name__�
__module__�__qualname__rrrrrrsr�__main__)rZpluginsr	Z
BasePluginrr�executerrrr�<module>s
!