diff options
author | pav <pav@FreeBSD.org> | 2007-03-24 19:07:40 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-03-24 19:07:40 +0000 |
commit | 5bffbddda3f37608ed9a2273c5a980b317606a9a (patch) | |
tree | 5a6192bf62bc18b2e280d74fa6be92c4d3033a1b /net-mgmt | |
parent | b0411c5e1c86ddae6a5adcf5a571d25bca1046f5 (diff) | |
download | FreeBSD-ports-5bffbddda3f37608ed9a2273c5a980b317606a9a.zip FreeBSD-ports-5bffbddda3f37608ed9a2273c5a980b317606a9a.tar.gz |
check_certexp is a Nagios plugin for checking the number of days left until a
certificate expires. The check is done via an SSL connection (STARTTLS
mechanisms are not supported). The plugin is written in Perl, should work with
the embedded Perl interpreter (not tested though) and requires Net::SSLeay and
Date::Manip to be installed on the Nagios host.
Author: Holger Weiss <holger@CIS.FU-Berlin.DE>
WWW: http://www.jhweiss.de/software/nagios.html
PR: ports/110603
Submitted by: Eric Cronin <ecronin@gizmolabs.org>
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/nagios-certexp-plugin/Makefile | 42 | ||||
-rw-r--r-- | net-mgmt/nagios-certexp-plugin/distinfo | 3 | ||||
-rw-r--r-- | net-mgmt/nagios-certexp-plugin/pkg-descr | 8 |
4 files changed, 54 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index c20648a..6473fae 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -90,6 +90,7 @@ SUBDIR += mtrace SUBDIR += nagcon SUBDIR += nagios + SUBDIR += nagios-certexp-plugin SUBDIR += nagios-pf-plugin SUBDIR += nagios-plugins SUBDIR += nagios-radauth-plugin diff --git a/net-mgmt/nagios-certexp-plugin/Makefile b/net-mgmt/nagios-certexp-plugin/Makefile new file mode 100644 index 0000000..9a35ccf --- /dev/null +++ b/net-mgmt/nagios-certexp-plugin/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: nagios-certexp-plugin +# Date created: 2007-03-20 +# Whom: ecronin@gizmolabs.org +# +# $FreeBSD$ + +PORTNAME= nagios-certexp-plugin +PORTVERSION= 1.1 +CATEGORIES= net-mgmt +MASTER_SITES= ftp://jhweiss.de/pub/users/weiss/nagios/plugins/ +DISTNAME= check_certexp.pl +EXTRACT_SUFX= + +MAINTAINER= ecronin@gizmolabs.org +COMMENT= Nagios plugin for checking SSL server certificate expiration + +RUN_DEPENDS+= ${SITE_PERL}/mach/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay \ + ${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \ + ${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long + +USE_PERL5= yes +NO_WRKSUBDIR= yes +NO_BUILD= yes +PLIST_FILES= ${NAGIOS_PLUGIN_DIR}/check_certexp.pl +PLIST_DIRS= ${NAGIOS_PLUGIN_DIR} + +NAGIOS_PLUGIN_DIR= libexec/nagios + +do-extract: + ${MKDIR} ${WRKSRC} + ${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC}/check_certexp.pl + +post-patch: + ${REINPLACE_CMD} -e \ + "s,/usr/local/nagios/libexec,${PREFIX}/${NAGIOS_PLUGIN_DIR}," \ + ${WRKSRC}/check_certexp.pl + +do-install: + ${MKDIR} ${PREFIX}/${NAGIOS_PLUGIN_DIR} + ${INSTALL_SCRIPT} ${WRKSRC}/check_certexp.pl ${PREFIX}/${NAGIOS_PLUGIN_DIR} + +.include <bsd.port.mk> diff --git a/net-mgmt/nagios-certexp-plugin/distinfo b/net-mgmt/nagios-certexp-plugin/distinfo new file mode 100644 index 0000000..d8ce8bf --- /dev/null +++ b/net-mgmt/nagios-certexp-plugin/distinfo @@ -0,0 +1,3 @@ +MD5 (check_certexp.pl) = 96b2af8943fbf6b364a0425c828947d2 +SHA256 (check_certexp.pl) = 5746210b9385c43c15d65ce28ceb52502e804f56d5cc7284ba3371bdc7b55f43 +SIZE (check_certexp.pl) = 5420 diff --git a/net-mgmt/nagios-certexp-plugin/pkg-descr b/net-mgmt/nagios-certexp-plugin/pkg-descr new file mode 100644 index 0000000..01a6b02 --- /dev/null +++ b/net-mgmt/nagios-certexp-plugin/pkg-descr @@ -0,0 +1,8 @@ +check_certexp is a Nagios plugin for checking the number of days left until a +certificate expires. The check is done via an SSL connection (STARTTLS +mechanisms are not supported). The plugin is written in Perl, should work with +the embedded Perl interpreter (not tested though) and requires Net::SSLeay and +Date::Manip to be installed on the Nagios host. + +Author: Holger Weiss <holger@CIS.FU-Berlin.DE> +WWW: http://www.jhweiss.de/software/nagios.html |