Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • You have logged into Moogsoft AIOps as a user with the 'manage_integrations' role
  • You have the credentials to connect to MySQL and write to the database
  • You have prepared a .csv file containing the enrichment data you want to upload, as follows:
    The first line contains the field names.
    The values for one field match the values of a field in your raw alert data.
    See the sample file below:

    Code Block
    languagetext
    NameCode,SiteCode,Address,City,State,Zip
    AB2,GAF,9384 Ornare Road,Lansing,Michigan,76690
    CAV,GAF,133-5757 Sed Avenue,Racine,Wisconsin,42779
    GX2,TES,5722 Nulla Avenue,Springfield,Massachusetts,29957

...

Run the following command in MySQL to enable enrichment in the database:

Code Block
languagetext
UPDATE features 
SET enabled = 1 
WHERE feature_name = 'enrichment';

You can check that the feature was successfully enabled by running a command similar to the following:

Code Block
languagetext
SELECT feature_name, enabled
FROM features
WHERE feature_name = 'enrichment'

...

  1. Enable the Enricher Moolet to run on startup:

    Code Block
    languagetext
    {
       name               : "Enricher",
       classname          : "com.moogsoft.farmd.moolet.enricher.CEnricherMgr",
       run_on_startup     : true,
       persist_state      : false,
       metric_path_moolet : true,
       process_output_of  : "AlertBuilder",
       description        : "Alert Enrichment"
    }

    Click here for further information on the Enricher Moolet.

  2. Set the Maintenance Windows Manager Moolet to process the output of the Enricher:

    Code Block
    languagetext
    {
       name                     : "MaintenanceWindowManager",
       classname                : "CMaintenance",
       run_on_startup           : true,
       persist_state            : false,
       metric_path_moolet       : true,
       process_output_of        : "Enricher",
       maintenance_status_field : "maintenance_status",
       maintenance_status_label : "In maintenance",
       update_captured_alerts   : true
    }
  3. Save the changes and restart moogfarmd.

...