Question

Getting the Alerts/Events from XMC via API

  • 26 August 2020
  • 9 replies
  • 161 views

Hi,

We want the events/alerts from XMC to be shown on our Icinga/PHP NOC screen but we can’t seem to find any information on how to get the data from the API.

How do you get the Alerts and Events from XMC via the API?

 


9 replies

Userlevel 4

The alarms trigger off of logs (like syslog but you can configure it to watch any log file) or traps. If you set the API to write events to a log file on the XMC server, you can configure alarms to watch that log file and trigger on user-defined text within the events. Is that what you were looking for?

We use graphql to get data like the switches and endpoints and use that to fill assetmanagement and monitoring (Icinga).

XMC however has Alarms and Events and I would like to have them shown in Icinga and on our NOC page by reading the current Events / Alarms from XMC via the API.

I know we could send syslog or trap to Icinga but we would need to make sure every event and resolve has that custom handler configured.

Userlevel 7

You can create alarm action and the alarm action will update your NOC system through API/syslog/trap/... Instead of reading alarms from XMC (pull) you can update the NOC (push).

 

You can create alarm action and the alarm action will update your NOC system through API/syslog/trap/... Instead of reading alarms from XMC (pull) you can update the NOC (push).

 

Probably not an option; Traps/Syslog event would probably get dropped due to high UDP packet loss we are experiencing in our new SPB network. Also people need to make the events and service in XMC and Icinga and they will forget or ignore it.

Come one, when you google XMC you get all those PDF files telling it’s an open API.. So where is it? I expect something like https://developers.topdesk.com.

Userlevel 6
Badge

We use graphql to get data like the switches and endpoints and use that to fill assetmanagement and monitoring (Icinga).

XMC however has Alarms and Events and I would like to have them shown in Icinga and on our NOC page by reading the current Events / Alarms from XMC via the API.

I know we could send syslog or trap to Icinga but we would need to make sure every event and resolve has that custom handler configured.


Hi Stefan,

can you give me some tips how are you able to integrate XMC Status Information via API calls into higher monitor platform Icinga ?

BR,

Matthias

We use graphql to get data like the switches and endpoints and use that to fill assetmanagement and monitoring (Icinga).

XMC however has Alarms and Events and I would like to have them shown in Icinga and on our NOC page by reading the current Events / Alarms from XMC via the API.

I know we could send syslog or trap to Icinga but we would need to make sure every event and resolve has that custom handler configured.


Hi Stefan,

can you give me some tips how are you able to integrate XMC Status Information via API calls into higher monitor platform Icinga ?

BR,

Matthias

Hi Mathias,

 

Importing configuration items was easy, I get all devices from XMC via a graphql query in one PHP array, seek the items in memcached and Topdesk and update or create the assets. Another PHP script reads the Topdesk API and asks for all devices that need to be monitored and imports them into Icinga using predefined templates. That part is easy but there currently seems to be no way to get the Alarms/Events from XMC. 

If I could use the API to get all alarms and events I would import them into a Icinga services automaticly and use the 24/7 system we currently using. I’d probably also make it send traps to Icinga but since we have pretty high drop rate in UDP sometimes, I’m a bit reluctant in doing that alone. (also it makes for a lot of extra configuring on all events in XMC and Icinga, I prefer the automatic way)

 

 

 

Userlevel 6
Badge

If you have concerns about lost UDP Trap/Syslog Packets - Maybe syslog can be send via TCP (TLS secured).

But i have not checked if that is possible by XMC and/or Check-MK.

If you have concerns about lost UDP Trap/Syslog Packets - Maybe syslog can be send via TCP (TLS secured).

But i have not checked if that is possible by XMC and/or Check-MK.

Or I should finally learn Python and do it on the host in Python and probably have a lot of headaches with every XMC update. haha :-)

I was just hoping the ‘Open API’ would at least be alerts and events and the configuration is more of a nice to have.

Our 24/7 system knows who to notify if something goes wrong and the device is important enough to wake somebody up so it would be nice to have it read the Alerts and Events in XMC and not have make Icinga SNMP all the switches and make all those rules/services twice.

Userlevel 6
Badge

Hi Stefan,

from your reply i understand that you wish that the XMC API should be improved to be more open and more complete (through all XMC modules) and much better documentated.

This is also welcome by all the other XMC API Users.

To achieve your goals please trigger feature request(s) through to your local pre-sales guys.
Otherwise Extreme says that the does not know such demand.

 

 

 

Reply