Im having the same issue this morning.
Icinga2 updated to 2.11, Director is completely broken and refuses to deploy any changes.
Moreover, i updated director module and some dependencies, but that did not resolve the issue!
Im having the same issue this morning.
Icinga2 updated to 2.11, Director is completely broken and refuses to deploy any changes.
Moreover, i updated director module and some dependencies, but that did not resolve the issue!
2.11 uses a staged config sync, whereas changes received from parent endpoint nodes are first put into a staging directory with running the validation. If that does not succeed, the service does not reload nor copy the config into production.
To analyse further, I suggest to stop the daemon on the agent, purge away /var/lib/icinga2/api/zones/*
and /var/lib/icinga2/api/zones-stage/*
and start Icinga again.
https://icinga.com/docs/icinga2/latest/doc/16-upgrading-icinga-2/#config-sync
Cheers,
Michael
Unfortunately it does not resolve the issue.
Icinga director tells you exactly whats going wrong. Please post the deploy output here
there is no output, no deploy log, it dosent get there.
Icinga2 Director > Config Deployment > Render Config > Deploy 1 pending changes > * * API request failed: Stage creation failed. (RestApiResponse.php:108)
icinga2.log should help you further. The deployed stage failed.
no clear error either:
[2019-09-19 13:08:04 -0400] information/ApiListener: New client connection from [REDACTEDIP1]:47734 (no client certificate)
[2019-09-19 13:08:04 -0400] information/HttpServerConnection: Request: GET /v1/ (from [REDACTEDIP1]:47734), user: root, agent: ).
[2019-09-19 13:08:04 -0400] information/HttpServerConnection: Request: GET /v1/config/packages (from [REDACTEDIP1]:47734), user: root, agent: ).
[2019-09-19 13:08:04 -0400] information/HttpServerConnection: Request: GET /v1/config/packages (from [REDACTEDIP1]:47734), user: root, agent: ).
[2019-09-19 13:08:04 -0400] information/HttpServerConnection: Request: POST /v1/config/stages/director (from [REDACTEDIP1]:47734), user: root, agent: ).
[2019-09-19 13:08:04 -0400] information/HttpServerConnection: HTTP client disconnected (from [REDACTEDIP1]:47734)
Try to fetch the stage status.log manually from /v1/config/stages via Rest Api. Thatâs described in the Api docs.
Iâm gone for today, have a nice evening.
Dont see any fatal error here either.
{âerrorâ:404.0,âstatusâ:âPath not found.â}[root@mon zones]# curl -k -s -u root:icinga 'https://localhost:5665/v1/con-245a6e5d7bb7/startup.logâe-2ec0-42d2-b103-
[2019-09-19 12:31:25 -0400] information/cli: Icinga application loader (version: r2.10.5-1)
[2019-09-19 12:31:25 -0400] information/cli: Loading configuration file(s).
[2019-09-19 12:31:25 -0400] information/ConfigItem: Committing config item(s).
[2019-09-19 12:31:25 -0400] warning/ApiListener: Attribute âkey_pathâ for object âapiâ of type âApiListenerâ is deprecated and should not be used.
[2019-09-19 12:31:25 -0400] warning/ApiListener: Attribute âca_pathâ for object âapiâ of type âApiListenerâ is deprecated and should not be used.
[2019-09-19 12:31:25 -0400] warning/ApiListener: Attribute âcert_pathâ for object âapiâ of type âApiListenerâ is deprecated and should not be used.
[2019-09-19 12:31:25 -0400] warning/ApiListener: Please read the upgrading documentation for v2.8: https://icinga.com/docs/icinga2/latest/doc/16-upgrading-icinga-2/
[2019-09-19 12:31:25 -0400] information/ApiListener: My API identity: REDACTED
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âCPU Loadâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/service_apply.conf: 21:1-21:24) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âSSH Checkâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/service_apply.conf: 30:1-30:25) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âCPU Loadâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 484:1-484:24) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âCPU Usageâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 492:1-492:25) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âSSH Checkâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 500:1-500:25) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âMemory Usageâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 509:1-509:28) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âService-CSFâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 517:1-517:27) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âService-BINDâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 525:1-525:28) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âRDP Checkâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 875:1-875:25) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âCPU Load - Windowsâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 883:1-883:34) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âDisk Space - Windowsâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 893:1-893:36) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âSwap Space - Windowsâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 902:1-902:36) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âMemory Usage Windowsâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 911:1-911:36) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] warning/ApplyRule: Apply rule âWindows Update Checkâ (in /var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global/servicesets.conf: 920:1-920:36) for type âServiceâ does not match anywhere!
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1 ScheduledDowntime.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1197 Services.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1 InfluxdbWriter.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1 IcingaApplication.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1069 Hosts.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1 FileLogger.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 2 NotificationCommands.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 770 Notifications.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1 NotificationComponent.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 12 HostGroups.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1 ApiListener.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1 Downtime.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 3 Comments.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1 CheckerComponent.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 97 Zones.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1 ExternalCommandListener.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 96 Endpoints.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 2 ApiUsers.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 2 Users.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 236 CheckCommands.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 2 UserGroups.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 6 ServiceGroups.
[2019-09-19 12:31:26 -0400] information/ConfigItem: Instantiated 4 TimePeriods.
[2019-09-19 12:31:26 -0400] information/ScriptGlobal: Dumping variables to file â/var/cache/icinga2/icinga2.varsâ
[2019-09-19 12:31:26 -0400] information/cli: Finished validating the configuration file(s).
Which Director version is used here? I am using 1.6.2 stable in my tests.
Master branch which was updated yesterday.
Maybe a bug in Git master, please collect these details and create a new Director issue. I know that @tgelf is preparing a feature for better deployments for 1.7
I cannot recall any change related to Config deployment, but who knows
Stage creation failed
is an error message Director getâs from Icinga. So what happens here is that the Director deployed a configuration package via config/stages/<packagename>
- and Icinga says âSorry, no wayâ. In your log this is POST /v1/config/stages/director
- this one fails.
@dnsmichi: would the debug log show whatâs going on here?
I tried to reproduce this. First of all: Deployments with the Director master work fine with Icinga 2.11 on Debian Stretch. So doesnât seem to be a generic issue.
To figure out whether we could get more details I tried to simulate such an error by forcible changing some permissions in /var/lib/icinga2/api
and skipping other requests in the Director source code to reach exactly the place in code where your request is failing.
That way I was able to get your error. Director shows you all information it gets, Stage creation failed.
, thatâs it. I dumped the full request just to be sure. Icinga masks the original Exception and gives a generic error, Debug-log shows the full (large) request body, but no information related to the real problem. In my (crafted) example Iâd expect Icinga to tell me that it was unable to write to disk, but it remains silent.
@dnsmichi: your turn
@simonEzCoins: timestamps in your startup log do not match your requests in the Icinga log, guess this log is from a former deployment.
Cheers,
Thomas
Ah yes, thanks a lot, too tired today. After releasing yesterday, Bernd invited us for Dinner and I was home very late.
That being found out, one can likely simulate it with manual curl requests on the shell.
https://icinga.com/docs/icinga2/latest/doc/12-icinga2-api/#create-a-stage-upload-configuration
Letâs get things going from the beginning, some more system insights please.
icinga2 --version
(full output please)getenforce 0
ls -lahR /var/lib/icinga2/api/packages
With all the above, obfuscate details where needed.
Have a nice weekend, Iâm now finally gone til Monday.
Cheers,
Michael
[root@mon ~]# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: 2.11.0-1)
Copyright © 2012-2019 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl2.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
System information:
Platform: CentOS Linux
Platform version: 7 (Core)
Kernel: Linux
Kernel version: 2.6.32-042stab138.1
Architecture: x86_64
Build information:
Compiler: GNU 4.8.5
Build host: runner-LTrJQZ9N-project-322-concurrent-0
Application information:
General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2
Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var
Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid
Selinux is disabled:
[root@mon ~]# getenforce 0
Disabled
permissions:
[root@mon ~]# ls -lahR /var/lib/icinga2/api/packages
/var/lib/icinga2/api/packages:
total 24K
drwx------ 4 icinga icinga 4.0K Dec 6 2016 .
drwxr-xâ 6 icinga icinga 4.0K Sep 19 12:32 âŠ
drwx------ 3 icinga icinga 4.0K Dec 5 2016 _api
drwx------ 3 icinga icinga 12K Sep 19 12:32 director
/var/lib/icinga2/api/packages/_api:
total 24K
drwx------ 3 icinga icinga 4.0K Dec 5 2016 .
drwx------ 4 icinga icinga 4.0K Dec 6 2016 âŠ
-rw-râr-- 1 icinga icinga 440 Dec 5 2016 active.conf
-rw-râr-- 1 icinga icinga 23 Dec 5 2016 active-stage
-rw-râr-- 1 icinga icinga 25 Dec 5 2016 include.conf
drwx------ 4 icinga icinga 4.0K Dec 5 2016 REDACTEDSERVERNAME-1480990921-1
/var/lib/icinga2/api/packages/_api/REDACTEDSERVERNAME-1480990921-1:
total 20K
drwx------ 4 icinga icinga 4.0K Dec 5 2016 .
drwx------ 3 icinga icinga 4.0K Dec 5 2016 âŠ
drwx------ 4 icinga icinga 4.0K Dec 17 2016 conf.d
-rw-râr-- 1 icinga icinga 147 Dec 5 2016 include.conf
drwx------ 2 icinga icinga 4.0K Dec 5 2016 zones.d
/var/lib/icinga2/api/packages/_api/REDACTEDSERVERNAME-1480990921-1/conf.d:
total 16K
drwx------ 4 icinga icinga 4.0K Dec 17 2016 .
drwx------ 4 icinga icinga 4.0K Dec 5 2016 âŠ
drwx------ 2 icinga icinga 4.0K Sep 19 17:38 comments
drwx------ 2 icinga icinga 4.0K Sep 20 03:00 downtimes
/var/lib/icinga2/api/packages/_api/REDACTEDSERVERNAME-1480990921-1/conf.d/comments:
total 16K
drwx------ 2 icinga icinga 4.0K Sep 19 17:38 .
drwx------ 4 icinga icinga 4.0K Dec 17 2016 âŠ
-rw-râr-- 1 icinga icinga 407 Sep 17 20:15 odedi300REDACTEDDOMAINNAME!SSH Check!fda9e5d1-a436-4e32-a026-72174e176cb1.conf
-rw-râr-- 1 icinga icinga 1.4K Sep 18 03:58 rosemontREDACTEDDOMAINNAME!Last Backup Date!7ca59ef4-fab7-438d-a856-2b06da23d007.conf
/var/lib/icinga2/api/packages/_api/REDACTEDSERVERNAME-1480990921-1/conf.d/downtimes:
total 8.0K
drwx------ 2 icinga icinga 4.0K Sep 20 03:00 .
drwx------ 4 icinga icinga 4.0K Dec 17 2016 âŠ
/var/lib/icinga2/api/packages/_api/REDACTEDSERVERNAME-1480990921-1/zones.d:
total 8.0K
drwx------ 2 icinga icinga 4.0K Dec 5 2016 .
drwx------ 4 icinga icinga 4.0K Dec 5 2016 âŠ
/var/lib/icinga2/api/packages/director:
total 32K
drwx------ 3 icinga icinga 12K Sep 19 12:32 .
drwx------ 4 icinga icinga 4.0K Dec 6 2016 âŠ
drwx------ 4 icinga icinga 4.0K Sep 19 12:31 6565b75e-2ec0-42d2-b103-245a6e5d7bb7
-rw-râr-- 1 icinga icinga 469 Sep 19 12:31 active.conf
-rw-râr-- 1 icinga icinga 36 Sep 19 12:31 active-stage
-rw-râr-- 1 icinga icinga 25 Sep 19 12:31 include.conf
/var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7:
total 40K
drwx------ 4 icinga icinga 4.0K Sep 19 12:31 .
drwx------ 3 icinga icinga 12K Sep 19 12:32 âŠ
drwx------ 2 icinga icinga 4.0K Sep 19 12:31 conf.d
-rw-râr-- 1 icinga icinga 168 Sep 19 12:31 include.conf
-rw-râr-- 1 icinga icinga 6.6K Sep 19 12:31 startup.log
-rw-râr-- 1 icinga icinga 1 Sep 19 12:31 status
drwx------ 4 icinga icinga 4.0K Sep 19 12:31 zones.d
/var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/conf.d:
total 8.0K
drwx------ 2 icinga icinga 4.0K Sep 19 12:31 .
drwx------ 4 icinga icinga 4.0K Sep 19 12:31 âŠ
/var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d:
total 16K
drwx------ 4 icinga icinga 4.0K Sep 19 12:31 .
drwx------ 4 icinga icinga 4.0K Sep 19 12:31 âŠ
drwxr-xâ 2 icinga icinga 4.0K Sep 19 12:31 director-global
drwxr-xâ 2 icinga icinga 4.0K Sep 19 12:31 REDACTEDSERVERNAME
/var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/director-global:
total 96K
drwxr-xâ 2 icinga icinga 4.0K Sep 19 12:31 .
drwx------ 4 icinga icinga 4.0K Sep 19 12:31 âŠ
-rw-râr-- 1 icinga icinga 1.5K Sep 19 12:31 001-director-basics.conf
-rw-râr-- 1 icinga icinga 19K Sep 19 12:31 commands.conf
-rw-râr-- 1 icinga icinga 1.4K Sep 19 12:31 hostgroups.conf
-rw-râr-- 1 icinga icinga 2.7K Sep 19 12:31 host_templates.conf
-rw-râr-- 1 icinga icinga 822 Sep 19 12:31 service_apply.conf
-rw-râr-- 1 icinga icinga 146 Sep 19 12:31 servicegroups.conf
-rw-râr-- 1 icinga icinga 25K Sep 19 12:31 servicesets.conf
-rw-râr-- 1 icinga icinga 9.7K Sep 19 12:31 service_templates.conf
-rw-râr-- 1 icinga icinga 323 Sep 19 12:31 timeperiods.conf
-rw-râr-- 1 icinga icinga 745 Sep 19 12:31 user_templates.conf
/var/lib/icinga2/api/packages/director/6565b75e-2ec0-42d2-b103-245a6e5d7bb7/zones.d/REDACTEDSERVERNAME:
total 208K
drwxr-xâ 2 icinga icinga 4.0K Sep 19 12:31 .
drwx------ 4 icinga icinga 4.0K Sep 19 12:31 âŠ
-rw-râr-- 1 icinga icinga 8.5K Sep 19 12:31 agent_endpoints.conf
-rw-râr-- 1 icinga icinga 9.9K Sep 19 12:31 agent_zones.conf
-rw-râr-- 1 icinga icinga 155K Sep 19 12:31 hosts.conf
-rw-râr-- 1 icinga icinga 1.4K Sep 19 12:31 notification_apply.conf
-rw-râr-- 1 icinga icinga 392 Sep 19 12:31 notification_templates.conf
-rw-râr-- 1 icinga icinga 2.0K Sep 19 12:31 services.conf
-rw-râr-- 1 icinga icinga 129 Sep 19 12:31 usergroups.conf
-rw-râr-- 1 icinga icinga 343 Sep 19 12:31 users.conf
Debug log attached, password sent in Private messagedebug.log.zip (107.8 KB)
Problem seems to be with Icinga2 Directly and probably not director.
Creating the config package works:
[root@mon icinga2]# curl -k -s -u root:REDACTEDPASSWORD -H âAccept: application/jsonâ -X POST https://localhost:5665/v1/config/packages/example-cmdb
{âresultsâ:[{âcodeâ:200.0,âpackageâ:âexample-cmdbâ,âstatusâ:âCreated package.â}]}
Uploading config not working:
[root@mon icinga2]# curl -k -s -u root:root:REDACTEDPASSWORD -H âAccept: application/jsonâ -X POST \
-d â{ âfilesâ: { âconf.d/test.confâ: âobject Host "cmdb-host" { chec_command = "dummy" }â }, âprettyâ: true }â
âhttps://localhost:5665/v1/config/stages/example-cmdbâ
{
âerrorâ: 500.0,
âstatusâ: âStage creation failed.â
Hmmm, I had a peek into the debug logs but the request looks valid. We donât log additional things though in this case, so I cannot really figure out why you would receive a 500 âstage creation failedâ error.
The examples from the docs work for me as well.
$ curl -k -s -u root:icinga -H 'Accept: application/json' -X POST https://localhost:5665/v1/config/packages/example-cmdb
{"results":[{"code":200.0,"package":"example-cmdb","status":"Created package."}]}
$ curl -k -s -u root:icinga -H 'Accept: application/json' -X POST https://localhost:5665/v1/config/stages/example-cmdb -d '{ "files": { "conf.d/test.conf": "object Host \"cmdb-host\" { chec_command = \"dummy\" }" }, "pretty": true }'
{
"results": [
{
"code": 200.0,
"package": "example-cmdb",
"stage": "d1cd4f03-8ecc-4d4e-842e-e45fd2ad6f25",
"status": "Created stage. Reload triggered."
}
]
}
[2019-09-23 17:45:40 +0200] information/HttpServerConnection: Request: POST /v1/config/stages/example-cmdb (from [::1]:63338), user: root, agent: curl/7.54.0).
[2019-09-23 17:45:40 +0200] information/ConfigPackageUtility: Updating configuration file: /usr/local/icinga/icinga2/var/lib/icinga2/api/packages/example-cmdb/d1cd4f03-8ecc-4d4e-842e-e45fd2ad6f25/conf.d/test.conf
[2019-09-23 17:45:40 +0200] information/HttpServerConnection: HTTP client disconnected (from [::1]:63338)
[2019-09-23 17:45:41 +0200] critical/ConfigPackageUtility: Config validation failed for package 'example-cmdb' and stage 'd1cd4f03-8ecc-4d4e-842e-e45fd2ad6f25'.
Still wondering about the exception here. Please add "verbose": true
to your POST request body and add the output here.
Cheers,
Michael
It dosent seem to print any additional data even with verbosity
[root@mon ~]# curl -k -s -u root:REDACTEDPW -H âAccept: application/jsonâ -X POST -d â{ âfilesâ: { âconf.d/test.confâ: âobject Host âcmdb-hostâ { chec_command = âdummyâ }â }, âverboseErrorsâ: true }â âhttps://localhost:5665/v1/config/stages/example-cmdbâ
{âerrorâ:500.0,âstatusâ:âStage creation failed.â}[root@mon ~]#