id> <ddlmZmZmZddlmZGddeeZy))Plugin RedHatPlugin PluginOpt)globc@eZdZdZdZdZdZedddgZd Z d Z y ) WatchdogzWatchdog information.watchdog)system)r conf_filez/etc/watchdog.confzwatchdog config file)defaultdescc2d}t|d5}|D]]}|jddj} |jdd\}}|jdk(r|j}_ ddd|S#t$rYvwxYw#1swY|SxYw)aGet 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. Nr#r=zlog-dir)opensplitstrip ValueError)selfr log_dirconf_flinekeyvalues =/usr/lib/python3/dist-packages/sos/report/plugins/watchdog.py get_log_dirzWatchdog.get_log_dirs )S ! V zz#q)//1#'::c1#5LS%yy{i/"'++-   " s.(B 8A=0B = B B B  B  Bc|j|jd}|jd}|j|dg|jddg |j|}|r|}|jd rt |j|d }n7t |j|d t |j|d z}|j|t |jd D]}|jd|zy#t$r!}|j d|d|Yd}~d}~wwxYw)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/scriptszCould not read z: Nall_logs*z*.stdoutz*.stderrz/dev/watchdog*zwdctl %s) path_join get_option add_copy_specrIOError _log_warnradd_cmd_output)rr rresex log_filesdevs rsetupzWatchdog.setup4s: NN4??;#?@ ..!45   %    +   F""9-C ??: &T^^GS9:IdnnWjABdnnWjABCI 9%'789 2C    S 0 1 2 F NNiD E E FsD E D<<EN) __name__ __module__ __qualname__ short_desc plugin_nameprofilespackagesr option_listrr,rrrs9(JKHH +';- /K 0'2r6rN)sos.report.pluginsrrrrrr5r6rr8s ?>K2v|K2r6