[ZBX-19897] Bug in template PostgreSQL by agent2 dependent item Created: 2021 Sep 01 Updated: 2024 Apr 10 Resolved: 2021 Dec 13 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Templates (T) |
Affects Version/s: | None |
Fix Version/s: | 5.0.19rc1, 5.4.9rc1, 6.0.0beta1, 6.0 (plan) |
Type: | Problem report | Priority: | Trivial |
Reporter: | Aleksandrs Larionovs (Inactive) | Assignee: | Vyacheslav Khaliev |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||||||||||||||||||||||||||||||||||
Team: | |||||||||||||||||||||||||||||||||||||
Sprint: | Sprint 80 (Sep 2021), Sprint 81 (Oct 2021), Sprint 82 (Nov 2021), Sprint 83 (Dec 2021) | ||||||||||||||||||||||||||||||||||||
Story Points: | 4 |
Description |
Master tas for PostgreSQL issues: (1) from https://support.zabbix.com/browse/ZBX-19873 Please add another preprocessing step to validate the data or even replace NULL with 0 to avoid this. (2) from https://support.zabbix.com/browse/ZBX-19735 Hi! postgres=# select pg_last_xact_replay_timestamp(); pg_last_xact_replay_timestamp ------------------------------- 2021-06-26 22:11:23.259069+03 Item "Replication: lag in seconds": pgsql.replication.lag.sec["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.DB}"] And looks like trigger not working correctly for me. PostgreSQL: Streaming lag with {#MASTER} is too high (over {$PG.REPL_LAG.MAX.WARN} in 5m) In my case I change user parameter SQL from CASE WHEN pg_last_wal_receive_lsn() = pg_last_wal_replay_lsn() to CASE WHEN pg_last_wal_receive_lsn() is NULL or pg_last_wal_receive_lsn() = pg_last_wal_replay_lsn() And it corrects the issue. Hope you can update this script. (3) from https://support.zabbix.com/browse/ZBX-19734 In PostgreSQL Agent 2 template documentation: In section 1. Create PostgreSQL user for monitoring (<password> at your discretion): Missing important GRANT section: GRANT EXECUTE ON FUNCTION pg_ls_waldir() TO zbx_monitor; Otherwise in fronted error appear (4) from https://support.zabbix.com/browse/ZBX-19672 When using the template PostgreSQL by Zabbix agent 2. There is an error in the database(slave+master) log : ERROR: column "received_lsn" does not exist at character 36 (5) from https://support.zabbix.com/browse/ZBX-18889
Result: Expected: (6) Bug in template PostgreSQL by agent2 dependent item "WAL: Segments count", Preprocessing: JSONPATH: $.write has to be JSONPATH: $.count
(7) Archiving metrics Count of files in archive_status need to archive (pgsql.archive.count_files_to_archive) The metric is calculated by directly browsing the FS catalog. For this, functions are used that are available by default only to the superuser. You can instead use information from system views and functions. Connection metrics Connections sum: Total (pgsql.connections.total) The calculation does not exclude system processes. Cache hit (pgsql.cache.hit ["\{$ PG.URI}"]) flush lag, write lag and replay lag per each sender process (pgsql.replication.process [uri, username, password]) Number of standby servers (pgsql.replication.count [uri, username, password]) PostgreSQL uptime, in milliseconds (pgsql.uptime [<commonParams>]) |
Comments |
Comment by Vyacheslav Khaliev [ 2021 Dec 02 ] |
Available in:
|