uec@sddlmZmZmZmZddlZddlZdefdYZdeefdYZ deeefdYZ dS( i(tPlugint RedHatPlugint DebianPlugint UbuntuPluginNtCorosynccBs2eZdZdZdZdZdZdZRS(s Corosync cluster engine tcorosynctclusterc Cs|jdddg|jdddddd d d g|jd d }tjj|sddSd}yatd O}xE|D]=}tj||r|jtj ||j dqqWWdQXWn*t k r}|j d||fnXdS(Ns /etc/corosyncs/var/lib/corosync/fdatas/var/log/cluster/corosync.logscorosync-quorumtool -lscorosync-quorumtool -sscorosync-cpgtoolscorosync-cfgtool -sscorosync-blackboxscorosync-objctl -ascorosync-cmapctlscorosync-cmapctl -m statsskillall -USR2 corosyncs/etc/corosync/corosync.confs ^\s*(logging.)?logfile:\s*(\S+)$iscould not read from %s: %s( t add_copy_spectadd_cmd_outputtexec_cmdtostpathtexiststopentretmatchtsearchtgrouptIOErrort _log_warn(tselft corosync_conftpatterntftlinete((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pytsetups2    3cCs|jddddS(Nscorosync-objctls(.*fence.*\.passwd=)(.*)s\1******(tdo_cmd_output_sub(R((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pytpostproc:s(R(R(t__name__t __module__t__doc__t plugin_nametprofilestpackagesRR(((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyRs  $tRedHatCorosynccBseZdZRS(cCstt|jdS(N(tsuperR#R(R((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyRDs(RRR(((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyR#BstDebianCorosynccBseZdZdZRS(cCstt|jdS(N(R$R%R(R((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyRJss/usr/sbin/corosync(s/usr/sbin/corosync(RRRtfiles(((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyR%Hs ( t sos.pluginsRRRRtos.pathR RRR#R%(((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyt s "  4