+
    G%@i                     >    ^ RI H t  ^ RIHtHtHt  ! R R]]4      tR# )    )glob)PluginRedHatPlugin	PluginOptc                   T   a  ] tR t^t o RtRtRtRt]! RRRR7      .t	R t
R tR	tV tR
# )WatchdogzWatchdog information.watchdog	conf-filez/etc/watchdog.confzwatchdog config file)defaultdescc                j   Rp\        VRRR7      ;_uu_ 4       pV Fe  pVP                  R4      ^ ,          P                  4       p VP                  R^4      w  rVVP                  4       R8X  d   VP                  4       pKe  Kg  	  RRR4       V#   \         d     K  i ; i  + '       g   i     T# ; i)zGet watchdog log directory.

Get watchdog log directory path configured in ``conf_file``.

:returns: The watchdog log directory path.
:returntype: str.
:raises: IOError if ``conf_file`` is not readable.
NrzUTF-8)encoding#=zlog-dir)opensplitstrip
ValueError)self	conf_filelog_dirconf_flinekeyvalues   &&     =/usr/lib/python3/dist-packages/sos/report/plugins/watchdog.pyget_log_dirWatchdog.get_log_dir   s     )S733vzz#q)//1#'::c1#5LSyy{i/"'++- 0  4 	 "  43 s/   ,B!9B?B!B	B!B	B!!B2	c                   V P                  V P                  R4      4      pV P                  R4      pV P                  VR.4       V P                  RR.4        V P                  V4      pV'       d   TpT P                  R	4      '       d   \        T P                  TR
4      4      pM;\        T P                  TR4      4      \        T P                  TR4      4      ,           pT P                  T4       \        T P                  R4      4       F  pT P                  RT 24       K  	  R#   \         d"   pT P                  RT RT 24        Rp?LRp?ii ; i)zCollect watchdog information.

Collect configuration files, custom executables for test-binary
and repair-binary, and stdout/stderr logs.
r
   z/var/log/watchdogz/etc/sysconfig/watchdogz/etc/watchdog.dz/usr/libexec/watchdog/scriptszCould not read z: Nall_logs*z*.stdoutz*.stderrz/dev/watchdog*zwdctl )	path_join
get_optionadd_copy_specr   IOError	_log_warnr   add_cmd_output)r   r   r   resex	log_filesdevs   &      r   setupWatchdog.setup4   sA    NN4??;#?@	..!45 	%
 	 	+
 		@""9-C ??:&&T^^GS9:IdnnWjABdnnWjABCI 	9% '789C&/ :  	@NN_YKr">??	@s   D* 2D* *E5EE N)system)r	   )__name__
__module____qualname____firstlineno__
short_descplugin_nameprofilespackagesr   option_listr   r-   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sA     (JKHH 	+';-	/K
2'0 '0    r   N)r   sos.report.pluginsr   r   r   r   r/   r=   r   <module>r?      s      > >L0v| L0r=   