
|
Server : Apache System : Linux 182.49.167.72.host.secureserver.net 4.18.0-553.92.1.el8_10.x86_64 #1 SMP Wed Jan 14 06:31:58 EST 2026 x86_64 User : kikai ( 1014) PHP Version : 8.3.30 Disable Function : NONE Directory : /lib/fm-agent/plugins/__pycache__/ |
Upload File : |
3 ,`ri�D � @ sT d dl Z d dlZd dlZyd dlZW n dZY nX d dlZG dd� dej�ZdS )� Nc @ s0 e Zd ZdZdZedd� �Zdd� Zdd� Zd S ) � ProcessPlugin�process�Processc C s� t j}d }dtjkr t j}d }nrdtjkr6t j}d }n\dtjkrLt j}d }nFtd krl| jjd� t j}d}n&tj j d�s�| jjd� t j}d}i S dtjkr�d d ||d dd�d d ||d dd�dd ||ddd�dd ||ddd�d�}n�dd ||d d�d d ||d dd�dd ||ddd�dd ||ddd�dd ||ddd�dd ||ddd�d d ||d dd�dd ||ddd�dd ||ddd�dd ||ddd�dd ||ddd�dd ||ddd�d�}|S )N�aix�darwin�vmwarez=Unable to import psutil library, no process metrics availablezDUnable to import psutil library, please install and rebuild metadataz/procz/proc not foundzEnable procfs.zNumber of processes - name� processesT)�label�options�status� error_message�unit� option_stringz'Number of processes - full command linezProcess is runningZbooleanz&Process is running - full command line)zprocess.named_countzprocess.named_count.fullzprocess.existszprocess.exists.fullzNumber of processes running)r r r r r z%Memory percentage of processes - name�percentz"CPU percentage of processes - namez+Process Thread Count - executable name only�threadsz2Memory percentage of processes - full command linez2MB of memory used by processes - full command line�MBz/CPU percentage of processes - full command linez/Process Thread Count - executable name and args)zprocess.running_countzprocess.named_countzprocess.named_memory_percentagezprocess.named_cpu_percentagezprocess.existszprocess.thread_countzprocess.named_count.fullz$process.named_memory_percentage.fullz process.named_memory_raw_mb.fullz!process.named_cpu_percentage.fullzprocess.exists.fullzprocess.thread_count.full)� agent_util� SUPPORTED�sys�platform�psutil�log�info�UNSUPPORTED�os�path�exists)�self�configr �msg�metadata� r! �$/usr/lib/fm-agent/plugins/process.py�get_metadata s� zProcessPlugin.get_metadatac &