HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
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