⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.222
Server IP:
97.74.87.16
Server:
Linux 16.87.74.97.host.secureserver.net 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
fm-agent
/
plugins
/
__pycache__
/
View File Name :
process.cpython-39.pyc
a � �fGA � @ sT d dl Z d dlZd dlZzd dlZW n dZY n0 d dlZG dd� dej�ZdS )� Nc @ s0 e Zd ZdZdZedd� �Zdd� Zdd� Zd S ) � ProcessPlugin�process�Processc C s� t j}d }dtjv r t j}d }nrdtjv r6t j}d }n\dtjv rLt j}d }nFtd u rl| j�d� t j}d}n&tj � d�s�| j�d� t j}d}i S dtjv r�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�vmware�=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 running�booleanz&Process is running - full command line)�process.named_count�process.named_count.full�process.exists�process.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)�process.running_countr �process.named_memory_percentage�process.named_cpu_percentager �process.thread_countr z$process.named_memory_percentage.fullz process.named_memory_raw_mb.full�!process.named_cpu_percentage.fullr zprocess.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 � � � ��'�� � � � � � � � � � ��azProcessPlugin.get_metadatac &