UNSOLVED

vrbitman

updated

3 years ago

Closed

V

vrbitman

1 Rookie

•

10 Posts

0

1654

April 26th, 2023 09:00

REST API: getting and filtering events

Hi,

I need to retrieve and filter events from a PowerScale.
I've read through the documentation and I came up with the following URL:

https://192.168.1.123:8080/platform/3/event/eventlists?severity=neq.information

It returns the full list of events, but it's not filtering. I want to exclude information events.
Any ideas?
Any help would be appreciated.

  • DELL-Sam L

    Community Manager

    •

    8101 Posts

    •

    34565 Points

    1221

    0

    Posted April 27th, 2023 09:00

    Hello vrbitman,

    Here is a link to a kb that maybe of assistance. https://dell.to/3V9bxyh

  • vrbitman

    1 Rookie

    •

    10 Posts

    1207

    0

    Posted April 28th, 2023 08:00

    Hi Sam,

    the KB is interesting but I'm not sure it's feasible. It seems to me that I would have to manually reconfigure notifications for every possible alert, which are numerous no doubt.
    But even if I had the time to reconfigure all of them, I wouldn't know where to start because I don't have a list.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1176

    0

    Posted April 29th, 2023 15:00

    https://192.168.1.123:8080/platform/12/event/eventlists?describe

    You will see that you can only filter on event_instance and eventgroup_id.  So that leaves you with parsing in your code.

  • vrbitman

    1 Rookie

    •

    10 Posts

    1106

    0

    Posted May 3rd, 2023 06:00

    I see.. I'm not a programmer but a sysadmin so I'm not going that route either.
    Does anyone know how to download the correct OID file so I can monitor it via SNMP?
    When I log in and click to download it straight from the PowerScale system, I get page not found.
    I've looked up the documentation but couldn't find anything helpful.
    Thank you all very much so far.

  • DELL-Sam L

    Community Manager

    •

    8101 Posts

    •

    34565 Points

    1103

    0

    Posted May 3rd, 2023 08:00

    Hello vrbitman,

    You should be able to download the mib file from oneFS GUI itself. Under cluster management -> general settings ->SNMP monitoring.

  • vrbitman

    1 Rookie

    •

    10 Posts

    1081

    0

    Posted May 5th, 2023 01:00

    Hi Sam,

    when I try to do that I get error 403 Forbidden, even though I'm logged in as admin.

  • DELL-Sam L

    Community Manager

    •

    8101 Posts

    •

    34565 Points

    1078

    0

    Posted May 5th, 2023 03:00

    Hello vrbitman,

    Try this link to download the mib files. https://dell.to/3HI0TZA

  • vrbitman

    1 Rookie

    •

    10 Posts

    1052

    0

    Posted May 5th, 2023 06:00

    Hi Sam,

    that's PowerStore not PowerScale.

  • gyula.kokas

    1 Rookie

    •

    1 Message

    652

    1

    Posted June 15th, 2023 02:00

    Hi,
    I think this could be something what you wanted:
    'https://localhost:8080/platform/3/event/eventgroup-occurrences?severity=warning&severity=emergency&severity=critical'

    Here can you find the MIB File :
    /base/usr/local/share/snmp/mibs/ISILON-MIB.txt

  • vrbitman

    1 Rookie

    •

    10 Posts

    57

    0

    Posted July 21st, 2023 01:00

    Thanks.
    The filters in the URL do not work. If I go to "https://localhost:8080/platform/3/event/eventgroup-occurrences" I can see all the events, but if I add the filter I'm getting empty output.

    For now I've downloaded the MIB file you suggested and have passed it on to my colleagues to see if that works.