
|
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 : |
3
,`riL � @ s$ d Z ddlmZ G dd� de�ZdS )zm
FortiMonitor Reboot Countermeasure
Copyright 2023 Fortinet, Inc. All Rights Reserved.
fm-ops@fortinet.com
� )�CountermeasurePluginc @ s6 e Zd ZdZdZdZdZdZdZdgZ dZ
d d
� ZdS )�RebootCountermeasurez
Reboot ServerZrebootzReboot the server� i N�shutdownzsupport@panopta.comc C s, | j ddd�\}}| 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�run s
zRebootCountermeasure.run)�__name__�
__module__�__qualname__�name�textkey�description�wall_announce_delay�
max_frequency�max_runtime�sudo_requirements�authorr r r r r r s r N)�__doc__r r r r r r �<module> s