[ZBXNEXT-5257] Template for PostgreSQL Created: 2019 Jun 05  Updated: 2024 Apr 10  Resolved: 2019 Oct 04

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Templates (T)
Affects Version/s: None
Fix Version/s: 4.4.0alpha2, 4.4 (plan)

Type: Change Request Priority: Minor
Reporter: Vitaly Zhuravlev Assignee: Anton Fayantsev (Inactive)
Resolution: Fixed Votes: 1
Labels: Template_DB_PostgreSQL
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2019-07-11 at 16.05.07.png    
Issue Links:
Duplicate
is duplicated by ZBXNEXT-2582 Postgresql support template Closed
is duplicated by ZBX-16686 type issues Template DB PostgreSQL Closed
Sub-task
depends on ZBX-16629 On ubuntu home environment variable i... Closed
Team: Team INT
Sprint: Sprint 56 (Sep 2019), Sprint 55 (Aug 2019), Sprint 53 (Jun 2019), Sprint 54 (Jul 2019)
Story Points: 2

 Comments   
Comment by patrik uytterhoeven [ 2019 Aug 02 ]

Interesting to see a PostgreSQL template in Zabbix

will zabbix be able to monitor via agent a postgresql database 

with same functionalities like the module of Ryan does at the moment?

http://cavaliercoder.com/libzbxpgsql/

 

Comment by Aleksandrs Larionovs (Inactive) [ 2019 Aug 12 ]

patrik The template will be slightly different as it will feature user parameters instead of loadable module for now.
The first version of the template has been published. You can review it here: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/db/postgresql

Comment by Aleksandrs Larionovs (Inactive) [ 2019 Aug 12 ]

Available in 4.4.0alpha2 298a3379

Comment by Tiemen Ruiten [ 2019 Sep 23 ]

I tried out this template with a PostgreSQL 11 DB and Zabbix 4.2 and came across several issues:

1.

Discovered items "DB {#DBNAME}: Queries * time" should have type Numeric (float) and not Numeric (unsigned). 

2.

Item "Replication: lag in seconds" should have type Numeric (float) and not Numeric (unsigned). 

3.

At least when installing from the PGDG repos, pg_isready is not in the $PATH for the zabbix user, leading to false alerts. So perhaps something could be added to the README.md about that. 

 

afayantsev Thank you for your feedback! Added type conversion in SQL queries and an installation note from the PGDG repository.

Generated at Tue Jan 07 22:58:54 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.