HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/local/lib/python3.9/site-packages/agent360/plugins/__pycache__/redis_stat.cpython-39.pyc
a

F�Eg��@sZddlZddlZdddddddd	d
ddd
ddd�ZGdd�dej�ZedkrVe���dS)�NZuptimezconnected clientszused memoryzused memory peak human�	maxmemoryzmaxmemory policyztotal commands processedztotal net input bytesztotal net output byteszexpired keyszevicted keysz
keyspace hitszkeyspace misseszcluster enabled)Zuptime_in_secondsZconnected_clientsZused_memoryZused_memory_peak_humanrZmaxmemory_policyZtotal_commands_processedZtotal_net_input_bytesZtotal_net_output_bytesZexpired_keysZevicted_keysZ
keyspace_hitsZkeyspace_missesZcluster_enabledc@seZdZdZdd�ZdS)�PluginZ
redis_statc
Cs*i}d}z|�td�}Wnd}Yn0z|�td�}Wnd}Yn0z|�td�}Wnd}Yn0z|�td�}Wnd}Yn0ztj||||d	�}|��}WnHty�}	z0d
|d<d|d
<|s�|WYd}	~	SWYd}	~	n
d}	~	00|��D]$\}
}|
t��v�r||t|
<�q|S)N�hostz	127.0.0.1�portZ6379�db�0�password�)rrrrr�statuszConnection Error�msg)	�get�__name__�redisZStrictRedis�info�	Exception�items�METRICS�keys)�self�config�data�statsZ
redis_hostZ
redis_portZredis_dbZredis_passwordZredis_connection�e�name�value�r�E/usr/local/lib/python3.9/site-packages/agent360/plugins/redis_stat.py�runus<



&z
Plugin.runN)r
�
__module__�__qualname__rrrrrrrsr�__main__)ZpluginsrrZ
BasePluginrr
�executerrrr�<module>s&�k%