HOME


sh-3ll 1.0
DIR:/usr/local/lib/python3.6/site-packages/agent360/plugins/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.6/site-packages/agent360/plugins/__pycache__/bind.cpython-36.pyc
3

)��h��@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-yeh9mt8d/agent360/agent360/plugins/bind.py�run
s
z
Plugin.runN)�__name__�
__module__�__qualname__rrrrrrsr�__main__)rZpluginsr
Z
BasePluginrr�executerrrr�<module>s