+
    G%@i3                     D    ^ RI Ht ^ RIHtHtHtHt  ! R R]]]4      tR# )    )gethostname)PluginRedHatPluginDebianPlugin	PluginOptc                   |   a  ] tR t^t o RtRtRtRtRt]	! R^dRR7      ]	! R^RR7      .t
R	tR	tR	tR
tR tR tRtV tR	# )PcpzPerformance Co-Pilot datapcpz/etc/pcp.conf	pmmgrlogszsize limit in MB of pmmgr logs)defaultdescpmloggerfilesz#number of pmlogger files to collectN c                    \        V P                  RRR7      ;_uu_ 4       pVP                  4       pRRR4       / pX FB  pTP	                  R4      '       d   K   TP                  4       P                  R4      w  rVYcT&   KD  	   TR,          T n	        TR	,          T n
        TR
,          T n        R#   + '       g   i     L; i  \         d     R# i ; i  \        \        3 d     K  i ; i  \         d     R# i ; i)zParse PCP configuration rzUTF-8)encodingNF#=PCP_SYSCONF_DIRPCP_VAR_DIRPCP_LOG_DIRT)openpcp_conffile	readlinesIOError
startswithstripsplit
ValueErrorKeyErrorpcp_sysconf_dirpcp_var_dirpcp_log_dir	Exception)selfpcpconflinesenv_varslinekeyvalues   &      8/usr/lib/python3/dist-packages/sos/report/plugins/pcp.pypcp_parse_conffilePcp.pcp_parse_conffile'   s    	d''w??7))+ @ Ds###zz|11#6 % 	#+,=#>D '6D'6D
 / @? 		 )   		sQ    C B2C %C*C/ 2C	=C C CCC,+C,/C>=C>c                   V P                  R 4      '       d   RMV P                  R4      pV P                  R 4      '       d   RMV P                  R4      pV P                  4       '       g!   V P                  RV P                   24       R# V P	                  V P
                  R4      pV P                  V P                  V P                  V.4       V P                  V P	                  VR4      V P	                  VR4      V P	                  VR4      V P	                  VR	4      .4       \        4       V n
        V P                  R
8w  d   V P	                  V P                  RV P                  R4      pV P                  WARR7       ^ pV P	                  V P                  RV P                  R4      pV P                  RV 24      pVR,          ^ 8X  dM   VR,          P                  4        F1  pV P                  V^ R7       V^,           pV'       g   K)  WR8X  g   K1   M	  V P                  V P	                  V P                  R4      V P	                  V P                  R4      V P	                  V P
                  R4      V P	                  V P                  R4      V P	                  V P                  R4      V P	                  V P                  R4      .4       V P                  R4      pVR,          ^ 8X  dh   VR,          P                  4        FJ  pVP                  R4      '       g   K  VP!                  4       R,          p	V P#                  RV	 2RR7        R# 	  R# R# ) all_logsNr   r   zcould not parse configpmchart	pmlogconfpmieconfpmlogrewriter   pmmgr*F)	sizelimittailitpmloggerzls -t1 statusoutput)r8   pmcdzNOTICES*pmnsz*/*.log*z
*/*/*.log*z*/*/config*r
   z
 pmlogger:z%pmstat -S 00:00 -T 23:59 -t 5m -x -a pmstat)root_symlink)
get_optionr-   	_log_warnr   	path_joinr"   add_copy_specr!   add_forbidden_pathr   pcp_hostnamer#   exec_cmd
splitlinescollect_cmd_outputr   r   add_cmd_output)
r%   r8   
countlimitvar_conf_dirpathfiles_collectedpmlogger_lsr)   resarcs
   &         r,   setup	Pcp.setupC   s   !__Z88T//+6 	"ooj99d???; 	 &&((NN-d.?.?-@AB ~~d&6&6A  
 	 	NN<3NN<5NN<4NN<8	!
 	$ (M ">>$"2"2G"&"3"3S:DtGO>>$"2"2J"&"3"3S:D--'$(89K8$)'1<<>D&&tq&9&5&9O!zo&C	 ? 	NN4++V4NN4++Z8NN4++V4 NN4++Z8NN4++\:NN4++];
 	 %%e,x=AH002??<00**,r*C''?uE%- (   3     )rG   r#   r!   r"   )systemperformance)r
   )__name__
__module____qualname____firstlineno__
short_descplugin_nameprofilespackagesr   r   option_listr!   r"   r#   rG   r-   rS   __static_attributes____classdictcell__)__classdict__s   @r,   r	   r	      sl     ,JK(HH"L 	+s7	9/2<	>K OKKL8W WrU   r	   N)socketr   sos.report.pluginsr   r   r   r   r	    rU   r,   <module>rg      s"     L LK&, KrU   