grafana / grafana-zabbix

Zabbix plugin for Grafana dashboard
http://play.grafana-zabbix.org
Apache License 2.0
2.08k stars 461 forks source link

Failed to start plugin on Windows: executable file not found in %PATH% #1033

Open ruchimal opened 4 years ago

ruchimal commented 4 years ago

Error: image

Error Log =2020-08-31T20:00:53+0530 lvl=info msg="Stopped Stream Manager" t=2020-08-31T20:00:59+0530 lvl=info msg="Starting Grafana" logger=server version=7.0.0 commit=aee1438ff2 branch=HEAD compiled=2020-05-15T20:00:30+0530 t=2020-08-31T20:00:59+0530 lvl=info msg="Config loaded from" logger=settings file="C:\Program Files\GrafanaLabs\grafana/conf/defaults.ini" t=2020-08-31T20:00:59+0530 lvl=info msg="Path Home" logger=settings path="C:\Program Files\GrafanaLabs\grafana" t=2020-08-31T20:00:59+0530 lvl=info msg="Path Data" logger=settings path="C:\Program Files\GrafanaLabs\grafana\data" t=2020-08-31T20:00:59+0530 lvl=info msg="Path Logs" logger=settings path="C:\Program Files\GrafanaLabs\grafana\data\log" t=2020-08-31T20:00:59+0530 lvl=info msg="Path Plugins" logger=settings path="C:\Program Files\GrafanaLabs\grafana\data\plugins" t=2020-08-31T20:00:59+0530 lvl=info msg="Path Provisioning" logger=settings path="C:\Program Files\GrafanaLabs\grafana\conf\provisioning" t=2020-08-31T20:00:59+0530 lvl=info msg="App mode production" logger=settings t=2020-08-31T20:00:59+0530 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3 t=2020-08-31T20:00:59+0530 lvl=info msg="Starting DB migration" logger=migrator t=2020-08-31T20:00:59+0530 lvl=info msg="Starting plugin search" logger=plugins t=2020-08-31T20:00:59+0530 lvl=eror msg="Failed to load plugin" logger=plugins error="Failed to register plugin: Plugin with ID \"stackdriver\" already exists" pluginPath="C:\Program Files\GrafanaLabs\grafana\public\app\plugins\datasource\stackdriver" t=2020-08-31T20:00:59+0530 lvl=warn msg="Some plugins failed to load" logger=plugins errors="[Failed to register plugin:\n github.com/grafana/grafana/pkg/util/errutil.Wrap\n /root/project/pkg/util/errutil/errors.go:18\n - Plugin with ID \"stackdriver\" already exists]" t=2020-08-31T20:00:59+0530 lvl=info msg="Registering plugin" logger=plugins name="Direct Input" t=2020-08-31T20:00:59+0530 lvl=warn msg="Running an unsigned backend plugin" logger=plugins pluginID=alexanderzobnin-zabbix-datasource pluginDir="C:\Program Files\GrafanaLabs\grafana\data\plugins\alexanderzobnin-zabbix-app\datasource-zabbix" t=2020-08-31T20:00:59+0530 lvl=info msg="Registering plugin" logger=plugins name=Zabbix t=2020-08-31T20:00:59+0530 lvl=info msg="Registering plugin" logger=plugins name="Zabbix Problems" t=2020-08-31T20:00:59+0530 lvl=info msg="Registering plugin" logger=plugins name=Zabbix t=2020-08-31T20:00:59+0530 lvl=info msg="HTTP Server Listen" logger=http.server address=[::]:3000 protocol=http subUrl= socket= t=2020-08-31T20:00:59+0530 lvl=eror msg="Failed to start plugin" logger=plugins.backend pluginId=alexanderzobnin-zabbix-datasource error="exec: \"zabbix-plugin_windows_amd64.exe\": executable file not found in %PATH%" t=2020-08-31T20:04:43+0530 lvl=eror msg="Failed to " logger=context userId=1 orgId=1 uname=admin error="Failed to call resource: plugin not running, cannot call resource" t=2020-08-31T20:04:43+0530 lvl=eror msg="Failed to " logger=context userId=1 orgId=1 uname=admin error="Failed to call resource: plugin not running, cannot call resource" t=2020-08-31T20:04:43+0530 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/2/resources/zabbix-api status=500 remote_addr=[::1] time_ms=9 size=24 referer=http://localhost:3000/datasources/edit/2/ t=2020-08-31T20:04:43+0530 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/2/resources/zabbix-api status=500 remote_addr=[::1] time_ms=20 size=24 referer=http://localhost:3000/datasources/edit/2/

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
7.0.0 3.4.x 4.0.0
jedd commented 4 years ago

Your log includes:

t=2020-08-31T20:00:59+0530 lvl=warn msg="Running an unsigned backend plugin" logger=plugins pluginID=alexanderzobnin-zabbix-datasource pluginDir="C:\Program Files\GrafanaLabs\grafana\data\plugins\alexanderzobnin-zabbix-app\datasource-zabbix"

If you're upgrading to 4.0.0 you'll need to modify grafana.ini with

[plugins] allow_loading_unsigned_plugins = alexanderzobnin-zabbix-datasource

ruchimal commented 4 years ago

Thank you jedd for your response.

I have already done the changes mentioned in the installation. please see below screen dump for details

image

Actual Error t=2020-08-31T21:25:15+0530 lvl=eror msg="Failed to start plugin" logger=plugins.backend pluginId=alexanderzobnin-zabbix-datasource error="exec: \"zabbix-plugin_windows_amd64.exe\": executable file not found in %PATH%"

alexanderzobnin commented 4 years ago

I will test it out on Windows and try to find a reason.

ruchimal commented 4 years ago

I will test it out on Windows and try to find a reason.

Hello Alexander, Hope you had the chance to try using a Windows OS.If so , can you please us know the details to rectify this issue

myckallan commented 4 years ago

Just take a look on this link. It resolved for me.

https://github.com/alexanderzobnin/grafana-zabbix/issues/991#issuecomment-699114097

jorgeluismlima commented 3 years ago

just Set global environment variable on Windows. Set the "PATH" variable to: C:\Program Files\GrafanaLabs\grafana\data\plugins\alexanderzobnin-zabbix-app take a look at this article to see how to add to "PATH" in Windows 10 https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/

taner91xp commented 3 years ago

Hello all,

I am faced with issues with the Windows-Based latest version of Grafana and the latest version of the Zabbix plugin.

Please could you help me? I tried Linux based version and it works perfectly. But in Windows 10 and in Windows Server Datacenter 2019 I see the same log:

t=2021-01-30T22:00:50+0200 lvl=eror msg="Failed to start plugin" logger=plugins.backend pluginId=alexanderzobnin-zabbix-datasource error="exec: "zabbix-plugin_windows_amd64.exe": executable file not found in %PATH%"

t=2021-01-30T22:00:50+0200 lvl=eror msg="Failed to start plugin" logger=plugins.backend pluginId=alexanderzobnin-zabbix-datasource error="exec: "zabbix-plugin_windows_amd64.exe": executable file not found in %PATH%" t=2021-01-30T22:02:36+0200 lvl=eror msg="Plugin unavailable" logger=context userId=1 orgId=1 uname=admin error="Plugin unavailable" t=2021-01-30T22:02:36+0200 lvl=eror msg="Plugin unavailable" logger=context userId=1 orgId=1 uname=admin error="Plugin unavailable" t=2021-01-30T22:02:36+0200 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/1/resources/zabbix-api status=503 remote_addr=10.10.60.32 time_ms=24 size=32 referer=http://10.10.10.34:3000/datasources/edit/1/ t=2021-01-30T22:02:36+0200 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/1/resources/zabbix-api status=503 remote_addr=10.10.60.32 time_ms=3 size=32 referer=http://10.10.10.34:3000/datasources/edit/1/

I tried to create Environment Variables for my user name and for the system:

zabbix-plugin_windows_amd64 C:\Program Files\GrafanaLabs\grafana\data\plugins\alexanderzobnin-zabbix-app

This helped me to solve the error message only in Windows 10 but not and in Windows Server 2019 Datacenter: t=2021-01-30T22:29:56+0100 lvl=eror msg="Failed to start plugin" logger=plugins.backend pluginId=alexanderzobnin-zabbix-datasource error="exec: "zabbix-plugin_windows_amd64.exe": executable file not found in %PATH%"

In Windows 10 I continue to see the error messages:

t=2021-01-30T23:01:32+0200 lvl=eror msg="Plugin unavailable" logger=context userId=1 orgId=1 uname=admin error="Plugin unavailable" t=2021-01-30T23:01:32+0200 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/1/resources/zabbix-api status=503 remote_addr=[::1] time_ms=30 size=32 referer=http://localhost:3000/datasources/edit/1/ t=2021-01-30T23:01:32+0200 lvl=eror msg="Plugin unavailable" logger=context userId=1 orgId=1 uname=admin error="Plugin unavailable" t=2021-01-30T23:01:32+0200 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/1/resources/zabbix-api status=503 remote_addr=[::1] time_ms=1 size=32 referer=http://localhost:3000/datasources/edit/1/

The OS is: Microsoft Windows Server 2019 Datacenter the latest release

The Grafana Version is Windows version: v7.3.7 (1e261642f4)

I tried and with Grafana Windows Version: v7.3.2 (b8ad4eaab3) The same results... t=2021-01-30T22:29:56+0100 lvl=eror msg="Failed to start plugin" logger=plugins.backend pluginId=alexanderzobnin-zabbix-datasource error="exec: "zabbix-plugin_windows_amd64.exe": executable file not found in %PATH%"

The Zabbix Plugin is the latest: alexanderzobnin-zabbix-app-4.1.2.zip

The plugin is downloaded from here: https://storage.googleapis.com/plugins-community/alexanderzobnin-zabbix-app/release/4.1.2/alexanderzobnin-zabbix-app-4.1.2.zip

Thank you in advance. Best Regards.

I solved the issue only with plugin version 3.12.2!

I could report the same issue and in Bitnami Grafana Appliance!

But in 3.12.2 now Grafana alert doesn't work ... The datasource does not support alerting queries..

Any ideas?