summaryrefslogtreecommitdiff
path: root/net-analyzer
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/check_crm/Manifest3
-rw-r--r--net-analyzer/check_crm/check_crm-0.7.ebuild29
-rw-r--r--net-analyzer/check_crm/files/monitoring-plugin.patch29
-rw-r--r--net-analyzer/check_service/Manifest2
-rw-r--r--net-analyzer/check_service/check_service-1.1.ebuild22
5 files changed, 85 insertions, 0 deletions
diff --git a/net-analyzer/check_crm/Manifest b/net-analyzer/check_crm/Manifest
new file mode 100644
index 0000000..22f8e1f
--- /dev/null
+++ b/net-analyzer/check_crm/Manifest
@@ -0,0 +1,3 @@
+AUX monitoring-plugin.patch 1054 BLAKE2B b3be54b2edf856659e187e4af6115fa16519c5cbd77bc21a08b0e7a3c53514cde0f8a6a38750a923a4b4d4769dd533833139484f6447359e0a196be02cf30e5a SHA512 6eaff63e57433b57dd5d16d0739422b4d9f4b904b3ea70c0f001107a177819fc941dc20a08d52cd81242fd84eb48b40e4750addd220be35e61f1eb30558261af
+DIST check_crm-0.7 6622 BLAKE2B 36c6026c34c788495bd10a7188de3e14cab86d8b4d19bd7ac87904c402b834a169ad2868f768c74f2fa11aecb394dc3dc887d34ae68e90615fc24cc47d2b52bf SHA512 4b2dcbb352c2f894a8238bf90ffe725b1743807e84ad949624f802652dda4174ade3b99e3f71f5d319946fd42a6fbe906301b831c52259208fde48abdee60d3b
+EBUILD check_crm-0.7.ebuild 709 BLAKE2B 6d7269545aaf824066091a90a0e26ccb9eeb641dda60b852777a23f5b6acb3d477580c4c43d6445563bb9bd6677a047b531901e934d689e9fd1650b356af2687 SHA512 419c9518620499297cd59a81aa098bc268ba4992aa172f088b1039a6e620246b955e9290832495f1b4d09d25b46b07feecba638b0adedc4e65b85b6fc2d49871
diff --git a/net-analyzer/check_crm/check_crm-0.7.ebuild b/net-analyzer/check_crm/check_crm-0.7.ebuild
new file mode 100644
index 0000000..fb06b03
--- /dev/null
+++ b/net-analyzer/check_crm/check_crm-0.7.ebuild
@@ -0,0 +1,29 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Checks the status of a Pacemaker based Cluster using crm_mon"
+HOMEPAGE="https://exchange.nagios.org/directory/Plugins/Clustering-and-High-2DAvailability/Check-CRM/details"
+SRC_URI="https://exchange.nagios.org/components/com_mtree/attachment.php?link_id=2403&cf_id=30 -> ${P}"
+
+LICENSE=""
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=dev-lang/perl-5.8
+dev-perl/Monitoring-Plugin"
+BDEPEND=""
+PATCHES="${FILESDIR}/monitoring-plugin.patch"
+
+src_unpack() {
+ mkdir -p ${S}
+ cp ${DISTDIR}/${A} ${S}
+}
+src_install() {
+ exeinto /usr/lib/nagios/plugins/
+ newexe ${S}/${A} ${PN}
+}
+
diff --git a/net-analyzer/check_crm/files/monitoring-plugin.patch b/net-analyzer/check_crm/files/monitoring-plugin.patch
new file mode 100644
index 0000000..fb494d5
--- /dev/null
+++ b/net-analyzer/check_crm/files/monitoring-plugin.patch
@@ -0,0 +1,29 @@
+--- a/check_crm-0.7 2020-10-30 18:45:30.000000000 +0000
++++ a/check_crm-0.7 2020-10-30 19:02:12.967447548 +0000
+@@ -32,7 +32,7 @@
+ # constraints check (Boris Wesslowski). Adds fail count
+ # threshold ( Zoran Bosnjak & Marko Hrastovec )
+ #
+-# NOTES: Requires Perl 5.8 or higher & the Perl Module Nagios::Plugin
++# NOTES: Requires Perl 5.8 or higher & the Perl Module Monitoring::Plugin
+ # Nagios user will need sudo acces - suggest adding line below to
+ # sudoers
+ # nagios ALL=(ALL) NOPASSWD: /usr/sbin/crm_mon -1 -r -f
+@@ -47,7 +47,7 @@
+
+ use warnings;
+ use strict;
+-use Nagios::Plugin;
++use Monitoring::Plugin;
+
+ # Lines below may need changing if crm_mon or sudo installed in a
+ # different location.
+@@ -56,7 +56,7 @@
+ my $crm_mon = '/usr/sbin/crm_mon -1 -r -f';
+ my $crm_configure_show = '/usr/sbin/crm configure show';
+
+-my $np = Nagios::Plugin->new(
++my $np = Monitoring::Plugin->new(
+ shortname => 'check_crm',
+ version => '0.7',
+ usage => "Usage: %s <ARGS>\n\t\t--help for help\n",
diff --git a/net-analyzer/check_service/Manifest b/net-analyzer/check_service/Manifest
new file mode 100644
index 0000000..d25a2a3
--- /dev/null
+++ b/net-analyzer/check_service/Manifest
@@ -0,0 +1,2 @@
+DIST check_service-1.1.tar.gz 774 BLAKE2B a16a13f894e2527f8fa17baa0ecb5a4a7f3f01c0f65e642fc6ea0c829ff2a11857fb4c0f510121c12d4cb58be937f221d8908db360e84dbda592bb1c688ba053 SHA512 f867ff1d972c0a987aa107c6693207fa2f4b0e7a1f3b6e665dc4bc955d0b4a56ff359ce1078f34ec7e99adb648d5d9759fe6b20e27ab9db6beb608b62778cea7
+EBUILD check_service-1.1.ebuild 505 BLAKE2B 92eaa05f68504d85ef6a7c2358d86f977c4e5c09651ebc40a0c9167a01b811463a0552a06e210a1e9cfc7cbbe7e68c13d3f82fc289cd1065c556dd1400187acd SHA512 2063dbce6c2a391e817a48fb68330a498152de0def4a9f8cedfb85acb0cafc1acc028d0c86bdbffd139d3ac1c4d0c478761e835bf4b5250fa3b6317c511a6b53
diff --git a/net-analyzer/check_service/check_service-1.1.ebuild b/net-analyzer/check_service/check_service-1.1.ebuild
new file mode 100644
index 0000000..377b632
--- /dev/null
+++ b/net-analyzer/check_service/check_service-1.1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Check status of systemd service"
+HOMEPAGE="https://github.com/duffycop/nagios_plugins"
+SRC_URI="https://github.com/duffycop/nagios_plugins/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE=""
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+S="${WORKDIR}/nagios_plugins-${PV}"
+
+src_install() {
+ exeinto /usr/lib/nagios/plugins/
+ newexe ${S}/plugins/${PN} ${PN}
+}