HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/status.cpython-310.pyc
o

�N�g��@s"dZddgZddd�Zdd�ZdS)zB
Minion status monitoring

Maps to the `status` execution module.
�loadavg�processNcCs�|ddiid�}td�}||vr#d|d<|dd|�d�7<|S|r3|r3||kr3|dd	7<|dr9|St||�}|||d
<|rW|t|�krWd�||�|d<|S|rk|t|�krkd|�d
|��|d<|Sd|d<d|d<|S)z�
    Return the current load average for the specified minion. Available values
    for name are `1-min`, `5-min` and `15-min`. `minimum` and `maximum` values
    should be passed in as strings.
    F���name�result�commentZchanges�datazstatus.loadavgrrzRequested load average z not available zMin must be less than maxrz%Load avg is below minimum of {} at {}zLoad avg above maximum of z at zLoad avg in acceptable rangeT)�__salt__�float�format)rZmaximumZminimum�retrZcap�r
�F/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/status.pyr
s<�
�cCsp|ddiid�}td|�}|s"d|d<|dd|�d�7<|S||d	<|dd|�d
�7<d|d<|S)z�
    Return whether the specified signature is found in the process tree. This
    differs slightly from the services states, in that it may refer to a
    process that is not managed via the init system.
    Frrz
status.pidrrzProcess signature "z" not found rz" was found T)r	)rrrr
r
rr6s�)NN)�__doc__Z__monitor__rrr
r
r
r�<module>s�
)