icinga-powershell-framework icon indicating copy to clipboard operation
icinga-powershell-framework copied to clipboard

Feature: Add Icinga 2 API integration

Open LordHepipud opened this issue 4 years ago • 5 comments

We should make it easier for local Windows machines to communicate with the Icinga 2 API by using certain Cmdlets.

This should cover the following:

  • General communcation for custom queries
  • Adding/Removing downtime for current host with comment
  • Sending passive check result for certain host check
  • Sending custom notifications on certain events

LordHepipud avatar Aug 20 '20 09:08 LordHepipud

Will the local Windows maschines be able to send the Downtime via satellite to icinga or only directly to the Icinga masters?

rmeichsner avatar Feb 12 '21 15:02 rmeichsner

Hello, the idea is to send downtimes to one of the parents of the Icinga Agent. This also includes Satellites.

LordHepipud avatar Feb 13 '21 11:02 LordHepipud

Thank you. Do the apis of the satellites already include the functionality to send downtimes, or does this functionality additionally needs to be retrofitted to the satellites?

rmeichsner avatar Feb 13 '21 13:02 rmeichsner

This feature is already implemented within the Icinga 2 protocol. They API simply has to be enabled and then the requests are forwarded to the top master.

LordHepipud avatar Feb 13 '21 19:02 LordHepipud

But won't the masters/parents ignore the downtime (or any other) objects coming from agents/satellites as these are configuration objects from a child zone? Afaik the only way to have downtimes created by agents that have no direct connection to the master but only to their satellite would be to install some form of proxy on the satellite that forwards the API request to the master.

log1-c avatar Feb 15 '21 06:02 log1-c