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

Zabbix 5.4: method not found. Incorrect API "application" #1188

Closed
nomad-geek opened this issue Apr 15, 2021 · 32 comments · Fixed by #1214
Closed

Zabbix 5.4: method not found. Incorrect API "application" #1188

nomad-geek opened this issue Apr 15, 2021 · 32 comments · Fixed by #1214

Comments

@nomad-geek
Copy link

nomad-geek commented Apr 15, 2021

Describe the bug
I began rebuilding my Zabbix/Grafana monitoring again from scratch (I wanted to start over) using Docker containers.
I had everything functional and suddenly Grafana won't display some values on a Dashboard with error Incorrect API "application". I haven't been able to narrow down exactly why some values will display and some wont.
I went so far as to start over with Grafana in case I I'd caused the issue but a fresh installation of Grafana and the plugin result in the same issue.

Expected behavior
Grafana should show all widgets.

Screenshots
Non-functional default Zabbix Dashboard
Screen Shot 2021-04-15 at 14 27 27
Error from non-functional default Zabbix Dashboard
Screen Shot 2021-04-15 at 14 33 31
Other default dashboard still functional: (Github won't let me upload it for some reason)
https://imgur.com/a/llyY3Kp

Network data
{"datasourceId":1,"method":"application.get","params":{"output":"extend","hostids":[]}}

{"error":"Internal Server Error","message":"Method not found. Incorrect API \"application\"."}

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
7.5.4 5.4.0rc1 4.1.4
@nomad-geek
Copy link
Author

To be clear, I'd spent all day yesterday building a dashboard with various data on it and everything functioned fine. Near the end of that work while I was editing a widget I started receiving this error and I haven't been able to figure out what is causing it.

@alexanderzobnin
Copy link
Collaborator

I checked the latest Zabbix API docs and application.get seems to be there. So I guess it's Zabbix bug (rc1 is not a stable version, so this is more than probable).

@i-ky
Copy link

i-ky commented Apr 28, 2021

@alexanderzobnin, it's not a bug, it's a feature: ZBXNEXT-2976. Likely changes have not been documented yet. But it's clear that applications are gone.

@catmater
Copy link

catmater commented Apr 28, 2021

Confirm, critical implementing from Zabbix, breaking functionality this plugin completely. And still exist in 5.4.0 beta 3

@Codixer
Copy link

Codixer commented Apr 29, 2021

Anyone got any pointers how to downgrade zabbix? Through apt or something

@i-ky
Copy link

i-ky commented Apr 29, 2021

@thecoolone123, it is not possible if you don't have DB backup. During major upgrades Zabbix server and proxies apply database upgrade patches which are irreversible. You can downgrade Zabbix server binary through package manager like you usually do, but it will likely complain about DB version mismatch.

@Codixer
Copy link

Codixer commented Apr 30, 2021

Any pointers on that, i've not been sucessfull going back to 5.3-beta2

@alexanderzobnin
Copy link
Collaborator

It looks like application API was deleted in 5.4 https://support.zabbix.com/browse/ZBXNEXT-2976

@catmater
Copy link

catmater commented May 1, 2021

Yes, and long time ago. Now Zabbix 5.4.0 Beta 3 are so-so stable build, but this "improvement" completely break you great plugin functionality. And no way to downgrade Zabbix (only revert to backup dump of mysql base).

image

@i-ky
Copy link

i-ky commented May 1, 2021

Yes, and long time ago.

..and in 100% secrecy. Zabbix does not share design documents and still has not updated documentation (proof). Please understand that @alexanderzobnin can't start working on the fix before new API is documented. I encourage you to contact Zabbix and share your opinion on their policies.

@nomad-geek
Copy link
Author

nomad-geek commented May 6, 2021

Thanks for the replies, everyone - I'm sort of glad it isn't just me - I thought I was going crazy.
I appreciate your work, @alexanderzobnin - I eagerly but patiently await your fix [for Zabbix's trash fire.]
I've fallen back to the adequate but far less good Zabbix Dashboards for the time being.

cheers!

@catmater
Copy link

Zabbix 5.4.0-0.7rc1 - the same error.

@catmater
Copy link

Grafana 8.0.0 beta1 and Zabbix 5.4.0 0.8rc2 - Error still exist.

@GregoryOrciuch
Copy link

GregoryOrciuch commented May 17, 2021

Hi, now the stuff it's gonna explode (because 5.4.0 went GA today in docker hubs). I stepped into this bug because my automatic docker script upgraded today to zabbix to 5.4 .
Shame on zabbix to release undocumented changes which brakes backward compatibility.

@nomad-geek
Copy link
Author

nomad-geek commented May 17, 2021

Welcome to the party, everyone. Have some popcorn while we wait for Zabbix.
Edit: 👇 Progress made!

@i-ky
Copy link

i-ky commented May 17, 2021

Well, at least changes are documented now:

@roysbike
Copy link

Zabbix 5.4.0 Error still exist.(

@alexanderzobnin alexanderzobnin changed the title Method not found. Incorrect API "application" Zabbix 5.4: method not found. Incorrect API "application" May 18, 2021
@alexanderzobnin alexanderzobnin added this to the 4.2 milestone May 18, 2021
@GregoryOrciuch
Copy link

GregoryOrciuch commented May 18, 2021

Not sure if known, but I discovered a hack in Grafana to resurrect broken graphs. You edit your graph and then remove the content of "Application" field, leaving the item and the rest of them untouched, then it started to present graph. Discovered accidentialy because one of graphs had the application field empty and that one worked well after zbx 5.4.0 kicked in yesterday.
Link to evidence.

@mfitzgerald2
Copy link

mfitzgerald2 commented May 18, 2021

I can confirm this workaround works, I am running zabbix 5.4.0 and Grafana v7.4.2. You still get the "Method not found. Incorrect API "application"." error but at least you can see the data!

EDIT: It appears in that case, I was missing a data block, the error is completely gone!

@StefanSa
Copy link

privjet @alexanderzobnin
thanks for the quick fix, but the error has not yet been completely resolved (please reopen this Ticket).
Now i get all values again, but i get this error message when I refresh.
Ohne Titel 6
Ohne Titel 6

@alexanderzobnin
Copy link
Collaborator

@StefanSa you obviously cannot use Applications since it were removed in Zabbix. This is only compatibility fix, Applications will be replaced by tags in next plugin release.

@StefanSa
Copy link

Spasibo @alexanderzobnin
thank you for the clarification

@brunoscota
Copy link

Thank you @alexanderzobnin. I'm also waiting for this.

@tomukasteris
Copy link

I did update plugin to the latest version but still doesn't work.

@tomukasteris
Copy link

I have managed to fix by deleting data source and adding again with the same name.

@muhammadanees83
Copy link

Not sure if known, but I discovered a hack in Grafana to resurrect broken graphs. You edit your graph and then remove the content of "Application" field, leaving the item and the rest of them untouched, then it started to present graph. Discovered accidentialy because one of graphs had the application field empty and that one worked well after zbx 5.4.0 kicked in yesterday.
Link to evidence.

thanks bro..... this trick is working

@joachim-vertommen
Copy link

@StefanSa you obviously cannot use Applications since it were removed in Zabbix. This is only compatibility fix, Applications will be replaced by tags in next plugin release.

Hello, do you have an estimate when the next plugin release will arrive?
For us this is a blocking factor at the moment to upgrade Zabbix because it will break our Grafana graphs completely.

Thanks.

@akibukis
Copy link

akibukis commented Jul 17, 2021

Zabbix 5.4.2 on Ubuntu 20.10, Grafana v8.0.5 (cbb2aa5001).

Same problem:
Method not found. Incorrect API "application".

Are there any plans to finally fix this? It breaks many Grafana dashboards. :/

@akibukis
Copy link

UPDATE:

Upgraded alexanderzobnin-zabbix-app to v4.1.5 in Grafana and everything works without any problems!
Thank you, guys!

@akibukis
Copy link

UPDATE #2

Although all of my Grafana panels/graphs work, I am unable to query 'Application' items:

image

@i-ky
Copy link

i-ky commented Jul 17, 2021

@akibukis, see #1188 (comment)

@hexicans
Copy link

Hello

Same issue

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.