[ZBX-18292] Postgresql monitoring using zabbix agent2 broke in 5.0.2 Created: 2020 Aug 25 Updated: 2024 Apr 10 Resolved: 2020 Nov 23 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | Templates (T) |
| Affects Version/s: | 5.0.2, 5.0.3 |
| Fix Version/s: | 5.4 (plan) |
| Type: | Problem report | Priority: | Trivial |
| Reporter: | Alexander Yagupov | Assignee: | Aleksandrs Larionovs (Inactive) |
| Resolution: | Won't fix | Votes: | 1 |
| Labels: | items | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
SLES 15.1 |
||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Team: | |||||||||||||||||||||
| Sprint: | Sprint 70 (Nov 2020) | ||||||||||||||||||||
| Story Points: | 1 | ||||||||||||||||||||
| Description |
|
После обновления на версии 5.0.2 и 5.0.3 не полностью работает мониторинг Postgresql |
| Comments |
| Comment by Alexander Yagupov [ 2020 Aug 26 ] |
|
Прошу прощения ошибся со ссылкой на шаблон. Правильная ссылка - https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/db/postgresql_agent2. Именно zabbix-agent2/ |
| Comment by dimir [ 2020 Aug 28 ] |
|
This issue tracker is international and the language is English. Please provide the translation of the description in English so we can replace current one with it. |
| Comment by Alexander Yagupov [ 2020 Aug 29 ] |
|
Sorry for my English. The problem is as follows. In zabbix versions 5.0.2 and 5.0.3, Postgresql database monitoring using the official template using zabbix agent 2 is partially disabled. When zabbix agent 2 is rolled back to version 5.0.1, it is restored. Some of the data elements in the status are not supported with an error - the only supported schemes are: tcp and unix. |
| Comment by Alexander Yagupov [ 2020 Oct 12 ] |
|
zabbix-agent2 version 5.0.4 is still broken. |
| Comment by Alexander Yagupov [ 2020 Nov 15 ] |
|
zabbix-agent2 version 5.0.5 is still broken. |
| Comment by Aleksandrs Larionovs (Inactive) [ 2020 Nov 18 ] |
|
a.yagupov can you please provide your current connection string that does not work for you. |
| Comment by Alexander Yagupov [ 2020 Nov 18 ] |
|
Hello. Unfortunately, at the moment, I have to use the working version of zabbix-agent 2 5.0.1 and I can't reproduce this error, but all the information is in |
| Comment by Aleksandrs Larionovs (Inactive) [ 2020 Nov 18 ] |
|
a.yagupov could you provide an example of your agent2 configuration file or connection string used to connect to the database? |
| Comment by Alexander Yagupov [ 2020 Nov 19 ] |
|
Hello. Uploaded files. Is that what you mean? Connecting to the database via pgbouncer port 6452. Database with TimescaleDB. |
| Comment by Aleksandrs Larionovs (Inactive) [ 2020 Nov 19 ] |
|
Thank you a.yagupov, can you also check the logs of Agent2 what error is displayed during the connection? |
| Comment by Alexander Yagupov [ 2020 Nov 19 ] |
|
I can't play back entries in the zabbix-server log because I have now rolled back to zabbix-agent 2 version 5.0.1(which has no errors). However, you can view the log entries in |
| Comment by Alexander Yagupov [ 2020 Nov 19 ] |
|
Found. The information you are interested in is in these files on October 28 between 12.00-13.00 |
| Comment by Aleksandrs Larionovs (Inactive) [ 2020 Nov 20 ] |
|
a.yagupov could you try updating agent and updating template to the latest version from git? https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/db/postgresql_agent2/template_db_postgresql_agent2.xml?at=refs%2Fheads%2Frelease%2F5.0 |
| Comment by Alexander Yagupov [ 2020 Nov 20 ] |
|
So far, I just connected a new template, without updating zabbix-agent 2 from version 5.0.1 to version 5.0.5. Now I'll post the errors. |
| Comment by Alexander Yagupov [ 2020 Nov 20 ] |
|
Not worked items: |
| Comment by Alexander Yagupov [ 2020 Nov 20 ] |
| Comment by Aleksandrs Larionovs (Inactive) [ 2020 Nov 20 ] |
|
Can you run in psql select sum(checksum_failures ) FROM pg_catalog.pg_stat_database; and show the results? |
| Comment by Alexander Yagupov [ 2020 Nov 20 ] |
|
zabbix2020:/etc/zabbix # sudo -u postgres psql zabbix (1 row) (1 row) In items Checkpoint: Checkpoint sync time JSONPath must be $.checkpoint_sync_time |
| Comment by Alexander Yagupov [ 2020 Nov 20 ] |
|
In the old template for item PostgreSQL statistical: Checksum failure, the preprocessing was |
| Comment by Alexander Yagupov [ 2020 Nov 20 ] |
|
In General, everything worked for me. You need to finish the template to make it work for others. But I have another question. I can't force zabbix-agent 2 to work through pgbouncer port 6432? In the config, the agent ignores Plugins. Postgres. Post=6432. The macro in the {$PG.URI} unix template:///var/run/postgresql/PGSQL:6432 is also ignored. |
| Comment by Aleksandrs Larionovs (Inactive) [ 2020 Nov 23 ] |
|
a.yagupov thank you for your feedback. The port issue will be resolved in |