HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/collectd.cpython-39.pyc
a

^��c��@s.ddlZddlmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPluginc@s0eZdZdZdZdZdZdZdd�Zdd	�Z	d
S)�CollectdzCollectd config collector�collectd)ZservicesZ	webserver)r)�)/var/log/containers/collectd/collectd.logz/var/log/collectd/collectd.logc
Cs�|�gd��t�d�}z^t|�d�d��:}|D]$}|�|�r0|�d|��d�q0Wd�n1sj0YWn2ty�}z|�	d|�WYd}~n
d}~00dS)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)
Z
add_copy_spec�re�compile�openZ	path_join�matchZ	add_alert�split�IOErrorZ	_log_warn)�self�p�f�line�e�r�?/usr/lib/python3.9/site-packages/sos/report/plugins/collectd.py�setups	


�*zCollectd.setupcCs6gd�}dd�|�}|�d|d�|�d|d�dS)N)ZPasswordZUserz[<]*URLZAddressz((?m)^[#]*\s*(%s)\s* \s*)(.*)�|rz
\1"*********"r)�joinZdo_path_regex_subZdo_file_sub)rZprotect_keysZregexprrr�postproc/s�zCollectd.postprocN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackages�filesrrrrrrrsr)rZsos.report.pluginsrrrrrrr�<module>
s