HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/haproxy.cpython-38.pyc
U

i��d-	�@sjddlmZmZmZddlmZzddlmZWn ek
rPddlmZYnXGdd�deee�Z	dS)�)�Plugin�RedHatPlugin�DebianPlugin)�match)�urlparsec@s.eZdZdZdZdZdZdZefZdd�Z	dS)	�HAProxyzHAProxy load balancer�haproxy)Z	webserver)rz-/var/lib/config-data/puppet-generated/haproxycCs�|�d|jdg�|�d�|�d�|�d�|�d�|jdd�d}d}z8td�����D]"}|rz|��d}q�t	d|�}qbWnt
k
r�YnX|s�dStd	|�jdkr�|d
}|jd|dd
d�dS)Nz/etc/haproxy/haproxy.cfgz/etc/haproxy/conf.d/*z&haproxy -f /etc/haproxy/haproxy.cfg -cz/var/log/haproxy.logr)Zunits�z.*haproxy\.stats.*zhttp://z:1993zcurl http://z/\;csvzhaproxy_overview.txt)Zsuggest_filename)
Z
add_copy_spec�var_puppet_genZadd_cmd_outputZadd_service_statusZadd_journal�open�read�
splitlines�splitr�IOErrorrZport)�selfZmatchedZprovision_ip�line�r�</usr/lib/python3/dist-packages/sos/report/plugins/haproxy.py�setups4�



�z
HAProxy.setupN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesr
�filesrrrrrrsrN)
Zsos.report.pluginsrrr�rerZurllib.parser�ImportErrorrrrrr�<module>s