https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/collectd.cpython-310.pyc
o

-�_g��@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@s0eZdZdZdZdZdZdZdd�Zdd	�Z	d
S)�CollectdzCollectd config collector�collectd)�services�	webserver)r)�)/var/log/containers/collectd/collectd.logz/var/log/collectd/collectd.logc
Cs�|�gd��t�d�}z7|�d�}t|ddd�� }|D]}|�|�r/|�d|��d���qWd�WdS1s<wYWdSty^}z|�	d	|���WYd}~dSd}~ww)
N)�/etc/collectd.conf�/etc/collectd.d/*.confrz@/var/lib/config-data/puppet-generated/collectd/etc/collectd.confzD/var/lib/config-data/puppet-generated/collectd/etc/collectd.d/*.confz
^LoadPlugin.*r	�rzUTF-8)�encodingzActive Plugin found: ���z#could not open /etc/collectd.conf: )
�
add_copy_spec�re�compile�	path_join�open�match�	add_alert�split�IOError�	_log_warn)�self�plugin�cfile�file�line�err�r�=/usr/lib/python3/dist-packages/sos/report/plugins/collectd.py�setups"
	


���&���zCollectd.setupcCs:gd�}dd�|��d�}|�d|d�|�d|d�dS)N)�Password�Userz[<]*URL�Addressz
(^[#]*\s*(�|z
)\s* \s*)(.*)r
z
\1"*********"r	)�join�do_path_regex_sub�do_file_sub)r�protect_keys�regexprrr�postproc0s�zCollectd.postprocN)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�packages�filesr r*rrrrrsr)r�sos.report.pluginsrrrrrrr�<module>s	

https://t.me/RX1948 - 2025