Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Num Assign NameStore Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return CompareGt BinOpSub NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return CompareGt BinOpSub NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd UnaryOpNot NameLoad CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Continue Assign NameStore NameLoad For NameStore NameLoad body TryExcept body If CompareEq NameLoad Str body Assign NameStore NameLoad If NameLoad body If CompareEq Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad Call AttributeLoad Str attr NameLoad body Assign NameStore NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise orelse If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Break Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults vararg kwarg body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore Dict If BoolOpAnd CompareEq NameLoad Str BoolOpOr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Return NameLoad orelse If BoolOpAnd CompareEq NameLoad Str UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad TryExcept body Assign NameStore Call Call NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse For NameStore NameLoad body TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str ListLoad Str Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Str ListLoad Str attr Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr BinOpSub SubscriptLoad NameLoad Index Str NameLoad orelse Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str ListLoad Str Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str ListLoad Str Str Str Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Num If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad BinOpMod Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore ListComp NameLoad comprehension NameStore SubscriptLoad NameLoad Index NameLoad CompareIsNot NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad BinOpMod Str NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str If BoolOpAnd UnaryOpNot NameLoad CompareLt NameLoad Num body Assign NameStore AttributeLoad NameLoad attr orelse If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Num Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Num Call NameLoad Str If BoolOpOr CompareLt SubscriptLoad NameLoad Index Num NameLoad CompareLt NameLoad SubscriptLoad NameLoad Index Num body Assign NameStore AttributeLoad NameLoad attr If BoolOpOr CompareLt SubscriptLoad NameLoad Index Num NameLoad CompareLt NameLoad SubscriptLoad NameLoad Index Num body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword BinOpMod NameLoad TupleLoad SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad decorator_list decorator_list
N/A collections defaultdict N/A time N/A psutil checks AgentCheck config _is_affirmative utils.platform Platform N/A DEFAULT_AD_CACHE_DURATION 120 N/A DEFAULT_PID_CACHE_DURATION 120 N/A ATTR_TO_METRIC N/A thr cpu rss vms real open_fd r_count w_count r_bytes w_bytes ctx_swtch_vol ctx_swtch_invol threads cpu.pct mem.rss mem.vms mem.real open_file_descriptors ioread_count iowrite_count ioread_bytes iowrite_bytes voluntary_ctx_switches involuntary_ctx_switches ProcessCheck N/A AgentCheck N/A __init__ N/A N/A self name init_config agentConfig instances N/A None N/A N/A N/A N/A AgentCheck __init__ self name init_config agentConfig instances N/A N/A self last_ad_cache_ts 0 N/A N/A self ad_cache N/A set N/A N/A self access_denied_cache_duration N/A int N/A N/A init_config get access_denied_cache_duration DEFAULT_AD_CACHE_DURATION N/A N/A self last_pid_cache_ts N/A N/A N/A self pid_cache N/A N/A N/A self pid_cache_duration N/A int N/A N/A init_config get pid_cache_duration DEFAULT_PID_CACHE_DURATION N/A should_refresh_ad_cache N/A N/A self N/A N/A N/A now N/A N/A time time N/A N/A N/A now N/A self last_ad_cache_ts N/A self access_denied_cache_duration N/A should_refresh_pid_cache N/A N/A self name N/A N/A N/A now N/A N/A time time N/A N/A N/A now N/A N/A N/A self last_pid_cache_ts get name 0 N/A self pid_cache_duration N/A find_pids N/A N/A self name search_string exact_match ignore_ad refresh_ad_cache N/A True True N/A N/A 
        Create a set of pids of selected processes.
        Search for search_string
         N/A N/A N/A N/A self should_refresh_pid_cache name N/A N/A N/A N/A self pid_cache N/A name N/A ad_error_logger N/A N/A self log debug N/A N/A ignore_ad N/A N/A ad_error_logger N/A N/A self log error N/A refresh_ad_cache N/A N/A self should_refresh_ad_cache N/A matching_pids N/A set N/A proc N/A N/A psutil process_iter N/A N/A N/A N/A refresh_ad_cache N/A N/A proc pid N/A self ad_cache N/A N/A N/A found False N/A string search_string N/A N/A N/A N/A N/A string All N/A N/A found True N/A exact_match N/A N/A N/A N/A N/A proc name string N/A N/A found True N/A N/A cmdline N/A N/A proc cmdline N/A N/A string N/A N/A join cmdline N/A N/A found True N/A N/A N/A N/A psutil NoSuchProcess N/A N/A N/A N/A N/A self log warning Process disappeared while scanning N/A N/A N/A psutil AccessDenied N/A e N/A N/A N/A ad_error_logger Access denied to process with PID %s N/A proc pid N/A N/A ad_error_logger Error: %s e N/A refresh_ad_cache N/A N/A N/A N/A N/A self ad_cache add N/A proc pid N/A N/A ignore_ad N/A N/A N/A N/A refresh_ad_cache N/A N/A N/A N/A N/A self ad_cache discard N/A proc pid N/A found N/A N/A N/A N/A matching_pids add N/A proc pid N/A N/A N/A N/A self pid_cache N/A name matching_pids N/A N/A N/A self last_pid_cache_ts N/A name N/A N/A time time N/A matching_pids N/A psutil_wrapper N/A N/A self process method accessors N/A args kwargs N/A N/A 
        A psutil wrapper that is calling
        * psutil.method(*args, **kwargs) and returns the result
        OR
        * psutil.method(*args, **kwargs).accessor[i] for each accessors given in
        a list, the result being indexed in a dictionary by the accessor name
         N/A N/A accessors None N/A N/A result None N/A N/A result N/A N/A N/A N/A method memory_info_ex N/A N/A N/A Platform is_win32 N/A N/A Platform is_solaris N/A N/A result N/A N/A N/A N/A method num_fds N/A N/A N/A Platform is_unix N/A N/A result N/A N/A N/A res N/A N/A getattr process method args kwargs N/A N/A accessors None N/A N/A result res N/A N/A acc accessors N/A N/A N/A N/A N/A result N/A acc N/A getattr res acc N/A N/A N/A AttributeError N/A N/A N/A N/A N/A self log debug psutil.%s().%s attribute does not exist method acc N/A N/A N/A N/A NotImplementedError AttributeError N/A N/A N/A N/A N/A self log debug psutil method %s not implemented method N/A N/A N/A psutil AccessDenied N/A N/A N/A N/A N/A self log debug psutil was denied acccess for method %s method N/A N/A N/A psutil NoSuchProcess N/A N/A N/A N/A self warning N/A N/A Process {0} disappeared while scanning format N/A process pid N/A result N/A get_process_state N/A N/A self name pids cpu_check_interval N/A N/A N/A st N/A defaultdict list N/A pid pids N/A N/A N/A N/A N/A st N/A pids append pid N/A N/A N/A p N/A N/A psutil Process pid N/A N/A N/A N/A psutil NoSuchProcess N/A N/A N/A N/A self warning N/A Process %s disappeared while scanning pid N/A N/A N/A self last_pid_cache_ts N/A name 0 N/A N/A meminfo N/A N/A self psutil_wrapper p memory_info N/A rss vms N/A N/A N/A N/A st N/A rss append N/A N/A meminfo get rss N/A N/A N/A N/A st N/A vms append N/A N/A meminfo get vms N/A shared_mem N/A N/A N/A N/A self psutil_wrapper p memory_info_ex N/A shared get shared N/A N/A N/A shared_mem None N/A N/A N/A meminfo get rss None N/A N/A N/A N/A N/A st N/A real append N/A N/A meminfo N/A rss shared_mem N/A N/A N/A N/A N/A st N/A real append None N/A ctxinfo N/A N/A self psutil_wrapper p num_ctx_switches N/A voluntary involuntary N/A N/A N/A N/A st N/A ctx_swtch_vol append N/A N/A ctxinfo get voluntary N/A N/A N/A N/A st N/A ctx_swtch_invol append N/A N/A ctxinfo get involuntary N/A N/A N/A N/A st N/A thr append N/A N/A self psutil_wrapper p num_threads None N/A N/A N/A N/A st N/A cpu append N/A N/A self psutil_wrapper p cpu_percent None cpu_check_interval N/A N/A N/A N/A st N/A open_fd append N/A N/A self psutil_wrapper p num_fds None N/A ioinfo N/A N/A self psutil_wrapper p io_counters N/A read_count write_count read_bytes write_bytes N/A N/A N/A N/A st N/A r_count append N/A N/A ioinfo get read_count N/A N/A N/A N/A st N/A w_count append N/A N/A ioinfo get write_count N/A N/A N/A N/A st N/A r_bytes append N/A N/A ioinfo get read_bytes N/A N/A N/A N/A st N/A w_bytes append N/A N/A ioinfo get write_bytes N/A st N/A check N/A N/A self instance N/A N/A N/A name N/A N/A instance get name None N/A tags N/A N/A instance get tags N/A N/A exact_match N/A _is_affirmative N/A N/A instance get exact_match True N/A search_string N/A N/A instance get search_string None N/A ignore_ad N/A _is_affirmative N/A N/A instance get ignore_denied_access True N/A cpu_check_interval N/A N/A instance get cpu_check_interval 0.1 N/A N/A N/A isinstance search_string list N/A N/A N/A KeyError "search_string" parameter should be a list N/A N/A All search_string N/A N/A N/A N/A self warning Deprecated: Having "All" in your search_string willgreatly reduce the performance of the check and will be removed in a future version of the agent. N/A N/A name None N/A N/A N/A KeyError The "name" of process groups is mandatory N/A N/A search_string None N/A N/A N/A KeyError The "search_string" is mandatory N/A N/A N/A isinstance cpu_check_interval N/A int long float N/A N/A N/A N/A self warning cpu_check_interval must be a number. Defaulting to 0.1 N/A cpu_check_interval 0.1 N/A pids N/A N/A self find_pids name search_string exact_match ignore_ad ignore_ad N/A proc_state N/A N/A self get_process_state name pids cpu_check_interval N/A N/A N/A tags extend N/A N/A process_name:%s name name N/A N/A N/A N/A self log debug ProcessCheck: process %s analysed name N/A N/A N/A self gauge system.processes.number N/A len pids tags tags N/A N/A attr mname N/A N/A ATTR_TO_METRIC iteritems N/A N/A vals N/A x N/A x N/A proc_state N/A attr N/A x None N/A vals N/A N/A N/A N/A self gauge N/A system.processes.%s mname N/A sum vals tags tags N/A N/A N/A self _process_service_check name N/A len pids N/A N/A instance get thresholds None N/A _process_service_check N/A N/A self name nb_procs bounds N/A N/A N/A 
        Report a service check, for each process in search_string.
        Report as OK if the process is in the warning thresholds
                   CRITICAL             out of the critical thresholds
                   WARNING              out of the warning thresholds
         N/A tag N/A N/A process:%s name N/A status N/A AgentCheck OK N/A message_str PROCS %s: %s processes found for %s N/A status_str N/A N/A AgentCheck OK N/A AgentCheck WARNING N/A AgentCheck CRITICAL OK WARNING CRITICAL N/A N/A N/A bounds N/A nb_procs 1 N/A N/A status N/A AgentCheck CRITICAL N/A N/A bounds N/A N/A warning N/A N/A bounds get warning N/A 1 N/A float inf N/A critical N/A N/A bounds get critical N/A 1 N/A float inf N/A N/A N/A N/A warning N/A 1 nb_procs N/A nb_procs N/A warning N/A 0 N/A N/A status N/A AgentCheck WARNING N/A N/A N/A N/A critical N/A 1 nb_procs N/A nb_procs N/A critical N/A 0 N/A N/A status N/A AgentCheck CRITICAL N/A N/A N/A self service_check process.up status tags tag message N/A message_str N/A N/A status_str N/A status nb_procs name N/A N/A