From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-analyzer/nagios-plugin-check_raid/Manifest | 10 ++++ net-analyzer/nagios-plugin-check_raid/metadata.xml | 28 +++++++++ .../nagios-plugin-check_raid-4.0.0-r1.ebuild | 64 +++++++++++++++++++++ ...nagios-plugin-check_raid-4.0.0_p20151215.ebuild | 67 ++++++++++++++++++++++ ...nagios-plugin-check_raid-4.0.0_p20160215.ebuild | 67 ++++++++++++++++++++++ .../nagios-plugin-check_raid-4.0.1.ebuild | 67 ++++++++++++++++++++++ 6 files changed, 303 insertions(+) create mode 100644 net-analyzer/nagios-plugin-check_raid/Manifest create mode 100644 net-analyzer/nagios-plugin-check_raid/metadata.xml create mode 100644 net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0-r1.ebuild create mode 100644 net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20151215.ebuild create mode 100644 net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20160215.ebuild create mode 100644 net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.1.ebuild (limited to 'net-analyzer/nagios-plugin-check_raid') diff --git a/net-analyzer/nagios-plugin-check_raid/Manifest b/net-analyzer/nagios-plugin-check_raid/Manifest new file mode 100644 index 000000000000..844a1ab537ba --- /dev/null +++ b/net-analyzer/nagios-plugin-check_raid/Manifest @@ -0,0 +1,10 @@ +DIST nagios-plugin-check_raid-02b6425dac3db7e98d4c36bf0836357c6b36196c.tar.gz 49866 SHA256 959e269e58795cf89fab61b041511513d1b724855f1d38338f1f5e4e1083a8a7 SHA512 548241cd344c135dd6509e930329a9957184330a6f317f758a35c32fc680d421932e3daa12a8f7c0ec8071f96f9e63619de4dff2ea648652b6c2494e800d7ed4 WHIRLPOOL cd00353df2c133576e36f8fe204e11fb754fed081565d87b305905b0ee2a1e6c652f11a9bb99769e1467e838711583886dfe9ecfeb3c40c566069ce07af84cd0 +DIST nagios-plugin-check_raid-4.0.0.tar.gz 46308 SHA256 eb33c54b6c532076dafe72bc80905c17d1604fc306f5075b6fdc6cf41dcd8ac2 SHA512 0f80321615a29665c32bef8b5426fad5994c28b48446167d81504b8ae5720c28b9eaf449f48147e5fc7b24907560994d61b81bed68f9b8caa9a87b18eddd9ee9 WHIRLPOOL 8af62afd9eff172ab4e24bbde564c52826390ad40130ae091d62c10634e0313cb55f39e163988349015694389c152a6e4930c84ebd230ac3686a59e8b6ca56b9 +DIST nagios-plugin-check_raid-4.0.1.tar.gz 50173 SHA256 270fd6c8189269152255ceb19288736afe4b9398b1a9a94409e2c73f13fa43d3 SHA512 882d76d71231d675caaf75883962c3983acbec194ee437ee7447f75607b1767e3aed3e939bdafb90cfab5d131c40d3e0b1d77b90a4c19a4809f18c9e64c114fd WHIRLPOOL bb9b31925a9977de4393bb4f949ac6ec281144e8d6c25ee33e14002bac546b3f2b89cf3a9c84a208d7505d1e1378bd19805ebd018d639c595c1b6fd7a67f0750 +DIST nagios-plugin-check_raid-5da4400ff978189d6be889f2448099535baa01f4.tar.gz 46422 SHA256 423da601fa7471dda5db839a07a52ce21e33ec00e09ad859f4fac4705f6bad18 SHA512 4c4d372735576cf104886c62c071dc98512687ecc1b2f3d56f614c24b747566ff849119c3e0a71b011db5a32e67f50c9d772c0c68a895320e0a5b63322cf6446 WHIRLPOOL 791836ab95edc679cd2288ba9231c4eccddd1d7a09cca68ce446fde498503942a040d48862f4157ebe1b83f645d31b77f7a7a6785095d3e4a5a7a40f56dd56c4 +EBUILD nagios-plugin-check_raid-4.0.0-r1.ebuild 2093 SHA256 50d17085f4b1405a134cbcf4822829cf6f3458eb196f8403bcedb31304077ca0 SHA512 41719dd9092b671b0660679aa9af8a29cdcfc1a7aee423f2af9fa66b2b444f8f0b33f114fb6b19358bc66830d6f78c73e99a71280fb8cb8c95f10e4a313cf482 WHIRLPOOL a48198db65866aa3fef6d0a3b4916be62558e521c06140d4c76cdffa248a8362d1dfafee1147290763185d581d112f3336f77411b5c0cf2079d8fb9fb488d383 +EBUILD nagios-plugin-check_raid-4.0.0_p20151215.ebuild 2125 SHA256 d0a86af3c8b879549fc43fa29647739105ebfae54cbd116be4d55b9672f50837 SHA512 84ec5f6c48ecb436857b2600e46b6873651c909e8804574c5ee6468daf211a225de1cd9cad18d072aee4a410b006f51e273a7d6649993db080b58e5789e13e43 WHIRLPOOL d22484fbe7a076bd96e0e4d7e4d356d0e196605a39be4f8653a000b96f1a1238004a3c777f2bb5258f125de04c19fe50e46e944d7817a59610dc0a6c3645df21 +EBUILD nagios-plugin-check_raid-4.0.0_p20160215.ebuild 2125 SHA256 4a3ad24a26f2b6e97d177f0fdc5c07111e02bde7362ca52814ba4690fce26d8a SHA512 1f9afc62ee8684d2151011b6c9c9a8a59224268436f2c637398e12448b3f15d11ffb443cca6456eab2800317cd201059c71992bf3b875f7940d916cb0813624e WHIRLPOOL f44e5372466576faf9c079e244a70f379fded24c00f39fc1274f4ea461c3e23f151c22641157072ff20d3500ae7ec388508ccd8043249d9274553778dcde83ba +EBUILD nagios-plugin-check_raid-4.0.1.ebuild 2085 SHA256 0f38fc0e5795b71b65220068e3613498bda05619b29c102b9d5f8e7cf95bef9b SHA512 c5f3ae89ce16bf5a49c954204eb24abe601e74f9b24813d31a1a8750ec76ba0e023f7f582dedced2df24937ecc91854d586a48bc143ab49b8f3da0a2cddfed1b WHIRLPOOL a2d5b384b6d886b3ed17eec38589d3ce875727dce706813cfb9493ee942c6b6333021a94a2fd4974d72b35769fe449b288d5a4636b4352c21b329195086da2a4 +MISC ChangeLog 802 SHA256 e7836e43895ec8996e4846c395d75644070b5dbefedfea1617d6cb271d0f265e SHA512 9068002713bd4e27154cd1b38498621b58bc3fc78102f9d1f4da40bff989c4452f8b564d48843aa65e8aa6d7cfee096cb38b756fa8c759160c03f4a8dc7b1f81 WHIRLPOOL 23be9f70b2af26b349bfadd95cfa23ed3c655b216791165098f5ba448fe5715621e36e882bb4a3bf9ce441d59fbfe9915e8c4fadd91a441bd5abff1afea322a5 +MISC metadata.xml 1205 SHA256 f0c1dfacfa57808841a7274f07e7f54ce7d43e4336426b6b906943dbf01ea6cb SHA512 c91761d711709ae8edd20e716e7233242feecbc3156f86c1811add83b453ae8cfb71e2de66ee3902f56f182d87019bd11eb417ca5e1e99ef540f920088dce472 WHIRLPOOL ec3acabbbe653e7d3ce54512221c39d1615b132e47b68294447d329561b45ac81d96dd5dedca7d7b5aa7582ada963e5ad6d90962e45b435cae98a4255661b65c diff --git a/net-analyzer/nagios-plugin-check_raid/metadata.xml b/net-analyzer/nagios-plugin-check_raid/metadata.xml new file mode 100644 index 000000000000..61b6124e4182 --- /dev/null +++ b/net-analyzer/nagios-plugin-check_raid/metadata.xml @@ -0,0 +1,28 @@ + + + + + robbat2@gentoo.org + Robin H. Johnson + + + Nagios/Icinga plugin to check current server's RAID status; this tool + wraps MANY different RAID tools and provides a consistent check for + them. + + + glensc/nagios-plugin-check_raid + + + Support 3ware RAID controllers + Support Adaptec AAC-RAID controllers + Support Device-Mapper RAID + Support HP Array controllers + Support HP SmartArray (CCISS) controllers + Support LSI MegaRAID SAS controllers + Support LSI MegaRAID SCSI controllers + Support LSI SAS-2 controllers + Support LSI MPT Fusion controllers + Support DPT-I2O controllers (mostly Adaptec) + + diff --git a/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0-r1.ebuild b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0-r1.ebuild new file mode 100644 index 000000000000..d1b0e53b96be --- /dev/null +++ b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils perl-module + +DESCRIPTION="Nagios/Icinga plugin to check current server's RAID status" +HOMEPAGE="https://github.com/glensc/nagios-plugin-check_raid" +SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="3ware aacraid dmraid hpa hpsa i2o megaraid-sas megaraid-scsi mpt mpt-sas2" + +DEPEND="dev-perl/Monitoring-Plugin + dev-perl/Module-Pluggable" +RDEPEND="${DEPEND} + sys-apps/smartmontools + sys-fs/lsscsi + 3ware? ( sys-block/tw_cli ) + aacraid? ( sys-block/arcconf ) + dmraid? ( sys-fs/dmraid ) + hpa? ( sys-block/hpacucli ) + hpsa? ( sys-apps/cciss_vol_status ) + i2o? ( sys-apps/raidutils ) + megaraid-sas? ( sys-block/megacli ) + megaraid-scsi? ( sys-block/megarc ) + mpt-sas2? ( sys-block/sas2ircu ) + mpt? ( sys-block/mpt-status ) + " + +# TODO: +# Package all the other Perl build pieces, and stop using the monolithic perl script. +src_prepare() { + # Upstream has a custom Makefile that is meant to build bundles. + mv -f Makefile Makefile.upstream + sed -i '/CPANfile/d' Makefile.PL + default +} + +src_install() { + default + plugindir="/usr/$(get_libdir)/nagios/plugins" + dodir "$plugindir" + mv -f "${D}"/usr/bin/check_raid.pl "${D}"/"${plugindir}" + dodoc README.md ChangeLog.md CONTRIBUTING.md check_raid.cfg +} + +pkg_postinst() { + einfo "The following RAID controllers are supported without special tools:" + einfo "GDT (Intel/ICP) RAID Controller" + einfo "HP MSA (special configuration needed)" + einfo "The following RAID controllers do not have tools packaged in Gentoo, but ARE supported by this tool:" + einfo "Intel: CmdTool2" + einfo "Areca: areca-cli" + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/10" + einfo "Marvell RAID: mvcli" + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/92" + einfo "Adaptec ServeRAID: aaccli" + einfo "Adaptec AACRAID: afacli (* some controllers supported by USE=aacraid, sys-block/arcconf)" + einfo "Adaptec ServeRAID 7k: ipssend" +} diff --git a/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20151215.ebuild b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20151215.ebuild new file mode 100644 index 000000000000..dfc0eeaab718 --- /dev/null +++ b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20151215.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils perl-module + +DESCRIPTION="Nagios/Icinga plugin to check current server's RAID status" +HOMEPAGE="https://github.com/glensc/nagios-plugin-check_raid" +COMMIT="5da4400ff978189d6be889f2448099535baa01f4" +MY_PV="${COMMIT:-$PV}" +MY_P="${PN}-${MY_PV}" +SRC_URI="${HOMEPAGE}/archive/${COMMIT}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="3ware aacraid dmraid hpa hpsa i2o megaraid-sas megaraid-scsi mpt mpt-sas2" + +DEPEND="dev-perl/Monitoring-Plugin + dev-perl/Module-Pluggable" +RDEPEND="${DEPEND} + sys-apps/smartmontools + sys-fs/lsscsi + 3ware? ( sys-block/tw_cli ) + aacraid? ( sys-block/arcconf ) + dmraid? ( sys-fs/dmraid ) + hpa? ( sys-block/hpacucli ) + hpsa? ( sys-apps/cciss_vol_status ) + i2o? ( sys-apps/raidutils ) + megaraid-sas? ( sys-block/megacli ) + megaraid-scsi? ( sys-block/megarc ) + mpt-sas2? ( sys-block/sas2ircu ) + mpt? ( sys-block/mpt-status ) + " + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Upstream has a custom Makefile that is meant to build bundles. + mv -f Makefile Makefile.upstream + sed -i '/CPANfile/d' Makefile.PL + default +} + +src_install() { + default + plugindir="/usr/$(get_libdir)/nagios/plugins" + dodir "$plugindir" + mv -f "${D}"/usr/bin/check_raid.pl "${D}"/"${plugindir}" + dodoc README.md ChangeLog.md CONTRIBUTING.md check_raid.cfg +} + +pkg_postinst() { + einfo "The following RAID controllers are supported without special tools:" + einfo "GDT (Intel/ICP) RAID Controller" + einfo "HP MSA (special configuration needed)" + einfo "The following RAID controllers do not have tools packaged in Gentoo, but ARE supported by this tool:" + einfo "Intel: CmdTool2" + einfo "Areca: areca-cli" + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/10" + einfo "Marvell RAID: mvcli" + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/92" + einfo "Adaptec ServeRAID: aaccli" + einfo "Adaptec AACRAID: afacli (* some controllers supported by USE=aacraid, sys-block/arcconf)" + einfo "Adaptec ServeRAID 7k: ipssend" +} diff --git a/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20160215.ebuild b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20160215.ebuild new file mode 100644 index 000000000000..470b7a2f2308 --- /dev/null +++ b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.0_p20160215.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils perl-module + +DESCRIPTION="Nagios/Icinga plugin to check current server's RAID status" +HOMEPAGE="https://github.com/glensc/nagios-plugin-check_raid" +COMMIT="02b6425dac3db7e98d4c36bf0836357c6b36196c" +MY_PV="${COMMIT:-$PV}" +MY_P="${PN}-${MY_PV}" +SRC_URI="${HOMEPAGE}/archive/${COMMIT}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="3ware aacraid dmraid hpa hpsa i2o megaraid-sas megaraid-scsi mpt mpt-sas2" + +DEPEND="dev-perl/Monitoring-Plugin + dev-perl/Module-Pluggable" +RDEPEND="${DEPEND} + sys-apps/smartmontools + sys-fs/lsscsi + 3ware? ( sys-block/tw_cli ) + aacraid? ( sys-block/arcconf ) + dmraid? ( sys-fs/dmraid ) + hpa? ( sys-block/hpacucli ) + hpsa? ( sys-apps/cciss_vol_status ) + i2o? ( sys-apps/raidutils ) + megaraid-sas? ( sys-block/megacli ) + megaraid-scsi? ( sys-block/megarc ) + mpt-sas2? ( sys-block/sas2ircu ) + mpt? ( sys-block/mpt-status ) + " + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Upstream has a custom Makefile that is meant to build bundles. + mv -f Makefile Makefile.upstream + sed -i '/CPANfile/d' Makefile.PL + default +} + +src_install() { + default + plugindir="/usr/$(get_libdir)/nagios/plugins" + dodir "$plugindir" + mv -f "${D}"/usr/bin/check_raid.pl "${D}"/"${plugindir}" + dodoc README.md ChangeLog.md CONTRIBUTING.md check_raid.cfg +} + +pkg_postinst() { + einfo "The following RAID controllers are supported without special tools:" + einfo "GDT (Intel/ICP) RAID Controller" + einfo "HP MSA (special configuration needed)" + einfo "The following RAID controllers do not have tools packaged in Gentoo, but ARE supported by this tool:" + einfo "Intel: CmdTool2" + einfo "Areca: areca-cli" + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/10" + einfo "Marvell RAID: mvcli" + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/92" + einfo "Adaptec ServeRAID: aaccli" + einfo "Adaptec AACRAID: afacli (* some controllers supported by USE=aacraid, sys-block/arcconf)" + einfo "Adaptec ServeRAID 7k: ipssend" +} diff --git a/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.1.ebuild b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.1.ebuild new file mode 100644 index 000000000000..2db9d1b6c6a8 --- /dev/null +++ b/net-analyzer/nagios-plugin-check_raid/nagios-plugin-check_raid-4.0.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils perl-module + +DESCRIPTION="Nagios/Icinga plugin to check current server's RAID status" +HOMEPAGE="https://github.com/glensc/nagios-plugin-check_raid" +#COMMIT="" +MY_PV="${COMMIT:-$PV}" +MY_P="${PN}-${MY_PV}" +SRC_URI="${HOMEPAGE}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="3ware aacraid dmraid hpa hpsa i2o megaraid-sas megaraid-scsi mpt mpt-sas2" + +DEPEND="dev-perl/Monitoring-Plugin + dev-perl/Module-Pluggable" +RDEPEND="${DEPEND} + sys-apps/smartmontools + sys-fs/lsscsi + 3ware? ( sys-block/tw_cli ) + aacraid? ( sys-block/arcconf ) + dmraid? ( sys-fs/dmraid ) + hpa? ( sys-block/hpacucli ) + hpsa? ( sys-apps/cciss_vol_status ) + i2o? ( sys-apps/raidutils ) + megaraid-sas? ( sys-block/megacli ) + megaraid-scsi? ( sys-block/megarc ) + mpt-sas2? ( sys-block/sas2ircu ) + mpt? ( sys-block/mpt-status ) + " + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Upstream has a custom Makefile that is meant to build bundles. + mv -f Makefile Makefile.upstream + sed -i '/CPANfile/d' Makefile.PL + default +} + +src_install() { + default + plugindir="/usr/$(get_libdir)/nagios/plugins" + dodir "$plugindir" + mv -f "${D}"/usr/bin/check_raid.pl "${D}"/"${plugindir}" + dodoc README.md ChangeLog.md CONTRIBUTING.md check_raid.cfg +} + +pkg_postinst() { + einfo "The following RAID controllers are supported without special tools:" + einfo "GDT (Intel/ICP) RAID Controller" + einfo "HP MSA (special configuration needed)" + einfo "The following RAID controllers do not have tools packaged in Gentoo, but ARE supported by this tool:" + einfo "Intel: CmdTool2" + einfo "Areca: areca-cli" + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/10" + einfo "Marvell RAID: mvcli" + einfo "See https://github.com/glensc/nagios-plugin-check_raid/issues/92" + einfo "Adaptec ServeRAID: aaccli" + einfo "Adaptec AACRAID: afacli (* some controllers supported by USE=aacraid, sys-block/arcconf)" + einfo "Adaptec ServeRAID 7k: ipssend" +} -- cgit v1.2.3