How interrogate foglight alarm_alarm and connect guests with her

All,

I know that this question has been asked in different ways.  I'm looking to directly query the database Foglight I can do an analysis through 4 other systems.  We are looking to integrate different sources into a data warehouse for later analysis in a real-time database close.  Foglight is able to give us a lot of points, but not all, and that's why we need query directly on the database.  Ultimately we are only looking for alarms, created time and the host just now.  Help or direction would be really appreciated.

Kaleb

Hi, Kaleb,.

To answer your other point, Foglight alarms are associated with various items in different monitored domain models that may or may not be a host or associated with a host.

For example, an alarm associated with a 'cluster' has no associated host.

In an event focused on the rule, the object that triggered the alarm is the source of the event:

sourceID = @event.get ('topologyObjectID')

def source = server. TopologyService.getObject (sourceID)

Once you have the source, you need to look through a variety of possible paths to find the associated host.

This trial and error process is implemented in the following script, that works for the majority of the alarms:

def tryPath (source, path) {}

result = null

try {}

result = source.get (path)

}

catch (Exception e) {}

Returns the result

}

def getHostName (objectID) {}

def hostname = null

def source = null

try {}

source = server. TopologyService.getObject (objectID)

}

catch (Exception e) {}

e return

}

If (source! = null) {}

host name = tryPath (source, ' monitoredHost/name "" ")

If (hostname == null) {}

host name = tryPath (source, "the name of the controller/monitoredHost /")

}

If (hostname == null) {}

name of host = tryPath (source, 'parent, agent, monitoredHost, name')

}

If (hostname == null) {}

host name = tryPath (source, ' / hostname ")

}

If (hostname == null) {}

host name = tryPath (source, ' controller / / hostname ")

}

If (hostname == null) {}

name of host = tryPath (source, "agent/hostName")

}

If (hostname == null) {}

parents-tryPath (source, 'parents')

If the host name (parents.size () > 0) = tryPath (parents [0], "/ hostname")

}

If (hostname == null) {}

parents-tryPath (source, ' controller/parents')

If the host name (parents.size () > 0) = tryPath (parents [0], "/ hostname")

}

}

Returns the host name

}

sourceID = def @event.get ('topologyObjectID')

def hostName = getHostName (sourceID)

Returns the host name

Kind regards

Brian Wheeldon

Published by Brian Wheeldon to include additional paths to the hosts required by a few rules.

Tags: Dell Tech

Similar Questions

  • I put my cRIO 'DHCP' to 'local connection' and lost contact with her.

    I put my cRIO 'DHCP' to 'local connection' and lost contact with her.

    I changed the location setting labelled '2' to post a link-local only, so I think I hit save to '3 '.  So, I have had no contact with my cRIO network.

    I tried;

    Hit the reset button

    A MAX of opening closure

    Go to safe mode

    Lift the switch to reset IP

    Power cycling the cRIO

    Directly from the host to my target of cat 5 cable running

    None of it worked, and I have no contact with my cRIO.

    This is what MAX looks like now.  How can I fix?

    It turns out that I had more of a problem.  Corrupt drivers, 255 in many in my subnet mask, overly complex LAN, use server control... you get the idea.  So I just deleted all software, disassembled everything and more from scratch.  Now back to the top and work.

    Thanks for the tips everyone, all the pieces and peace where it is useful to help me see the bigger picture.

  • On Mac Book Pro, how can I select and delete spam with it opening?

    On Mac Book Pro, how can I select and delete spam with on their opening?

    Go to the junk mail folder in the Mail sidebar. Place the cursor in the message window and press command + A to select all of the messages in the window. Click on the trash in the toolbar or CTRL - RIGHT click and select the Recycle Bin on the shortcut menu.

  • My husband doesn't like the itunes account is under my name.  I have a way that he can have his own name and sign on with her and still exist on the family account?

    My husband doesn't like the itunes account is under my name.  I have a way that he can have his own name and sign on with her and still exist on the family account?  Also, have we HAVE two-step verification?   It's a real pain.

    Yes it can have its own ID and share your content via the family sharing, he needs to sign out of your ID and to create his own, then one of you needs to invite another family sharing.

    You don't need to use 2 verification step, if you want you can disable to my Apple ID

  • How to create ConnecetionPool and connection Factory for MQ in OC4J

    Hi all
    I'm tyinig to connect the MQ Series adapter (version 6 +) of BPEL 10.1.3.4. However, I don't know where to configure the JNDI names and where to create the Connection Pool and the factory connections in the OC4J.

    I guess these are the preliminary steps before connecting to the MQ

    Please guide me or send a link fo a few doc that explains how to set up the series MQ with OC4J.


    Thank you and best regards,
    Vishal

    Go to Enterprise Manager (em), click OC4j_soa (in short the oc4j home other then home). Click on the "applications" tab Then in the menu drop down select "adapters of autonomous resources. From the list select adatpers native MQ. Now select connection factory tab. You've got the place.

  • How to enable vertical and horizontal scrolling with sculpt Touch Mouse (W7-64). When I activate horizontal disables vertical scrolling to scroll.

    Load the IntelliPoint software that is more recent, although she did not recover that (!). Scrolling works when you use the Synaptics Touchpad.

    When I turn on all the other functions in the IntelliPoint vertical scrolling is disabled.

    Hello

    Thanks for posting your question on the Forums of community of Microsoft.
    The description of the question, I understand that you can not use horizontal and vertical scrolling with sculpt the touch mouse.
    Let me go ahead and help you with the issue.
     
    As you have been told that the IntelliPoint software is updated, but sometimes Sculpt mouse drivers may be outdated which causes this problem.
     
    Here are some ways you can follow to resolve the problem:
     
    Method 1:
    I suggest for the link and follow the steps in the article:
    Install IntelliPoint software and the mouse
     
    Method 2:
    Download and install the drivers from the link:
     
    See also:
     
    I hope this helps. If you have any other queries/issues related to Windows, write us and we will be happy to help you further.
  • How can I associate and e-mail with the snipping tool program so that I can e mail what I snip?

    I love the snipping tool program in windows 7 and I'd love to use it, but can not e mail what I cut, I need asscociate and e mail with it, guests tell me to go to default and put programs in place, but no luck. help please

    What type of program you use for email? This is an email client? Otherwise, to save the snip, open a new message window, and then attach it.
  • Adapter Dell computerwith Windows 7 and Intel Core 13 seems not to be working-how can I fix and connect wireless?

    I have a new Dell laptop, but that was the computer see in John Lewis.  It does not seem to connect to the wireless router, or if this is the case it is very tempermental.  Often, even if my laptop trying to get wireless, the router will then stopped and must be restarted.  Troubleshooting problem gives thinking than the 'Intel wireless adapter is not found' or 'wireless network is found. "

    I would be really grateful if anyone knew how to fix this?  It would be great to be able to use wireless...

    Thanks in advance

    If the modem/router be found which might tend to suggest a problem with this unit and not the PC.

    The router is not stop by itself, you need to press a reset on the router, if available, or physically disconnect the power.

    In any case JL, generally provide a warranty of two years

  • I'm sick of Safari does not. I wonder constantly updated Safari. My computer tells me that I am current with updates. I always get out Safari and connect back with Firefox, whenever I want to click on something on FB

    How can I fix Safari?  Tired of him.  Why is it up-to-date with regular updates?

    Gees... now I have to select categories and communities... Why don't you let me ask a simple question?

    Everything has to be so hard with Apple.

    Your Mac may be current for the OS X 10.6.4 now work according to your profile, but the only way to update your Mac to update Safari to the version.

    See if your Mac meets the demands of El Capitan > update of OS X El Capitan - Apple Support

    Safari cannot run the latest possible version 5.1.1 for Snow Leopard 10.6.

    With El Capitan installed, you would have Safari installed 9.1.3.

  • How to open Docx and doc. attachments with Word 2013 from Firefox

    I just got a new laptop and installed Office 2013. However, when I try to open an attachment to my e-mail or a document on the web, the box comes up that says: ' Firefox do with this file? I can save the file fine, but when I click on 'Browse' next door 'open with', Microsoft Word is not found. It would be nice to get the document automatically opens in Word. I don't know if this is the right place to ask this question, but any help would be appreciated.

    Which application opens the file if you double-click such a file in Windows Explorer?

    If the default program is the word Firefox should offer this application by default.

    In the case of an attachment then it would be unlikely that the file is to send with the right MIME type for a doc or docx file, but perhaps also a generic type as "application/octet-stream" that will make Firefox want to save the file.

  • How can I view and connect my PS2 (play station) on Qosmio LCD?

    Hello

    I bought a Qosmio F25 and I tried to connect my PS2 to view it on the LCD screen. I connected the PS2 for the Composite video cable and I tried all channels on television but did not display channel?

    I did the right thing, or miss me something?

    (P.S. I tried to treat the PS as a box and tried to use the media center to configure and analyze for the channel but apparently sandbox model must be inserted and that's where I stopped)

    Appreciate your quick support

    Thank you!

    You have installed on your machine Qosmioplayer?
    Have you tried to scan all channels on Qosmioplayer?

    The TV or VCR signal is the same as on PS2. Admittedly somehow.

  • How to continually take and record waveforms with neither 5102

    a machine generates waves sinusoidal time randomly. I want to permanently take and record waveforms in 10s by NI 5102.

    How to do?

    Thank you very much!!

    Thanks for the review! but this isn't a supported NEITHER.

    I record signals by this method.

    and the promble news is that different sampling frequency, the different wavelength. for example, when I put the sampling frequency is 4 k, the wavelength is 12 seconds if the sampling frequency is 10 k, the wavelength is 8 seconds the signal under test 1 k, the time constant is 10000.

    now, I save waveform to 10 sec. What is the best relationship between sampling frequency and the time constant?

  • How to use QSettings and TextField/TextArea with persistence stores a string?

    I'm trying to store a string of data that the user enters in a TextField or TextArea.  I want this channel to be persistent in memory whenever the user opens the application.

    The Startshi sample application shows how this is done, but not with text in a TextField/TextArea.

    The sample application shows:

    Checkbox {}
    ID: uranuscanner
    text: "URANUS SCANNER.
    objectName: "uranuscanner."
    checked: _starshipApp.getValueFor (objectName, 'yes')
    onCheckedChanged: {}
    _starshipApp.saveValueFor (uranuscanner.objectName, verified)
    }
    }

    Data is retrieved with the bold line.  Are there no property equivalent qml who does the same thing for a TextField/TextArea?

    Thanks in advance,
    Ross

    It's easy

    I do it this way:

    TextField {
        id: server
        text: odssettings.getValueFor("server/url","")
        hintText: qsTr("Server URL") + Retranslate.onLanguageChanged
        inputMode: TextFieldInputMode.Url
        textStyle {
            base: SystemDefaults.TextStyles.BodyText
        }
        onTextChanged: {
            odssettings.saveValueFor("server/url",server.text)
        }
    }
    
  • How to implement insert and put implement with special characters

    Hi all

    Scenario: I have a table and that is having e-mail column.

    condition:-my e-mail column should meet under the condition when the data is inserted.

    It should not allow any of the special characters ('@ ','.') and a ' @'.


    Thank you

    SQL> create table t
      2  (
      3    email varchar2(100) not null
      4  , constraint email_check check
      5                           (
      6                                 regexp_replace(email, '[@|.|[:alnum:]]') is null
      7                             and length(email) - length(replace(email, '@')) = 1
      8                           )
      9  );
    
    Table created.
    

    I used two conditions.

    1 regular expression to see if there is any character that is NOT @ or. or Digital Alpha.

    2 length check if @ is this several times.

    SQL> insert into t values ('[email protected]');
    
    1 row created.
    
    SQL> insert into t values ('karthick.p@@abcd.com');
    
    insert into t values ('karthick.p@@abcd.com')
    *
    ERROR at line 1:
    ORA-02290: check constraint (KARTHICK.EMAIL_CHECK) violated
    
    SQL> insert into t values ('[email protected]');
    
    insert into t values ('[email protected]')
    *
    ERROR at line 1:
    ORA-02290: check constraint (KARTHICK.EMAIL_CHECK) violated
    
  • I use Adobe Photoshop CS5 Extended and can't with her.

    I just reinstalled Photoshop CS5 Extended to my original disc because I had problems with it. I did an uninstall before installing. Whenever I have leave Photoshop I get this message: "cannot save preferences because the file is locked or you don't have the necessary access privileges." Use the "Get Info" command in the Finder to unlock the file or change the permissions on the files or folders inclusive. "Can you tell me what to do to fix this? I went to get info and made changes to read and write, but it made no difference. Thanks for your help.

    Richard

    Try to enter/Users/YOURUSERNAME/Library/Preferences /.

    and see if you can spot the folder in the list.

Maybe you are looking for

  • SLI Satego X 200 and XP driver?

    Hello It's me again. I have a question open with my Forceware driver (167,58). After installation, ot driver Device Manager showed an unknown device called "3d-video-controller. I thought that this could be the second video card (GF 8600 M GT). So I

  • Automatically sync disabled in iTunes

    I am running Windows 7 and have an iPhone 6.  I noticed that recently iTunes was not starting and automatic sync when I connect my phone to my computer.  When I looked in the settings of the phone to iTunes, I noticed that the option "automatically s

  • Aspire black screen S7-391

    I have this pc and turn it on, but all I see is a black screen. No logo, nothing. I tried to push the power button to reset dry 30, pressed the button of the battery on the back, removed the battery and the ssd, ran Fn + Esc with the BIOS on a flashd

  • Recycle Bin has disappeared from my computer

    original title: TRASH My recycle bin has disappeared from the workstation.  I already did that the box is checked in the desktop icons.  It does not always show upward.  Help!

  • The desktop icon question

    Good afternoon Somehow, I don't know how, but all desktop icons have been modified in Adobe PDF format, when I click on it I get the following message: cold Adobe Reader not open 'iexplore.exe' because it is not a supported file type or because the f