Skip to content
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

Build for FreeBSD #1301

Closed
hellmany opened this issue Sep 16, 2021 · 11 comments · Fixed by #1501
Closed

Build for FreeBSD #1301

hellmany opened this issue Sep 16, 2021 · 11 comments · Fixed by #1501

Comments

@hellmany
Copy link

hellmany commented Sep 16, 2021

Is your feature request related to a problem? Please describe.
Could you please add freebsd_amd64 compiled plugin to the package and sign it?

Describe the solution you'd like
I compiled it with
go mod vendor env GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w" -mod=vendor -o ./dist/zabbix-plugin_freebsd_amd64 ./pkg
but i've got signature invalid/modified error

Thanks.

@overhacked
Copy link
Contributor

I'd also like if you could begin building with GOOS=freebsd again, also. I'm able to build the backend binary with no problem and load the plugin with allow_loading_unsigned_plugins = "alexanderzobnin-zabbix-datasource,alexanderzobnin-zabbix-triggers-panel,alexanderzobnin-zabbix-app".

Is there a CI or testing issue that I can help with so that the signed plugin can support FreeBSD again?

@alexanderzobnin
Copy link
Collaborator

Hi! I can add FreeBSD build to the release. How do you install plugins since we don't have official Grafana build for freebsd, manually? I can add it as a separate package in the github release.

@hellmany
Copy link
Author

from ports =)

@overhacked
Copy link
Contributor

Yep, there is a maintained FreeBSD port for Grafana, and the plugin-cli works perfectly to install alexanderzobnin-zabbix-app but it won't run due to the lack of FreeBSD backend binary.

@alexanderzobnin
Copy link
Collaborator

Ok, got it. Thus, I need to add this to the package.

@alexanderzobnin alexanderzobnin added this to the 4.3 milestone Sep 23, 2021
@MostFrabjous
Copy link

Related: #1022

@hellmany
Copy link
Author

hellmany commented Feb 16, 2022

Please, release signed plugin for freebsd, it's a pain to install it.

We're waiting from Sep 2021 =(((

@hellmany
Copy link
Author

Now i cannot load plugin in Grafana 8
"Failed to validate plugin signature. Will skip loading"

allow_loading_unsigned_plugins = alexanderzobnin-zabbix-app,alexanderzobnin-zabbix-datasource,alexanderzobnin-zabbix-app,alexanderzobnin-zabbix-triggers-panel

Cannot help

@paulofragoso
Copy link

I can not compile anymore in FreeBSD. How can I install your plugin using this OS?

Granfana 9 and Zabbix 6 are installed in FreeBSD without problems.

Thanks,
Paulo.

@paulofragoso
Copy link

After corrects my dependencies I could compile onde plugin for FreeBSD for Zabbix6.

Thanks,
Paulo.

@overhacked
Copy link
Contributor

Hi, I don't mean to be a bother, just a friendly reminder: I internally maintain a FreeBSD port of this plugin for our infrastructure, which I can't make public because of the unsigned plugin issue. Apart from that, the backend compiles with zero modifications when setting GOOS=freebsd.

There are a couple of open, duplicate issues requesting FreeBSD support: #1402, #1237, and #1203. I'll go ahead and open a PR that would close this issue, with fingers crossed. Thank you!

@alexanderzobnin alexanderzobnin changed the title freebsd plugin Build for FreeBSD Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants