![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
o i��d� � @ 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)�services� webserver)r )�)/var/log/containers/collectd/collectd.logz/var/log/collectd/collectd.logc C s� | � g d�� t�d�}z2t| �d�d��}|D ]}|�|�r*| �d|�� d � qW d � W d S 1 s7w Y W d S tyX } z| � d| � W Y d }~d S d }~ww )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 �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�setup s ���&���zCollectd.setupc C s6 g d�}dd� |� }| �d|d� | �d|d� d S )N)�Password�Userz[<]*URL�Addressz(^[#]*\s*(%s)\s* \s*)(.*)�|r z \1"*********"r )�join�do_path_regex_sub�do_file_sub)r �protect_keys�regexpr r r �postproc/ s �zCollectd.postprocN) �__name__� __module__�__qualname__� short_desc�plugin_name�profiles�packages�filesr r( r r r r r s r )r �sos.report.pluginsr r r r r r r �<module> s