Is there is a way to export a single rule from MonitoringPolicies.xml file located on the Foglight Management Server SupportBundle and import it from the UI (User Interface)?
This is a way you can extract a single rule from MonitoringPolicies.xml file, located on the FMS SupportBundle, add it to a cartridge created using Cartridge builder and then import it using Cartridge Inventory:
1). Generate one support_bundle_management_server. Extract the Support Bundle and open MonitoringPolicies.xml, then locate the rule you need. This is one example(This is an extracted part of the whole rule):
2). Create a separate txt file, and paste the rule information you obtained from MonitoringPolicies.xml on this new file and then add the following bold lines at the beginning and at the end:
3). Save the file as rule.xml
At this point you can import the rules on the new server this way:
cd /d C:\Quest\Foglight\bin
fglcmd -srv NewserverName.com -usr foglight -pwd foglight -cmd util:configimport -f C:\rule.xml
4). Or if you want to import it from Foglight User Interface, please open Export_Import_Rules-1_0_0.car using a decompressing application such as 7zip, and go to this path \Export_Import_Rules-1_0_0\rules-1_0_0\
Replace rule.xml for the file created on the previous step.
5). Go to Administration │ Cartridges │ Cartridge Inventory
Click on "Install Cartridge", locate the cartridge and install it.
6). Go to Administration │ Management Server │ Rules & Notifications │ Rules
Choose "All Cartridges" and verify that the rule has been successfully installed
Note: Open attachment Export_Import_Rules-1_0_0.xml and look for rules.xml file to get the extra rule code you need to add to the extracted rule.