HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/collectd.cpython-310.pyc
o

i��d��@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�}z2t|�d�d��}|D]}|�|�r*|�d|��d�qWd�WdS1s7wYWdStyX}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	�rzActive Plugin found: %s���z%could not open /etc/collectd.conf: %s)
�
add_copy_spec�re�compile�open�	path_join�match�	add_alert�split�IOError�	_log_warn)�self�p�f�line�e�r�=/usr/lib/python3/dist-packages/sos/report/plugins/collectd.py�setups 
	

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