??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
òõ)gc @ s¸ d d l Z d d l Z d d l Z d d l m Z d d l m Z e ro d d l m Z m Z m
Z
m Z n e j d e d „ ƒ Z e e e d „ Z d „ Z d „ Z d
„ Z d S( iÿÿÿÿNi ( t log_utils( t utils( t Optionalt Tuplet Listt Unionc C sq | p d } x9 | D]1 } t j j | | ƒ } t j j | ƒ r | Sq W| ri t d j | | ƒ ƒ ‚ n d Sd S( Ns /usr/sbins /sbins /usr/bins /bins {0} could not be found at {1}( s /usr/sbins /sbins /usr/bins /bin( t ost patht joint isfilet Exceptiont formatt None( t namet pathst raise_exct itt fname( ( s3 /usr/libexec/kcare/python/kcarectl/process_utils.pyt find_cmd s
c
C sï | r t j n d } | r$ t j n d } t j | d | d | d | ƒ} | j ƒ \ } } | j } | d k r„ t j | ƒ } n | d k r¢ t j | ƒ } n t j t
j d ƒ j d | j d | d | d d j
| ƒ ƒ ƒ | | | f S( Nt stdoutt stderrt shells¡
Call result for `{cmd}`:
exit code {exit_code}
=== STDOUT ===
{stdout}
=== STDERR ===
{stderr}
=== END ===
t exit_codet cmdt ( t
subprocesst PIPER t Popent communicatet
returncodeR t nstrR t logdebugt textwrapt dedentR R (
t commandt catch_stdoutt catch_stderrR R R t pt stdout_capturedt stderr_capturedt code( ( s3 /usr/libexec/kcare/python/kcarectl/process_utils.pyt run_command s ! (c C s t | d t ƒ\ } } } | S( NR# ( R) t True( t argst _R ( ( s3 /usr/libexec/kcare/python/kcarectl/process_utils.pyt check_output= s c C s0 yð d d d d d t | ƒ g } t | d t ƒ\ } } } | re t j d j d | ƒ d t ƒd S| j ƒ } d d d d
d t | ƒ g } t | d t ƒ\ } } } | rÓ t j d j d | ƒ d t ƒd S| j ƒ } t | ƒ | f SWn9 t
k
r+} t j d j d | d
| ƒ d t ƒd SXd S( Nt pss --no-headerss -ot ppids -pR# s3 Could not retrieve process parent PID for PID {pid}t pidt print_msgt comms- Could not retrieve process name for PID {pid}sJ Could not retrieve process name and parent PID for PID {pid}, error: {err}t err( NN( NN( NN( t strR) R* R t loginfoR t FalseR t stript intR
( R0 t cmd_ppidR( R R, R/ t cmd_commR
t e( ( s3 /usr/libexec/kcare/python/kcarectl/process_utils.pyt _get_parent_pid_and_process_nameB s$ c C sñ g } t j ƒ } xW | d k rk | d k rk t | ƒ \ } } | j | | f ƒ | d k rb Pn | } q Wt j d d t ƒxk t t | ƒ ƒ D]W \ } \ } } d | d } t j d j
d | d | pÐ d
d | pÜ d
ƒ d t ƒq’ Wd S( Ni i s Agent parent processes chain:R1 t -s ->s {prefix} "{name}" (pid: {pid})t prefixR
t unknownR0 ( R t getpidR<