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.2 and 5.4 tables #30

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

ironbishop
Copy link

@ironbishop ironbishop commented Jul 20, 2021

actually this includes #23 too

ironbishop and others added 13 commits July 7, 2020 11:44
The previous code enumerates lists both listening and connected sockets. The output of listening (-l) is enough for the intended purpose. Optimizing this.

Further on, it matches on the first socket which in my case was mysqlx.sock which leads later to a protocol error. More specific search string resolves this.

As on this situation:
# netstat -axn | grep mysql
unix  2      [ ACC ]     STREAM     LISTENING     1934165  /var/run/mysqld/mysqlx.sock
unix  2      [ ACC ]     STREAM     LISTENING     1934169  /var/run/mysqld/mysqld.sock
unix  3      [ ]         STREAM     CONNECTED     1934197  /var/run/mysqld/mysqld.sock
[...]

we had 
# netstat -axn | grep -m1 mysq
unix  2      [ ACC ]     STREAM     LISTENING     1934165  /var/run/mysqld/mysqlx.sock

and error
ERROR 2007 (HY000): Protocol mismatch; server version = 11, client version = 10

After the fix it finds the right socket:
# netstat -lxn | grep -m1 mysqld.sock
unix  2      [ ACC ]     STREAM     LISTENING     1934169  /var/run/mysqld/mysqld.sock
@ironbishop ironbishop changed the title Zabbix 5.4 tables Zabbix 5.2 and 5.4 tables Jul 20, 2021
@kernbug
Copy link

kernbug commented Dec 13, 2021

@ironbishop @stephankn item_rtdata with schemaonly flag will give you broken installation. This table is only populated with database upgrade or from scratch. Server is not able to recover it after backup restore. Does anyone tested this tool before using on production environments, i'v already met several times users with installation broken and all of them pointed to this repo.

https://github.com/zabbix/zabbix/blob/99321c305c4998456fd184ddd9c267496798e73e/src/libs/zbxdbupgrade/dbupgrade_4030.c#L53

Owner of this repo ignores emails, pull requests.

@maxhq
Copy link
Owner

maxhq commented Dec 13, 2021

Owner of this repo ignores emails, pull requests.

This is absolutely correct. Owner of this repo is very sorry for letting people down, esp. if there are users with broken installations after backup file recovery.

I thought I would find some time again to look after zabbix-backup but personal and $work life didn't allow for this. As mentioned before I don't have a recent Zabbix installation anymore.

It seems that @ironbishop is the most active contributor. IMHO the best solution to recover from this unfortunate situation is:

  • "shut down" this repo, only leaving a message that forwards people to https://github.com/npotorino/zabbix-backup
  • go through the open pull requests to see if there are things worth merging that ironbishop hasn't already included
  • update the Zabbix Wiki to point users to the new repo
  • announce the new repo on LinkedIn (and the german competitor Xing)

@ironbishop would you be fine with taking over?

@maxhq maxhq mentioned this pull request Dec 13, 2021
@kernbug
Copy link

kernbug commented Dec 13, 2021

Thank you for reply. Would be good to off this repo and move project to the active contributor.

@ironbishop
Copy link
Author

yes i'm ok with that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants