1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00

This project provides comprehensive monitoring of PostgreSQL servers using a

natively compiled Zabbix agent module, written in C.

The module enables discovery and monitoring of tablespaces, databases,
namespaces, tables, indexes, etc.

A preconfigured Zabbix Template is also included for your convenience.

WWW: http://cavaliercoder.com/libzbxpgsql/

PR:		211844
Submitted by:	Martin Waschbuesch <martin@waschbuesch.de>
This commit is contained in:
Matthew Seaman 2016-08-16 07:57:21 +00:00
parent f294d399f7
commit 84ccc77177
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420269
7 changed files with 65 additions and 0 deletions

View File

@ -168,6 +168,7 @@
SUBDIR += libpbl
SUBDIR += libpqtypes
SUBDIR += libsdb
SUBDIR += libzbxpgsql
SUBDIR += libzdb
SUBDIR += linux-c6-sqlite3
SUBDIR += linux-f10-sqlite3

View File

@ -0,0 +1,32 @@
# Created by: Martin Waschbuesch <martin@waschbuesch.de>
# $FreeBSD$
PORTNAME= libzbxpgsql
PORTVERSION= 1.0.0
DISTVERSIONPREFIX= v
CATEGORIES= databases
MAINTAINER= martin@waschbuesch.de
COMMENT= Zabbix agent module for comprehensive monitoring of PostgreSQL servers
LICENSE= GPLv2
BUILD_DEPENDS= ${NONEXISTENT}:net-mgmt/zabbix3-agent:patch
RUN_DEPENDS= ${LOCALBASE}/sbin/zabbix_agentd:net-mgmt/zabbix3-agent
USE_GITHUB= yes
GH_ACCOUNT= cavaliercoder
USES= autoreconf gmake libtool pgsql
GNU_CONFIGURE= yes
GET_ZBX_WRKSRC= cd ${.CURDIR:H:H}/net-mgmt/zabbix3-agent && make -V WRKSRC
CONFIGURE_ARGS= --with-zabbix=$$(${GET_ZBX_WRKSRC})
USE_LDCONFIG= yes
do-install:
${INSTALL_LIB} ${WRKSRC}/src/.libs/libzbxpgsql.so ${STAGEDIR}${PREFIX}/lib/libzbxpgsql.so
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_MAN} ${WRKSRC}/template_postgresql_server.xml ${STAGEDIR}${EXAMPLESDIR}/template_postgresql_server.xml
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1471038836
SHA256 (cavaliercoder-libzbxpgsql-v1.0.0_GH0.tar.gz) = 0a9e64297c16ffff8374352d8edde6e6fc04b197be440623dcb3c1568fbbfe03
SIZE (cavaliercoder-libzbxpgsql-v1.0.0_GH0.tar.gz) = 36032

View File

@ -0,0 +1,12 @@
--- src/libzbxpgsql.c.orig 2016-06-25 14:18:03 UTC
+++ src/libzbxpgsql.c
@@ -24,6 +24,9 @@
*/
#include "libzbxpgsql.h"
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
// Define custom keys
static ZBX_METRIC keys[] =

View File

@ -0,0 +1,9 @@
This project provides comprehensive monitoring of PostgreSQL servers using a
natively compiled Zabbix agent module, written in C.
The module enables discovery and monitoring of tablespaces, databases,
namespaces, tables, indexes, etc.
A preconfigured Zabbix Template is also included for your convenience.
WWW: http://cavaliercoder.com/libzbxpgsql/

View File

@ -0,0 +1,5 @@
In order to enable the module, add libzbxpgsql.so to the LoadModule=
line in zabbix_agentd.conf and restart the agent with
service zabbix_agentd restart
A sample template has been placed in %%EXAMPLESDIR%%
It can be imported into zabbix and assigned to a host.

View File

@ -0,0 +1,3 @@
lib/libzbxpgsql.so
@dir share/examples/libzbxpgsql
@sample share/examples/libzbxpgsql/template_postgresql_server.xml