Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #6727] Running Icinga Commands via the REST API #1297

Closed
icinga-migration opened this issue Jul 15, 2014 · 6 comments
Closed

Comments

@icinga-migration
Copy link

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

Created by seanhandley on 2014-07-15 08:35:46 +00:00

Assignee: seanhandley
Status: Feedback
Target Version: Backlog
Last Update: 2015-05-18 12:18:03 +00:00 (in Redmine)

Icinga Version: 1.11.1
Icinga Web Version: 1.11.1
IDO Version: 1.11.1
OS Version: 1.11.1
DB Type: MySQL
DB Version: u
Browser Version: u

I'm trying to automatically have a host in Icinga be disabled temporarily while Foreman rebuilds it. This prevents dozens of unnecessary alerts being generated.

The API call is as follows:

http://icinga.sal01.datacentred.co.uk/icinga-web/web/api/cmd/cmd=DISABLE\_ALL\_NOTIFICATIONS/authkey=mykey/target=host/data=myhost

The JSON result is:

{success

There are no errors in the icinga or icinga-web log files and the host notifications remain enabled. I can disable them in the UI and this works fine (the red megaphone icon appears to denote the host is disabled).

Anything I'm doing incorrectly or anywhere I can look to debug further?

@icinga-migration
Copy link
Author

Updated by seanhandley on 2014-07-15 08:36:42 +00:00

Given that this isn't officially documented - could someone verify if the above API call would theoretically work?

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-07-15 08:38:56 +00:00

  • Target Version deleted 1.11.1

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-07-19 14:00:11 +00:00

verify that icinga web can send commands to the core, and the core is logging that as external command.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-04-26 09:26:21 +00:00

  • Status changed from New to Feedback
  • Assigned to set to seanhandley

Any feedback?

@icinga-migration
Copy link
Author

Updated by seanhandley on 2015-04-27 06:23:14 +00:00

No feedback - we used the nagios API in the end.

Did you turn up any issues in the Icinga REST API?

@icinga-migration
Copy link
Author

Updated by berk on 2015-05-18 12:18:03 +00:00

  • Target Version set to Backlog

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants