Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2k stars 574 forks source link

[dev.icinga.com #10465] API could accept check results in bulk #3553

Open icinga-migration opened 8 years ago

icinga-migration commented 8 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10465

Created by vytenis on 2015-10-26 16:10:25 +00:00

Assignee: (none) Status: New Target Version: Backlog Last Update: 2015-11-25 16:06:56 +00:00 (in Redmine)

Backport?: Not yet backported
Include in Changelog: 1

Would be nice to be able to send check results to Icinga2 via the API in bulk, instead of 1 HTTP request per check.


Relations:

icinga-migration commented 8 years ago

Updated by mfriedrich on 2015-11-25 16:06:56 +00:00

icinga-migration commented 8 years ago

Updated by gbeutner on 2016-09-02 07:49:37 +00:00

dnsmichi commented 7 years ago

PRs welcome as always. Keep in mind that you'll need to adjust the object name somehow, if different result sets are processed.

dnsmichi commented 4 years ago

Requires a new endpoint process-check-results with a an s suffix. This avoids different behaviour with the existing endpoint where this doesn't fit.

dnsmichi commented 4 years ago

/v1/actions/process-check-results as URL endpoint.

Request body:

{
  "check_results": [
     {
       "name": "host1!svc",
       "exit_status": 2,
       "plugin_output": "Multiple results, 1"
     },
     {
       "name": "host2!svc",
       "exit_status": 1,
       "plugin_output": "Multiple results, 2"
     }
  ]
}

There's a few principles to keep in mind:

Additional tasks:

@lippserd The above will be done in short exercises by @sukhwinder33445 as shown below.

IMG_5452

Al2Klimov commented 3 years ago

@sukhwinder33445 You're not working on this, right?

sukhwinder33445 commented 3 years ago

Yes, I'm not working on it.