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 Support Bundle, 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 it is possible to import the rules on the new server by using the Foglight command line interface:
$FMS_HOME\bin\fglcmd -srv server_name -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, go to path \Export_Import_Rules-1_0_0\rules-1_0_0\ and then replace rule.xml with 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.
Note: Export and import of rules can also be completed entirely via the cartridge builder, for additional information refer to Migrating Custom Registry Variables, Rules and Configuration from one FMS to another (4316073).
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center