관리-도구
편집 파일: collectd.cpython-39.pyc
a ����-�_g�����������������������@���s.���d�dl�Z�d�dlmZmZ�G�dd��dee�ZdS�)�����N)�Plugin�IndependentPluginc�������������������@���s0���e�Zd�ZdZdZdZdZdZdd��Zdd ��Z d S�)�CollectdzCollectd config collector�collectd)ZservicesZ webserver)r���)�)/var/log/containers/collectd/collectd.logz/var/log/collectd/collectd.logc�������������� ���C���s����|���g�d���t�d�}zh|��d�}t|ddd��<}|D�]&}|�|�r8|��d|���d������q8W�d�����n1�st0����Y��W�n4�ty��}�z|�� d |�����W�Y�d�}~n d�}~0�0�d�S�) N)�/etc/collectd.conf�/etc/collectd.d/*.confr���z@/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: ) Z add_copy_spec�re�compileZ path_join�open�matchZ add_alert�split�IOErrorZ _log_warn)�selfZplugin�cfile�file�line�err��r����?/usr/lib/python3.9/site-packages/sos/report/plugins/collectd.py�setup���s���� �,zCollectd.setupc�����������������C���s:���g�d�}dd��|���d�}|��d|d��|��d|d��d�S�)N)ZPasswordZUserz[<]*URLZAddressz (^[#]*\s*(�|z )\s* \s*)(.*)r���z \1"*********"r���)�joinZdo_path_regex_subZdo_file_sub)r���Zprotect_keysZregexpr���r���r����postproc0���s�����zCollectd.postprocN) �__name__� __module__�__qualname__Z short_descZplugin_nameZprofilesZpackages�filesr���r���r���r���r���r���r������s���r���)r���Zsos.report.pluginsr���r���r���r���r���r���r����<module> ���s���