Comments (4)
I cannot reproduce the 500 anymore.. I have deleted the folder which was before created not by folder
module - instead it was created by host
module.. maybe this is the reason why I got the 500?!
But now when Folder exists already - adding the host doesn't work anymore - I am really confused..
TASK [cmk_host_registration : Create customer folder] ****************************************************************
changed: [HOST -> localhost]
TASK [cmk_host_registration : Create poject folder] ******************************************************************
changed: [HOST -> localhost]
TASK [cmk_host_registration : Add/update/remove host] ****************************************************************
fatal: [HOST -> localhost]: FAILED! => changed=false
msg: 'Error calling API. HTTP code 400. Details: b''{"title": "Bad Request", "status": 400, "detail": "These fields have problems: folder", "fields": {"folder": ["\''/platform/KUNDE/PROJECT/PROD/\'' does not match pattern \''(?:(?:[~\\\\\\\\\\\\\\\\\\\\\\\\/]|(?:[~\\\\\\\\\\\\\\\\\\\\\\\\/][-_ a-zA-Z0-9.]+)+)|[0-9a-fA-F]{32})\''."]}}'', '
from ansible-collection-checkmk.general.
Just to confirm: The problem you want to tackle with this issue is that the body
variable is only assigned if we get a 200 from the API call, so when there is an error, we cannot print that information, right?
from ansible-collection-checkmk.general.
Correct.. there seems to be other problems because the 500 error from the API was showing again - but yeah in this issue only that there is a 500 shown and not the error message which is shown at the moment.
from ansible-collection-checkmk.general.
I have fixed the handling off HTTP 500 errors in host.py and folder.py.
from ansible-collection-checkmk.general.
Related Issues (20)
- [BUG] "Register Agent for TLS" does not allow for "!" in checkmk_agent_auth on Linux HOT 1
- [FEED] Only register agent if host was created on the server or agent was installed HOT 4
- [FEED] Implement module for LDAP Connections
- [BUG] module "folder" not idempotent HOT 10
- [BUG] `discovery` module out of sync with the Checkmk REST API HOT 2
- [BUG] Error in the Agent role, Firewall seems to be only installed if checkmk_agent_server is an ip address HOT 3
- [FEED] Configure new web services monitoring HOT 1
- [BUG] rule idempotency check does not work for special_agents:vsphere rules HOT 4
- [BUG] ckeckmk agent deployment not respecting variables HOT 1
- [BUG] Unable to register agent for automatic updates HOT 5
- [BUG] Integration tests for downtime module creates downtime in the past HOT 1
- [BUG] Agent role crashes, when connections file absent HOT 4
- [BUG] InvalidAccessKeyId during installing the collection HOT 1
- Agent TLS registration does not work in disributed monitoring
- [BUG] Skip verifying the ssl cert for setting downtimes HOT 1
- [BUG] update_attribute on folder always results in 'changed' HOT 12
- [FEED] Implement module for DCD Connections
- Ansible trying to use linux shell to execute a powershell command HOT 1
- [BUG] Crash using host module on RHEL 7 and SLES 12 (both using Python2) HOT 9
- [BUG] checkmk.general.agent : Fetch fresh monitoring data from host. Fails for agents queried through SSH.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-collection-checkmk.general.