85c831b5fe
check_postgres is a script for monitoring various attributes of your database (transaction id status, blocked queries, long running queries, connection status and more). It is designed to work with Nagios, MRTG, or in standalone scripts.
39 lines
877 B
Makefile
39 lines
877 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2012/05/21 11:05:38 sthen Exp $
|
|
|
|
PKG_ARCH= *
|
|
|
|
COMMENT= Nagios plugin to monitor PostgresQL
|
|
DISTNAME= check_postgres-2.19.0
|
|
CATEGORIES= net databases
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
HOMEPAGE= http://bucardo.org/wiki/Check_postgres
|
|
MASTER_SITES= http://bucardo.org/downloads/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MODULES= perl
|
|
CONFIGURE_STYLE= perl
|
|
|
|
REGRESS_DEPENDS= ${RUN_DEPENDS} \
|
|
databases/postgresql,-server
|
|
|
|
RUN_DEPENDS= databases/p5-DBD-Pg
|
|
|
|
pre-configure:
|
|
@perl -pi -e 's,data space,data_space,g' ${WRKSRC}/t/CP_Testing.pm
|
|
@${SUBST_CMD} ${WRKSRC}/check_postgres.pl
|
|
|
|
INSTDIR= ${PREFIX}/libexec/nagios/
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${INSTDIR}
|
|
cd ${INSTDIR} && ${PREFIX}/bin/check_postgres.pl --symlinks
|
|
|
|
.include <bsd.port.mk>
|