관리-도구
편집 파일: corosync.pyc
� u��ec @ s� d d l m Z m Z m Z m Z d d l Z d d l Z d e f d � � YZ d e e f d � � YZ d e e e f d � � YZ d S( i����( t Plugint RedHatPlugint DebianPlugint UbuntuPluginNt Corosyncc B s2 e Z d Z d Z d Z d Z d � Z d � Z RS( s Corosync cluster engine t corosynct clusterc C s� | j d d d g � | j d d d d d d d d g � | j d � d } t j j | � sd d Sd } ya t d � �O } xE | D]= } t j | | � r� | j t j | | � j d � � q� q� WWd QXWn* t k r� } | j d | | f � n Xd S( Ns /etc/corosyncs /var/lib/corosync/fdatas /var/log/cluster/corosync.logs corosync-quorumtool -ls corosync-quorumtool -ss corosync-cpgtools corosync-cfgtool -ss corosync-blackboxs corosync-objctl -as corosync-cmapctls corosync-cmapctl -m statss killall -USR2 corosyncs /etc/corosync/corosync.confs ^\s*(logging.)?logfile:\s*(\S+)$i s could not read from %s: %s( t add_copy_spect add_cmd_outputt exec_cmdt ost patht existst opent ret matcht searcht groupt IOErrort _log_warn( t selft corosync_conft patternt ft linet e( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/corosync.pyt setup s2 3c C s | j d d d � d S( Ns corosync-objctls (.*fence.*\.passwd=)(.*)s \1******( t do_cmd_output_sub( R ( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/corosync.pyt postproc: s ( R ( R ( t __name__t __module__t __doc__t plugin_namet profilest packagesR R ( ( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/corosync.pyR s $t RedHatCorosyncc B s e Z d � Z RS( c C s t t | � j � d S( N( t superR# R ( R ( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/corosync.pyR D s ( R R R ( ( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/corosync.pyR# B s t DebianCorosyncc B s e Z d � Z d Z RS( c C s t t | � j � d S( N( R$ R% R ( R ( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/corosync.pyR J s s /usr/sbin/corosync( s /usr/sbin/corosync( R R R t files( ( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/corosync.pyR% H s ( t sos.pluginsR R R R t os.pathR R R R# R% ( ( ( s8 /usr/lib/python2.7/site-packages/sos/plugins/corosync.pyt <module> s "4