Fortinet black logo

User Guide

Remove an instance automatically

24.1.0
Copy Link
Copy Doc ID af1daa65-c273-11ec-9fd1-fa163e15d75b:512895
Download PDF

Remove an instance automatically (FortiMonitor Agent)

You can use the Agent Manifest File to automate the addition of instances into FortiMonitor upon the installation of the Agent on a server. This is written up in detail here. This, in conjunction with Templates, allows you to achieve a fully hands-off configuration experience. You can factor this into whichever server provisioning/automation mechanism you have in place.

In a dynamic auto-scaling environment, you may want to be able to automatically remove those instances from FortiMonitor as well. This can be done by initiating the uninstall with a special parameter. This will deregister the agent in Panopta (to avoid any alerts) as well as remove the instance from your Panopta account. When the server is going to be scaled down and removed, initiate the following commands based on your operating system:

sudo python /usr/bin/fm-agent/fm_agent.py --uninstall --remove-instance

For Linux

This feature is only available on newer versions of the Agent. If you are running an older version, upgrade the Agent first.

Remove an instance automatically (FortiMonitor Agent)

You can use the Agent Manifest File to automate the addition of instances into FortiMonitor upon the installation of the Agent on a server. This is written up in detail here. This, in conjunction with Templates, allows you to achieve a fully hands-off configuration experience. You can factor this into whichever server provisioning/automation mechanism you have in place.

In a dynamic auto-scaling environment, you may want to be able to automatically remove those instances from FortiMonitor as well. This can be done by initiating the uninstall with a special parameter. This will deregister the agent in Panopta (to avoid any alerts) as well as remove the instance from your Panopta account. When the server is going to be scaled down and removed, initiate the following commands based on your operating system:

sudo python /usr/bin/fm-agent/fm_agent.py --uninstall --remove-instance

For Linux

This feature is only available on newer versions of the Agent. If you are running an older version, upgrade the Agent first.