CyberAlphaWolf

Server : Apache
System : Linux 182.49.167.72.host.secureserver.net 4.18.0-553.92.1.el8_10.x86_64 #1 SMP Wed Jan 14 06:31:58 EST 2026 x86_64
User : kikai ( 1014)
PHP Version : 8.3.30
Disable Function : NONE
Directory :  /lib/fm-agent/countermeasures/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/fm-agent/countermeasures/plugins/__pycache__/reboot.cpython-36.pyc
3

,`riL�@s$dZddlmZGdd�de�ZdS)zm
FortiMonitor Reboot Countermeasure

Copyright 2023 Fortinet, Inc. All Rights Reserved.
fm-ops@fortinet.com

�)�CountermeasurePluginc@s6eZdZdZdZdZdZdZdZdgZ	dZ
d	d
�ZdS)�RebootCountermeasurez
Reboot ServerZrebootzReboot the server�iN�shutdownzsupport@panopta.comcCs,|jddd�\}}|jd�|jtj�dS)z�
        Issue a "shutdown -r" command, with an 15 second sleep to give us time report the result
        back to Panopta before the reboot happens.
        zsleep 15; sudo -n shutdown -rF)�blockzServer reboot initiatedN)�execute�save_text_output�save_return_code�c�return_code)�selfr�output�r�3/usr/lib/fm-agent/countermeasures/plugins/reboot.py�runs
zRebootCountermeasure.run)�__name__�
__module__�__qualname__�name�textkey�description�wall_announce_delay�
max_frequency�max_runtime�sudo_requirements�authorrrrrrrsrN)�__doc__rrrrrr�<module>s

XYZEAZ - Cyber Alpha Wolf © All Rights Reserved