Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/rabbitmq.cpython-36.pyc

3

�f�
�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s<eZdZdZdZd
ZdZdedfZdZdd	�Z	d
d�Z
dS)�RabbitMQzRabbitMQ messaging service�rabbitmq�servicesz./var/lib/config-data/puppet-generated/rabbitmqz/etc/rabbitmq/rabbitmq.confz/etc/rabbitmq/rabbitmq.config�rabbitmq-servercCs�d}g}|j�}x,|D]$}|djd�rd}|j|d�qW|r�xT|D]2}|j|�|jd|ddd�|jd|dd	d
�qHWn|jd�|jdd	d�|jd|jd|jd
|jdg�|jdg�|jddd��|jdgdd�dS)NF�rTzrabbitmqctl reportZrabbitmq_report)�	container�
foregroundZtagsz4rabbitmqctl eval 'rabbit_diagnostics:maybe_stuck().'�
)r	r
�timeout)rz/etc/rabbitmq/*z/etc/security/limits.d/z
/etc/systemd/z/var/log/rabbitmq/*Z
rabbitmq_logsZrabbitmq_startup_err)z'/var/log/rabbitmq/rabbit@.*[^-sasl].logz/var/log/rabbitmq/startup_errz+/var/log/containers/rabbitmq/erl_crash.dumpr)Z	sizelimit)Zget_containers�
startswith�appendZadd_container_logsZadd_cmd_outputZ
add_copy_spec�var_puppet_genZ
add_file_tags)�selfZin_containerZcontainer_namesZ_containersZ_conr	�r�/usr/lib/python3.6/rabbitmq.py�setupsJ




zRabbitMQ.setupcCs|jddd�dS)Nz/etc/rabbitmq/rabbitmq.confz(\s*default_pass\s*,\s*)\S+z\1<<***>>},)Zdo_file_sub)rrrr�postprocLszRabbitMQ.postprocN)r)r)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesr�filesZpackagesrrrrrrrs
4rN)Zsos.report.pluginsrrrrrrr�<module>	s

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