-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage of IcingaWeb2 api command returns 404, but is successful #5183
Comments
Hi, this is hardly an issue with Icinga Web. The result you get is what Web gets from Icinga's API. I don't know what the issue is, but it seems to me that some of the hosts in the group are not found, and some are. Or that some of the hosts have no downtime, but some have. |
Looked at it again. This changed with Icinga 2.13.0 due to Icinga/icinga2#8913 and Web still tries to remove child downtimes. ref/IP/52026 |
Describe the bug
When I use the icingaweb2 api, some commands return a 404, but the commands are successful executed.
To Reproduce
IcingaWeb2 2.9.6
returns:
{"status":"error","message":"fqdn master1: Can't send external Icinga command: 404 No objects found.\nfqdn master2: Can't send external Icinga command: 404 No objects found."}
IcingaWeb2 2.12.1
Interestingly it works for single services with
?host=<hostname>&service=<servicename>
returns:
{"status":"error","message":"fqdn master1: Can't send external Icinga command: 404 No objects found.\nfqdn master2: Can't send external Icinga command: 404 No objects found."}
Expected behavior
Successful execution should be reflected as such.
Your Environment
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
): 2.13.9php --version
):RHEL7 with Icingaweb2 2.9.6:
RHEL8 with IcingaWeb2 2.12.1:
Additional context
icingaweb2 --> icinga:
permissions = [ "status/query", "actions/*", "objects/modify/*", "objects/query/*", ]
WebUser permissions are the same in 2.9.6 and 2.12.1:
The text was updated successfully, but these errors were encountered: