New port: net-mgmt/check_ups_health

Nagios plugin to check various UPS systems

Instead of one plugin per UPS manufacturer, this plugin should
cover many at once.

WWW: https://labs.consol.de/nagios/check_ups_health/
This commit is contained in:
Kurt Jaeger 2021-02-16 15:44:27 +00:00
parent 20138b4ad9
commit f5019a6d16
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=565410
4 changed files with 45 additions and 0 deletions

View file

@ -43,6 +43,7 @@
SUBDIR += check_mysql_health
SUBDIR += check_nwc_health
SUBDIR += check_ssl_cert
SUBDIR += check_ups_health
SUBDIR += chillispot
SUBDIR += choparp
SUBDIR += cidr

View file

@ -0,0 +1,35 @@
# $FreeBSD$
PORTNAME= check_ups_health
PORTVERSION= 2.9.2.2
CATEGORIES= net-mgmt
MASTER_SITES= https://labs.consol.de/assets/downloads/nagios/
MAINTAINER= pi@FreeBSD.org
COMMENT= Nagios plugin to check various UPS systems
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= perl5
NO_ARCH= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-statefiles-dir=${NAGIOSDIR} \
--with-nagios-user=${NAGIOSUSER} \
--with-nagios-group=${NAGIOSGROUP} \
--with-mymodules-dir=${PREFIX}/libexec/nagios \
--with-mymodules-dyn-dir=${PREFIX}/libexec/nagios \
--libexecdir=${PREFIX}/libexec/nagios \
--with-perl=${PERL}
NAGIOSUSER?= nagios
NAGIOSGROUP?= nagios
NAGIOSDIR?= /var/spool/nagios
PLIST_FILES= libexec/nagios/check_ups_health
post-patch:
${REINPLACE_CMD} -e "s| /bin/sed| ${SED}|" -e "s| /bin/grep| ${GREP}|" \
${WRKSRC}/plugins-scripts/Makefile.in
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1613487970
SHA256 (check_ups_health-2.9.2.2.tar.gz) = 1fee21f8e60a00dab8f7e21a1b5347096d4b2dcf14c12b5365893f5cb4257272
SIZE (check_ups_health-2.9.2.2.tar.gz) = 283511

View file

@ -0,0 +1,6 @@
Nagios plugin to check various UPS systems
Instead of one plugin per UPS manufacturer, this plugin should
cover many at once.
WWW: https://labs.consol.de/nagios/check_ups_health/