관리-도구
편집 파일: collectd.pyo
� u��ec @ sQ d d l Z d d l m Z m Z m Z m Z d e e e e f d � � YZ d S( i����N( t Plugint RedHatPlugint DebianPlugint UbuntuPlugint Collectdc B s8 e Z d Z d Z d Z d Z d Z d � Z d � Z RS( s# Collectd config collector t collectdt servicest webservers) /var/log/containers/collectd/collectd.logc C s� | j d d d d g � t j d � } yW t d � �E } x; | D]3 } | j | � rA | j d | j � d � qA qA WWd QXWn$ t k r� } | j d | � n Xd S( Ns /etc/collectd.confs /etc/collectd.d/*.confs) /var/log/containers/collectd/collectd.logs /var/lib/config-data/collectds ^LoadPlugin.*s Active Plugin found: %si����s% could not open /etc/collectd.conf: %s( t add_copy_spect ret compilet opent matcht add_alertt splitt IOErrort _log_warn( t selft pt ft linet e( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/collectd.pyt setup s #c C sO d d d d g } d d j | � } | j d | d � | j d | d � d S( Nt Passwordt Users [<]*URLt Addresss ((?m)^[#]*\s*(%s)\s* \s*)(.*)t |s /etc/collectd.d/*.confs \1"*********"s /etc/collectd.conf( t joint do_path_regex_subt do_file_sub( R t protect_keyst regexp( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/collectd.pyt postproc- s ( R R ( R ( t __name__t __module__t __doc__t plugin_namet profilest packagest filesR R ( ( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/collectd.pyR s ( R t sos.pluginsR R R R R ( ( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/collectd.pyt <module> s "