Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.6/site-packages/agent360/plugins/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.6/site-packages/agent360/plugins/__pycache__/cloudlinux.cpython-36.pyc

3

�uGh��@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-gzoz1_uw/agent360/agent360/plugins/cloudlinux.py�runs
z
Plugin.runN)�__name__�
__module__�__qualname__rrrrrrsr�__main__)rZpluginsr	Z
BasePluginrr�executerrrr�<module>s
!

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists