DX Unified Infrastructure Management

  • 1.  Script for changed source/hostname alarm

    Posted Oct 20, 2015 01:11 PM

    Hi,

     

    The UIM is integrated with the ticket system that uses fields (Host Name) to register IC.

     

    So can I count as tickets for device.

     

    The problem is that some probes, such as (vmware and ad_server) the field (Host Name) using the operating system's hostname, but I need to use another name pattern.

     

    I believe I'll need a script to make this change. If anyone has something, thank you.

     

    Thank you.



  • 2.  Re: Script for changed source/hostname alarm

    Posted Oct 21, 2015 07:04 AM


  • 3.  Re: Script for changed source/hostname alarm

    Posted Oct 23, 2015 01:18 PM

    I thought that too, but I think it has to do with (pre-processor).

    It needs to rename the "source" before the alarm go to the alarm console.

    I'm trying to make a script to change the hostname, based on "nimid" but still can not.

     

    al = alarm.list ("hostname", "ABCD")

    if al ~ = nil then

        for i = 1, # al

           al = a [i]

           printf ("% s% s", a.nimid, a.hostname)

           b = alarm.get (a.nimid)

           x = {}

           x.hostname = "XPTO"

           x.nimid = b.nimid

           --x.level = NIML_MINOR

           --x.prevlevel = b.level

           --x.visible = 0

           alarm.set ( x )

        end

    end



  • 4.  Re: Script for changed source/hostname alarm
    Best Answer

    Posted Oct 23, 2015 06:12 PM

    Hi,

     

    It took a little more out!

     

    I managed as follows:

     

    1) Create a script. In my case I will need to set all hostname which are being monitored in VMware (hard job!). Not to need to create several preproc-rules;

    2) Create a pre-processing rules according to the criteria that you want, in my case to put all VMware probes;

    3) Set the script to be used;

    4) Be happy!

     

    preproc1.png

     

    preproc2.png

     

    preproc3.png



  • 5.  Re: Script for changed source/hostname alarm

    Posted Nov 05, 2015 03:32 AM

    Hi Sandro,

    Thanks por pointing out the example. I`ve implemented a similar script on our environment and its working as expected.

    However, and although the alarms are coming with the changed source/origin, USM does not seem to group them under the new host.

     

    So my question is, are you using USM to group alarms with changed origin under that particular host?

     

    Thanks.-