Commit Graph

85 Commits

Author SHA1 Message Date
Thomas Gelf 44af7b3ae3 RestApiClient: do not send Connection: close...
...just throw away the curl handle. Otherwise Icinga v2.9 fails
2018-11-27 19:02:39 +01:00
Thomas Gelf 01f82b2d48 RestApiClient: use correct RuntimeException 2018-11-22 08:25:33 +01:00
Thomas Gelf 4352264b73 ImportSourceCoreApi: import flapping only for 2.8+
fixes #1652
2018-11-14 13:34:39 +01:00
Thomas Gelf 9aab203f59 CoreApi: disconnect after each request for...
...specific Icinga 2 versions

fixes #1695
fixes #1696
2018-11-14 13:25:07 +01:00
Thomas Gelf 24a7dbcac8 RestApi: remove outdated code, clean up, allow...
...to disconnect curl on demand or after each request
2018-11-14 08:19:25 +01:00
Thomas Gelf ad8a2e04f6 CoreApi: allow to fetch the Icinga Core version 2018-11-14 08:12:58 +01:00
Thomas Gelf b9ff77b4bb DeploymentLog: deal with Icinga 2 race condition...
...clean up our DB and Icinga 2 stages via API

fixes #1488
2018-10-05 14:55:48 +02:00
Thomas Gelf 4e327ed54d Json: allow null/false 2018-10-04 06:47:50 +02:00
Markus Frosch 7817c3b781 legacy: Allow configuration for file modes 2018-09-18 16:31:21 +02:00
Markus Frosch 93e1a88e10 legacy: Deploy files with proper permissions
So we can use the same logic as for icingaweb2 configs.
2018-09-18 15:10:42 +02:00
Bruno Mendola c2d54f9de9 Import check commands from Core API
fixes #1527
2018-06-15 16:19:40 +02:00
Thomas Gelf 5d4408862a Settings, CoreApi: allow to configure package name
fixes #1497
2018-06-01 16:27:00 +02:00
Thomas Gelf cf5b7c7001 CoreApi: old patch, unused code 2018-05-29 22:22:13 +02:00
Thomas Gelf 3e46602802 Json: wrap json_encode to emit errors
refs #1445
2018-03-28 18:16:30 +02:00
Thomas Gelf e879b02875 KickstartHelper: import Event Commands
fixes #1389
2018-02-20 12:39:37 +01:00
Thomas Gelf cca4092151 Deployment: move logic to dedicated classes
Extended DirectorDeploymentLog, new DeploymentInfo class
2017-07-20 08:22:31 +02:00
Thomas Gelf 8216daa3af Core: give empty list on 404, remove obsolete...
...view scripts
2017-07-14 13:21:42 +02:00
Thomas Gelf cde328eeed CoreApi: add checkServiceAndWaitForResult()
Will be moved to icingadb soon, committing this to clean up my stash
2017-07-14 13:21:42 +02:00
Thomas Gelf 8b98113e83 CoreApi: just comments 2017-03-13 22:08:43 +01:00
Thomas Gelf a3249350c2 CoreApi: remove space for compliance 2017-02-02 12:34:00 +01:00
Thomas Gelf aa0c04d5e7 CoreApi: add a couple of helper methods 2017-01-31 10:03:58 +01:00
Thomas Gelf e1b420d4c4 CoreApi: allow to stream raw events
fixes #744
2017-01-24 11:14:12 +01:00
Thomas Gelf 5c158e708e RestApiClient: re-add lost method 2017-01-19 22:49:51 +01:00
Thomas Gelf b7a10d296c phpcs: mostly new PSR-2 SpacingAfter/Before checks 2017-01-13 20:54:52 +01:00
Thomas Gelf 9e771f2d5a Fix phpcs complaints 2017-01-13 19:47:54 +01:00
Markus Frosch f6a5c8cbc5 LegacyDeploymentApi: Expire old stages that haven't got activated
For about an hour.

refs #13049
2016-11-04 16:56:52 +01:00
Markus Frosch a3d69c4f4c LegacyDeploymentApi: Call activation tool to deploy a new stage
refs #13049
2016-11-04 16:40:22 +01:00
Markus Frosch 660f41f94d LegacyDeploymentApi: Call activation tool to deploy a new stage
refs #13049
2016-11-04 16:38:08 +01:00
Markus Frosch 7fc0da6e21 LegacyDeploymentApi: Add deployment Api for Icinga 1.x
refs #13049
2016-11-04 16:12:33 +01:00
Markus Frosch 1786d08321 CoreApi: Use DeploymentApiInterface
refs #13049
2016-11-04 14:13:07 +01:00
Thomas Gelf e410beb935 CoreApi: skip incomplete stages
fixes #13028
2016-11-02 11:06:15 +01:00
Thomas Gelf ee0def7d2b Lots of files: make IDE users happy 2016-11-01 18:28:36 +01:00
Thomas Gelf cbf1a30a26 Kickstart: import notification commands
fixes #12028
2016-10-30 12:35:12 +00:00
Thomas Gelf b8b047a1e4 ImportSourceCoreApi: allow to import user groups
fixes #11511
2016-08-24 14:15:40 +00:00
Thomas Gelf f6c1a9f0f7 CoreApi: shorten startup log
Everything more than 60k is absolutely insane

fixes #12231
2016-07-26 13:14:14 +02:00
Thomas Gelf dc7f9ac039 CoreApi: add getActiveChecksum helper method 2016-03-31 19:24:28 +02:00
Thomas Gelf bc6bac9a62 ImportSourceCoreApi: add hostgroup support
refs #11451
2016-03-27 16:58:04 +02:00
Thomas Gelf 07bb68b1d2 CoreApi: remove soperfluous newlines 2016-03-21 10:07:41 +01:00
Thomas Gelf a6be710379 config/deploy(ments): re-enable stage wiping 2016-03-20 18:50:18 +01:00
Thomas Gelf d27c8a9948 CoreApi: do not wipe uncollected stages 2016-03-20 18:45:38 +01:00
Thomas Gelf f10ee539c8 RestApiResponse: throw error on error result 2016-03-18 13:49:42 +01:00
Thomas Gelf b513b40d4e ImportSourceCoreApi: allow to import user objects
fixes #11334
2016-03-17 15:31:14 +01:00
Thomas Gelf 5296616c41 CoreApi: add runtime object creation sample 2016-03-17 01:08:34 +01:00
Thomas Gelf f0d3364bcf CoreApi: add more interactive check helpers 2016-03-17 01:07:55 +01:00
Thomas Gelf 95cb1498bc RestApiResponse: response code handling 2016-03-17 01:07:04 +01:00
Thomas Gelf 228f72db91 cli/core: provide a CLI action for helper methods 2016-03-16 23:43:27 +01:00
Thomas Gelf 404c1a7164 CoreApi: add helper functions for on-demand checks 2016-03-16 23:34:12 +01:00
Thomas Gelf f3ce5fab21 CoreApi: no special treatment for imports 2016-03-07 02:09:54 +01:00
Thomas Gelf a1b7cd216b RestApiClient: catch 401 errors
fixes #11286
2016-03-06 21:43:32 +01:00
Thomas Gelf 218e67527b RestApiClient: fail without curl
fixes #10929
2016-03-06 21:12:59 +01:00