import ports/net/nagios/check_email_delivery
This package consists of three Nagios plugins. - check_smtp_send sends an email message with custom headers and body. - check_imap_receive uses an IMAP search to check an INBOX or folder for messages matching certain criteria. SSL support is available. - check_email_delivery uses the other two plugins (or you may provide alternatives) to check full email sending/delivery loops. As well as alerting via nagios, running statistics can be recorded to a file.
This commit is contained in:
parent
a903f13cef
commit
17a1a13492
46
net/nagios/check_email_delivery/Makefile
Normal file
46
net/nagios/check_email_delivery/Makefile
Normal file
@ -0,0 +1,46 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/11/05 13:27:26 sthen Exp $
|
||||
|
||||
COMMENT= Nagios plugin to check full email delivery loop (SMTP/IMAP)
|
||||
|
||||
DISTNAME= check_email_delivery-0.6.6
|
||||
CATEGORIES= net
|
||||
|
||||
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
||||
|
||||
HOMEPAGE= http://buhacoff.net/software/check_email_delivery/
|
||||
|
||||
# GPLv3+
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}/archive/
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
|
||||
RUN_DEPENDS= ::mail/p5-Mail-IMAPClient \
|
||||
::net/p5-Net-SMTP_auth \
|
||||
::net/p5-Net-SMTP-SSL \
|
||||
::net/p5-Net-SMTP-TLS \
|
||||
::security/p5-Authen-SASL \
|
||||
::security/p5-IO-Socket-SSL \
|
||||
::textproc/p5-Text-Template
|
||||
|
||||
do-configure:
|
||||
@${SUBST_CMD} ${WRKSRC}/check_email_delivery ${WRKSRC}/check_email_delivery_epn
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/libexec/nagios
|
||||
# the ePN-compatible plugins are nearly identical to the normal ones,
|
||||
# they just don't include the pod documentation; no point installing both
|
||||
# versions.
|
||||
.for i in email_delivery imap_receive smtp_send
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/check_$i_epn ${PREFIX}/libexec/nagios/check_$i
|
||||
pod2man ${WRKSRC}/check_$i ${PREFIX}/man/man3p/check_$i.3p
|
||||
.endfor
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/check_email_delivery
|
||||
${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/check_email_delivery
|
||||
|
||||
.include <bsd.port.mk>
|
5
net/nagios/check_email_delivery/distinfo
Normal file
5
net/nagios/check_email_delivery/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (check_email_delivery-0.6.6.tar.gz) = FT9jT2RV2G6i3nS0oOkreQ==
|
||||
RMD160 (check_email_delivery-0.6.6.tar.gz) = 7sKOmldv2fJcEg7Anq1I4yB7fdY=
|
||||
SHA1 (check_email_delivery-0.6.6.tar.gz) = hiI8azRI9mo9DPA3n7uh08s5kPM=
|
||||
SHA256 (check_email_delivery-0.6.6.tar.gz) = mzz0URxllTv8wHQ8g20Za+DSZ+rJ1qkOjmK0LGkXpt8=
|
||||
SIZE (check_email_delivery-0.6.6.tar.gz) = 65978
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-check_email_delivery,v 1.1.1.1 2009/11/05 13:27:26 sthen Exp $
|
||||
--- check_email_delivery.orig Thu Nov 5 11:14:49 2009
|
||||
+++ check_email_delivery Thu Nov 5 11:15:02 2009
|
||||
@@ -52,7 +52,7 @@ my $default_crit = 30;
|
||||
my $default_warn = 15;
|
||||
my $default_wait = 5;
|
||||
my $default_timeout = 60;
|
||||
-my $libexec = "/usr/local/nagios/libexec";
|
||||
+my $libexec = "${LOCALBASE}/libexec/nagios";
|
||||
my $ok;
|
||||
$ok = Getopt::Long::GetOptions(
|
||||
"V|version"=>\$show_version,
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-check_email_delivery_epn,v 1.1.1.1 2009/11/05 13:27:26 sthen Exp $
|
||||
--- check_email_delivery_epn.orig Thu Nov 5 11:15:04 2009
|
||||
+++ check_email_delivery_epn Thu Nov 5 11:15:16 2009
|
||||
@@ -52,7 +52,7 @@ my $default_crit = 30;
|
||||
my $default_warn = 15;
|
||||
my $default_wait = 5;
|
||||
my $default_timeout = 60;
|
||||
-my $libexec = "/usr/local/nagios/libexec";
|
||||
+my $libexec = "${LOCALBASE}/libexec/nagios";
|
||||
my $ok;
|
||||
$ok = Getopt::Long::GetOptions(
|
||||
"V|version"=>\$show_version,
|
10
net/nagios/check_email_delivery/pkg/DESCR
Normal file
10
net/nagios/check_email_delivery/pkg/DESCR
Normal file
@ -0,0 +1,10 @@
|
||||
This package consists of three Nagios plugins.
|
||||
|
||||
- check_smtp_send sends an email message with custom headers and body.
|
||||
|
||||
- check_imap_receive uses an IMAP search to check an INBOX or folder
|
||||
for messages matching certain criteria. SSL support is available.
|
||||
|
||||
- check_email_delivery uses the other two plugins (or you may provide
|
||||
alternatives) to check full email sending/delivery loops. As well as
|
||||
alerting via nagios, running statistics can be recorded to a file.
|
10
net/nagios/check_email_delivery/pkg/PLIST
Normal file
10
net/nagios/check_email_delivery/pkg/PLIST
Normal file
@ -0,0 +1,10 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/11/05 13:27:26 sthen Exp $
|
||||
libexec/nagios/
|
||||
libexec/nagios/check_email_delivery
|
||||
libexec/nagios/check_imap_receive
|
||||
libexec/nagios/check_smtp_send
|
||||
@man man/man3p/check_email_delivery.3p
|
||||
@man man/man3p/check_imap_receive.3p
|
||||
@man man/man3p/check_smtp_send.3p
|
||||
share/doc/check_email_delivery/
|
||||
share/doc/check_email_delivery/README.txt
|
Loading…
Reference in New Issue
Block a user