Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2016 07:57:21 +0000 (UTC)
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r420269 - in head/databases: . libzbxpgsql libzbxpgsql/files
Message-ID:  <201608160757.u7G7vLvM077045@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: matthew
Date: Tue Aug 16 07:57:21 2016
New Revision: 420269
URL: https://svnweb.freebsd.org/changeset/ports/420269

Log:
  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>

Added:
  head/databases/libzbxpgsql/
  head/databases/libzbxpgsql/Makefile   (contents, props changed)
  head/databases/libzbxpgsql/distinfo   (contents, props changed)
  head/databases/libzbxpgsql/files/
  head/databases/libzbxpgsql/files/patch-src_libzbxpgsql.c   (contents, props changed)
  head/databases/libzbxpgsql/pkg-descr   (contents, props changed)
  head/databases/libzbxpgsql/pkg-message   (contents, props changed)
  head/databases/libzbxpgsql/pkg-plist   (contents, props changed)
Modified:
  head/databases/Makefile

Modified: head/databases/Makefile
==============================================================================
--- head/databases/Makefile	Tue Aug 16 07:45:27 2016	(r420268)
+++ head/databases/Makefile	Tue Aug 16 07:57:21 2016	(r420269)
@@ -168,6 +168,7 @@
     SUBDIR += libpbl
     SUBDIR += libpqtypes
     SUBDIR += libsdb
+    SUBDIR += libzbxpgsql
     SUBDIR += libzdb
     SUBDIR += linux-c6-sqlite3
     SUBDIR += linux-f10-sqlite3

Added: head/databases/libzbxpgsql/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libzbxpgsql/Makefile	Tue Aug 16 07:57:21 2016	(r420269)
@@ -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>

Added: head/databases/libzbxpgsql/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libzbxpgsql/distinfo	Tue Aug 16 07:57:21 2016	(r420269)
@@ -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

Added: head/databases/libzbxpgsql/files/patch-src_libzbxpgsql.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libzbxpgsql/files/patch-src_libzbxpgsql.c	Tue Aug 16 07:57:21 2016	(r420269)
@@ -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[] =

Added: head/databases/libzbxpgsql/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libzbxpgsql/pkg-descr	Tue Aug 16 07:57:21 2016	(r420269)
@@ -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/

Added: head/databases/libzbxpgsql/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libzbxpgsql/pkg-message	Tue Aug 16 07:57:21 2016	(r420269)
@@ -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.

Added: head/databases/libzbxpgsql/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/libzbxpgsql/pkg-plist	Tue Aug 16 07:57:21 2016	(r420269)
@@ -0,0 +1,3 @@
+lib/libzbxpgsql.so
+@dir share/examples/libzbxpgsql
+@sample share/examples/libzbxpgsql/template_postgresql_server.xml



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608160757.u7G7vLvM077045>