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:
parent
f294d399f7
commit
84ccc77177
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420269
@ -168,6 +168,7 @@
|
||||
SUBDIR += libpbl
|
||||
SUBDIR += libpqtypes
|
||||
SUBDIR += libsdb
|
||||
SUBDIR += libzbxpgsql
|
||||
SUBDIR += libzdb
|
||||
SUBDIR += linux-c6-sqlite3
|
||||
SUBDIR += linux-f10-sqlite3
|
||||
|
32
databases/libzbxpgsql/Makefile
Normal file
32
databases/libzbxpgsql/Makefile
Normal 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>
|
3
databases/libzbxpgsql/distinfo
Normal file
3
databases/libzbxpgsql/distinfo
Normal 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
|
12
databases/libzbxpgsql/files/patch-src_libzbxpgsql.c
Normal file
12
databases/libzbxpgsql/files/patch-src_libzbxpgsql.c
Normal 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[] =
|
9
databases/libzbxpgsql/pkg-descr
Normal file
9
databases/libzbxpgsql/pkg-descr
Normal 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/
|
5
databases/libzbxpgsql/pkg-message
Normal file
5
databases/libzbxpgsql/pkg-message
Normal 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.
|
3
databases/libzbxpgsql/pkg-plist
Normal file
3
databases/libzbxpgsql/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
lib/libzbxpgsql.so
|
||||
@dir share/examples/libzbxpgsql
|
||||
@sample share/examples/libzbxpgsql/template_postgresql_server.xml
|
Loading…
Reference in New Issue
Block a user