Current File : //lib/python2.7/site-packages/sos/plugins/corosync.pyo
�
u��ec@s�ddlmZmZmZmZddlZddlZdefd��YZdeefd��YZ	deeefd��YZ
dS(	i����(tPlugintRedHatPlugintDebianPlugintUbuntuPluginNtCorosynccBs2eZdZdZdZdZd�Zd�ZRS(s Corosync cluster engine
    tcorosynctclusterc	Cs�|jdddg�|jdddddd	d
dg�|jd�d
}tjj|�sddSd}yatd
��O}xE|D]=}tj||�r�|jtj	||�j
d��q�q�WWdQXWn*tk
r�}|jd||f�nXdS(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|jddd�dS(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__tplugin_nametprofilestpackagesRR(((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyRs	$tRedHatCorosynccBseZd�ZRS(cCstt|�j�dS(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#BstDebianCorosynccBseZd�ZdZRS(cCstt|�j�dS(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	(tsos.pluginsRRRRtos.pathR
RRR#R%(((s8/usr/lib/python2.7/site-packages/sos/plugins/corosync.pyt<module>	s
"4