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__/bind.cpython-36.pyc
3

3	Eg��@s@ddlZddlZddlZGdd�dej�Zedkr<e�j�dS)�Nc@seZdZdZdd�ZdS)�Plugin�bindcCs4|jdd�}tjdt|�d�j�}tj|�}|S)a
        Monitoring bind nameserver

        You must have the bind statistics-channels configured
        and you must have jq installed for json processing.
        
        Usage for /etc/agent360.ini:
        [bind]
        enabled = yes
        port = 8053
        r�portzcurl -j http://localhost:z5/json 2>/dev/null | jq ".qtypes * .rcodes * .nsstats")�get�os�popen�str�read�json�loads)�self�configZbport�result�data�r�>/root/tmp/pip-build-f6rmvwrq/agent360/agent360/plugins/bind.py�run
s
z
Plugin.runN)�__name__�
__module__�__qualname__rrrrrrsr�__main__)rZpluginsr
Z
BasePluginrr�executerrrr�<module>s