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__/wp-toolkit.cpython-36.pyc

3

�uGh5�@s8ddlZddlZGdd�dej�Zedkr4e�j�dS)�Nc@s eZdZdZdZdZdd�ZdS)�Pluginz
wp-toolkitz
WP ToolkitzPUnified plugin for gathering metrics for WP Toolkit servers on cPanel and Plesk.cCs�d}tjjd�rd}ntjjd�r&d}i}|dkr�ttjd|d�j��|d<ttjd|d	�j��|d
<ttjd|d�j��|d<ttjd|d
�j��|d<ttjd|d�j��|d<|SdSdS)a�
        Grabbing some basic information from your cPanel or Plesk server
        If you are using Plesk:
        add to /etc/sudoers the following line:
        agent360 ALL=(ALL) NOPASSWD: /usr/sbin/plesk

        For cPanel:
        agent360 ALL=(ALL) NOPASSWD: /usr/local/bin/wp-toolkit



        test by running:
        sudo -u agent360 agent360 test wp-toolkit
        Add to /etc/agent360.ini:
        [wp-toolkit]
        enabled = yes
        interval = 3600
        �z/var/cpanel/usersz
wp-toolkitz
/opt/pleskzplesk ext wp-toolkitzsudo -n z3 --list | grep -v "Main Domain ID" | grep . | wc -lzWordPress Websitesz  --list | grep "Working" | wc -lzWordPress Websites - Alivez% --list | grep "Outdated WP" |  wc -lzWordPress Websites - Outdatedz& --list | grep "Outdated PHP" |  wc -lz!WordPress Websites - Outdated PHPz --list | grep "Broken" | wc -lzWordPress Websites - Brokenz!Neither cPanel nor Plesk detectedN)�os�path�isdir�int�popen�read)�self�config�command�data�r�D/root/tmp/pip-build-gzoz1_uw/agent360/agent360/plugins/wp-toolkit.py�runsz
Plugin.runN)�__name__�
__module__�__qualname__�	__title__�__description__rrrrrrsr�__main__)rZpluginsZ
BasePluginrr�executerrrr�<module>s)

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