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__/temp.cpython-39.pyc
a

F�Eg��@s@ddlZddlZddlZGdd�dej�Zedkr<e���dS)�Nc@seZdZdZdd�ZdS)�Plugin�tempcGs�i}tjdkr�zddl}WnYdS0zH|jdd�}|��}|D](}|jdkrD|j||j�dd	��	d	�<qD|WSYd
S0t
td�s�dSzt��}WnYd
S0|�
�D]6\}}	|	D](}
|
d}|
ddkr�|}|
d||<q�q�|S)z�
        expirimental plugin used to collect temperature from system sensors
        plugin can be tested by running agent360 test temp
        �win32rNzwmi module not installed.zroot\OpenHardwareMonitor)�	namespaceZTemperature�/�-z:Could not fetch temperature data from OpenHardwareMonitor.�sensors_temperatureszplatform not supportedzcan't read any temperature��)�sys�platform�wmiZWMIZSensorZ
SensorType�ValueZParent�replace�strip�hasattr�psutilr�items)�selfZunused�datar
�wZtemperature_infosZsensorZtempsZdevicer�value�type�r�?/usr/local/lib/python3.9/site-packages/agent360/plugins/temp.py�run
s8


z
Plugin.runN)�__name__�
__module__�__qualname__rrrrrrsr�__main__)ZpluginsrrZ
BasePluginrr�executerrrr�<module>s
*