-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Feature: Zabbix service widget #3905
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did somewhat break the Service Widget Guidelines.
Zabbix exposes 6 alert fields by default, but I can cut it down to just 4.
Zabbix requires an auth-field in the JSON RPC call for API tokens, which I could not figure out how to do with the generic jsonrpc proxy.Let me know what I should change to have a valid pull request.
Well, you need to change both of those things, that's why we have the guidelines.
Setting up a Zabbix instance to test does not seem trivial, so Im not inclined to do so, but Im certain the existing jsonrpc proxy can be modified to accept body params, or just simply adding logic to use widget.key
if its supplied instead of username/pw.
I've removed the two lowest priority fields for now.
I've tried to do that, by passing the params via the URL itself and then parsing it again within the proxy. Hopefully this is okay. We now also pass the actual
If you're using Proxmox, you could use tteck's proxmox scripts to setup a Zabbix LXC. |
As long as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for the quick changes.
- I just reverted the change to the headers of the jsonrpc proxy just in case it affects other widgets. Presumably your version is more correct but zabbix didn't seem to care (I went ahead and did docker setup, pretty simple actually)
- Passing arbitrary params is a security vulnerability, so you can look how I've done this, basically they need to be hard-coded into the widget
Obviously let me know if you have any concerns
Perfect, thank you for fixing my mistake. I'll make sure to do better on the next widget 😁 |
Co-Authored-By: shamoon <[email protected]>
There is no new release yet, so it is not available yet. |
Ok, thanks for letting me know... |
Co-Authored-By: shamoon <[email protected]>
@adm2k FYI, the widget is now available |
Thanks, working now... |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |
Proposed change
The user will be able to add the widget to the
services.yaml
file using the following configuration:Relevant feature request: #1953
Notes
I did somewhat break the Service Widget Guidelines.
auth
-field in the JSON RPC call for API tokens, which I could not figure out how to do with the generic jsonrpc proxy.Let me know what I should change to have a valid pull request.
Type of change
Checklist: