Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �g� � @ sj d dl mZ d dlmZmZmZ yd dlmZ W n ek rP d dlmZ Y nX G dd� deee�Z dS )� )�match)�Plugin�RedHatPlugin�DebianPlugin)�urlparsec @ s. e Zd ZdZdZdZd ZdZefZdd� Z dS ) �HAProxyzHAProxy load balancer�haproxy� webserverz-/var/lib/config-data/puppet-generated/haproxyc C s� | j d| jd g� | j d� | jd� | j d� | jd� | jdd� d }d }yTd}t|ddd ��8}x0|j� j� D ] }|r�|j� d }P t d|�}qtW W d Q R X W n t k r� Y nX |s�d S td| �jd kr�|d }| jd| d dd� d S )Nz/etc/haproxy/haproxy.cfgz/etc/haproxy/conf.d/*z&haproxy -f /etc/haproxy/haproxy.cfg -cz/var/log/haproxy.logr )Zunits�rzUTF-8)�encoding� z.*haproxy\.stats.*zhttp://z:1993zcurl http://z/\;csvzhaproxy_overview.txt)Zsuggest_filename) Z add_copy_spec�var_puppet_genZadd_cmd_outputZadd_service_statusZadd_journal�open�read� splitlines�splitr �IOErrorr Zport)�selfZmatchedZprovision_ipZ _haproxy_fileZhfile�line� r �/usr/lib/python3.6/haproxy.py�setup s4 z HAProxy.setupN)r )r ) �__name__� __module__�__qualname__Z short_descZplugin_nameZprofilesZpackagesr �filesr r r r r r s r N) �rer Zsos.report.pluginsr r r Zurllib.parser �ImportErrorr r r r r �<module> s