DX Unified Infrastructure Management

 View Only
  • 1.  Using Alarm enrichment to add OS

    Posted Sep 18, 2019 04:56 AM
    Hi All,

    I need to add OS name in alert  using alarm enrichment.
    Any suggestions how to do it 

    Thanks
    Anmol


  • 2.  RE: Using Alarm enrichment to add OS

    Posted Sep 18, 2019 05:13 AM
    Example that works on my system. You need to test this on your TEST system:
    Part of my nas.cfg:
    <enrichment-source>
    <cmdbs>
    <os_enricher>
    active = true
    connection_url = jdbc:sqlserver://sql_server:1433;DatabaseName=CA_UIM
    user = sa
    password = xxxxxxxxxxx==_encrypted
    query = select name,ip,os_type,mac from cm_computer_system with(nolock) where os_type != 'NULL' and name=?
    population_query = select name,ip,os_type,mac from cm_computer_system with(nolock) where os_type != 'NULL'
    </os_enricher>
    </cmdbs>
    </enrichment-source>
    <enrichment-rules>
    exclusive_enrichment = no
    <3>
    match_alarm_field = prid
    match_alarm_regexp = (net_connect)
    use_enricher = os_enricher
    lookup_by_alarm_field = udata.source
    lookup_by_regexp =
    <overwrite-rules>
    udata.custom_4 = [cmdb.os_type]
    udata.custom_3 = alarm_os_type_source
    udata.custom_2 = [cmdb.mac]
    </overwrite-rules>
    </3>
    <1>
    match_alarm_field = prid
    match_alarm_regexp = .*
    use_enricher = os_enricher
    lookup_by_alarm_field = robot
    lookup_by_regexp =
    <overwrite-rules>
    udata.custom_4 = [cmdb.os_type]
    udata.custom_3 = alarm_os_type_robot
    udata.custom_2 = [cmdb.mac]
    </overwrite-rules>
    </1>
    </enrichment-rules>


  • 3.  RE: Using Alarm enrichment to add OS

    Posted Sep 19, 2019 08:09 PM
    Hi Luc,

    I´m Jose. Im new about the use of this probe but I just follow your config and works. Thank you very much for the info.

    Regards

    Jose


  • 4.  RE: Using Alarm enrichment to add OS

    Posted Sep 19, 2019 09:12 PM
    Hi Luc,

    I have two questions about the configuration, I hope you can help me.

    1. In match_alarm_regexp = .*  ¿ what its the meaning of .* ?

    2.  In the first  options for lookup_by_alarm_field = udata.source you put udata.source to use source field from alarm to match in the table cm_computer_system agains field name, but in the second lookup_by_alarm_field = robot you just put robot (not udata.robot) I think because robot field doesn´t exists on cm_computer_system table, in this case how the query with name=? works and get the info for the alarm enrichment?

    Regards

    Jose





  • 5.  RE: Using Alarm enrichment to add OS

    Posted Sep 20, 2019 02:38 AM
    See: https://community.broadcom.com/enterprisesoftware/viewdocument/how-to-use-the-nas-and-alarm-enrich?CommunityKey=170eb4e5-a593-4af2-ad1d-f7655e31513b&tab=librarydocuments
    This explains in detail the alarm_enrichment fields



  • 6.  RE: Using Alarm enrichment to add OS
    Best Answer

    Posted Sep 20, 2019 03:05 AM
    If you use /nimsoft/bin/drnimbus.exe to see all detail alarms:
    drnimbus
    You see that the field source is a member from udata, so it becomes udata.source (like it would be udata.level if you want to test on the severity of the message)