Comments (6)
Hi Beni,
thank you very much for this very well described problem.
I will look into this. As you already wrote the steps to reproduce this need some work, so please don't expect a solution within a few days.
I would suggest not to remove this option, but to handle the redirect properly.
If it's a bug in the API, we have to fix it there anyway.
KR,
Max
from ansible-collection-checkmk.general.
Hi @hb9hnt,
i know that your example is about the activation endpoint, but it looks like the issue we already have with #414 is the same. Can you confirm this?
KR,
Max
from ansible-collection-checkmk.general.
Hey @Max-checkmk
I do agree that the cause of the issue is the same: calling an API endpoint which possibly returns a 302 to a background job. However I don't agree that the two issues are the same, because the discovery endpoint domain-types/service_discovery_run/actions/start/invoke
doesn't give you the option to set redirect: false
and make the request synchronous.
IMHO solving this issue is a lot easier than fixing #441 and the resolution that makes sense for #441 might not applicable for the activation endpoint described here.
However, you know the inner workings of Checkmk way better than I do. If you already see a solution that's applicable to both endpoints I'm interested in how you'd solve it.
--Beni
from ansible-collection-checkmk.general.
Hi Beni,
i just had a customer ticket where we had the exact same problem.
The API answers with the same protocol in which the request came in.
In this case the system apache wasn't configured to forward the https to the site apache.
Could you please check if your system apache is configured like described here?
https://docs.checkmk.com/latest/en/omd_https.html?lquery=apache#httpsredirect
It's about those lines:
<IfModule headers_module>
RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
RequestHeader set X-Forwarded-SSL expr=%{HTTPS}
</IfModule>
KR,
Max
from ansible-collection-checkmk.general.
Hey Max
I can confirm that this header was missing from my config. I added the header. At the moment I don't have the opportunity to test this, but I think we can assume that this issue doesn't need fixing.
Thank you and regards
Beni
from ansible-collection-checkmk.general.
Thanks for the update guys! 🙏
I will close this issue then for now, if the issue remains, feel free to re-open it @hb9hnt. ✌️
from ansible-collection-checkmk.general.
Related Issues (20)
- [BUG] update_attributes on folder with network scan enabled (and a network scan result present) fails HOT 5
- [FEED]Agent download fails in distributed setup HOT 1
- [BUG] Inconsistent behaviour of Ansible modules (update vs remove + compared to API) HOT 10
- [BUG]: reset_password in user module recreates the user HOT 1
- host_tag_group Endpoint changed the parameters id/ident HOT 1
- [BUG] notification rules is not recognized by checkmk.general.rule HOT 3
- [FEED] HOT 2
- [BUG] idempotency of rule fails on datasource_programs ruleset HOT 8
- [BUG] Register Linux agent for TLS fails with CRE edition HOT 3
- [BUG] Agent role has unecessary changes, when the agent is already registered and added to CheckMK HOT 2
- [Feature Request] Create Host and Service Groups Rules via Ansible HOT 4
- [BUG] folder creation always lowers the foldername HOT 10
- [Feed] folder lookup plugin does not return the title of the folder HOT 3
- fixed downtime? HOT 4
- [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
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.