+
    i  c                   s>    ^ RI H t  ^ RIHtHtHt  ! R R]]4      tR# )i    )glob)PluginRedHatPlugin	PluginOptc                   sT   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)ZdefaultZdescc                sj   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.
NZrzUTF-8)ZencodingZ#Z=zlog-dir)ZopenZsplitZstripZ
ValueError)self	conf_filelog_dirZconf_fZlineZkeyZvalues   &&     @/usr/lib/python3.14/site-packages/sos/report/plugins/watchdog.pyget_log_dirZ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                s   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: NZall_logsZ*z*.stdoutz*.stderrz/dev/watchdog*zwdctl )Z	path_joinZ
get_optionZadd_copy_specr   ZIOErrorZ	_log_warnr    Zadd_cmd_output)r   r   r	   ZresZexZ	log_filesZdevs   &      r
   setupZ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)Zsystem)r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__Z
short_descZplugin_nameZprofilesZpackagesr   Zoption_listr   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r
   r   r      sA     (JKHH 	+';-	/K
2'0 '0    r   N)r    Zsos.report.pluginsr   r   r   r   r   r   r
   <module>r      s      > >L0v| L0r   