net-analyzer/check_vmware_esx: added

This commit is contained in:
antonfischl1980 2021-12-18 11:03:57 +01:00
parent f909692a9b
commit 33ec03d2a5
Signed by: anton
GPG Key ID: 87E4939135F3A567
15 changed files with 415 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,4 +1,2 @@
net-analyzer/icinga2-meta
metadata/md5-cache/net-analyzer/icinga2-meta-0.0.1
net-analyzer/check_vmware_esx
metadata/md5-cache/net-analyzer/check_vmware_esx-1.2.3

View File

@ -0,0 +1 @@
DIST VMware-vSphere-CLI-6.7.0-8156551.x86_64.tar.gz 39353542 BLAKE2B 8ff38ce9b20be927703eeb4b20080e2db48547099928e650e9190b38d956c917768fd44f7300bdfd39fbade97f5196c412eacee55dc654b7c9e6cd415127846a SHA512 f2ef62fa6f8bbc0cb36460dfae7c045511a2c7bfa53a915c4291ef82fcf97827cd4328e21bd1cdaf5716d36faa50d0e1ce8f4d1e930eb6460df5ca39bf062ff4

View File

@ -0,0 +1,57 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit perl-module
DESCRIPTION="VMware vSphere Command Line Interface 6.7"
HOMEPAGE="https://my.vmware.com/de/web/vmware/details?downloadGroup=VS-CLI-670&productId=742"
SRC_URI="VMware-vSphere-CLI-6.7.0-8156551.x86_64.tar.gz"
RESTRICT="fetch mirror"
PATCHES=(
"${FILESDIR}"/Makefile.PL.patch
)
LICENSE="VMware-vSphere-CLI-EULA"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE=""
DEPEND="
dev-perl/Archive-Zip
dev-perl/HTTP-Date
dev-perl/LWP-UserAgent-Cached
dev-perl/Text-Template
dev-perl/Time-Duration
dev-perl/URI
dev-perl/UUID
dev-perl/XML-LibXML
"
RDEPEND="${DEPEND}"
BDEPEND="${DEPEND}"
pkg_nofetch(){
default
einfo "Please download ${A} from $HOMEPAGE"
einfo "and place it in your DISTDIR (usually /var/cache/distfiles/ or /usr/portage/distfiles/ )"
einfo "you will need a VMware Account for this"
}
src_unpack() {
default
mv "${WORKDIR}/vmware-vsphere-cli-distrib" "${S}"
}
src_install() {
default
dobin bin/[r-z]*
cd "${D}/usr/bin"
for i in vicfg-*;do
ln -s "$i" "$(echo "$i"|sed "s/vicfg-/esxcfg-/")"
done
keepdir "/usr/share/doc/${PF}/"
mv "${D}/usr/doc/"* "${D}/usr/share/doc/${PF}/"
rm -R "${D}/usr/doc/"
}

View File

@ -0,0 +1,26 @@
diff --git a/Makefile.PL b/Makefile.PL
index 046e794..25aa9bf 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -84,18 +84,11 @@ WriteMakefile(
macro => {
# vmware apps
INST_VMWARE_APPS => 'apps',
- DEST_VMWARE_APPS => (
- $Config{perlpath} eq '/usr/bin/perl' ?
- '/usr/lib/vmware-viperl/apps' :
- '$(INSTALLSITESCRIPT)/apps'
- ),
+ DEST_VMWARE_APPS => '../../image/usr/lib/vmware-viperl/apps',
+
# vmware docs
INST_VMWARE_DOC => 'doc',
- DEST_VMWARE_DOC => (
- $Config{perlpath} eq '/usr/bin/perl' ?
- '/usr/share/doc/vmware-viperl/doc' :
- '$(SITEPREFIX)/doc'
- ),
+ DEST_VMWARE_DOC => '../../image/$(SITEPREFIX)/doc',
},
);

View File

@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>github@fischl-online.de</email>
<name>Anton Fischl</name>
</maintainer>
</pkgmetadata>

1
dev-perl/UUID/Manifest Normal file
View File

@ -0,0 +1 @@
DIST UUID-0.28.tar.gz 15828 BLAKE2B 670f25e2e3e414e36ee5dd7d129cefd1f9a50e1e9594c7adf5625f9d193755a2ac08d8b9acd8fcef0b2e1b1e26bf2c2f6d2a2f338dbb43c3eeac7a305a052624 SHA512 f6203e024f83c8156d4dae093513f5a6817a67874d77f01c7cb1f83d1cfa811c815ad3324983b655332e994f85c536eb65682e598168f9d1d6b76bf0bde9817e

View File

@ -0,0 +1,26 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_AUTHOR=JRM
DIST_VERSION=0.28
inherit perl-module
DESCRIPTION="Perl extension for using UUID interfaces as defined in e2fsprogs"
LICENSE="Artistic-2"
SLOT="0"
KEYWORDS="amd64 arm ppc x86"
# Note: UUID appears to link against a bunch of different UUID
# implementations depending on availability and platform.
# Presently uses uuid.h/libuuid.so from util-linux which is fine for Linux
# platforms, but may need special attention on *bsd, *osx and win*
RDEPEND="sys-apps/util-linux"
BDEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
>=dev-perl/Devel-CheckLib-1.20.0
"
DEPEND="${RDEPEND}
"

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>perl@gentoo.org</email>
<name>Gentoo Perl Project</name>
</maintainer>
<upstream>
<remote-id type="cpan">UUID</remote-id>
<remote-id type="cpan-module">UUID</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,200 @@
VMware(r) vSphere Software Development Kit License Agreement
VMware, Inc. ("VMware") provides the VMware vSphere Software
Development Kit (collectively the "Software") to you subject to the
following terms and conditions. By downloading, installing, or using
the Software, you (the individual or legal entity) agree to be bound by
the terms of this license agreement (the "Agreement"). If you disagree
with any of the following terms, then do not use the Software.
1. The Software contains a variety of materials, interface definitions,
documentation, sample utility applications and sample code regarding
programming interfaces to one or more VMware products that are referenced
in such materials (the referenced products, "VMware Products"). This
Software is intended to be used to develop software that interacts with the
VMware Products.
2. USE RIGHTS: Subject to the restrictions below, you may download and
make a reasonable number of copies of the Software for your use solely for
the purpose of creating software that communicates with VMware Products
(your software, "Developer Software"). Some code may be designated as
"distributable code" and/or "modifiable code" at
http://www.vmware.com/go/vwssdk-redistribution-info. You may use and
merge all or portions of the "distributable code" with your Developer Software.
Any merged portion of any "distributable code" is subject to this Agreement.
Additionally, you may modify or create derivative works of all or portions of
the "modifiable code." You are permitted to re-distribute the "distributable
code" and the modified or derivative works of the "modifiable code" only as
part of your Developer Software for non-commercial or commercial use;
provided that you shall only distribute such code subject to a license
agreement that protects VMware's and its licensors' interests consistent with
the terms contained in this Agreement. Open source software components
provided with the Software are licensed to you under the terms of the
applicable license agreements included with such open source software
components. The open source software licenses can be found in the
open_source_licenses.txt file, other materials accompanying the Software,
the documentation or corresponding source files available at
http://www.vmware.com/download/open_source.html.
3. RESTRICTIONS: You agree that you will not (1) use the Software to
create, design or develop anything other than Developer Software; (2) make
any more copies of the Software than are reasonably necessary for the
authorized use and backup and archival purposes; (3) modify, create
derivative works of, reverse engineer, reverse compile, or disassemble the
Software except as expressly permitted in Section 2; (4) distribute, sell, lease,
rent, lend, or sublicense any part of the Software to any third party except as
expressly permitted in Section 2; or (5) use the Software in any manner to (a)
circumvent any technical restrictions of VMware Products or violate any
additional licensing terms applicable to VMware Products that VMware
provides through product documentation, email notification on the VMware
website or in the terms of the End User License Agreements; (b) disable,
remove, over-ride or modify the display of any VMware Product End User
License Agreements that the VMware Products present to the end customers;
or (c) upload or otherwise transmit any material containing software viruses or
other computer code, files or programs designed to interrupt, destroy, or limit
the functionality of any software or hardware.
The restrictions in this Section 3 shall not apply if and to the extent they
contradict mandatory local law (including, but not limited to, law implementing
the EC Software Directive).
4. VMware retains ownership of the Software and all intellectual property
rights embodied in the Software, including without limitation all copyrights,
trade secrets and patents. You may not remove, delete or modify any of
VMware copyright statements in the Software. ALL RIGHTS NOT
EXPRESSLY GRANTED HEREUNDER ARE RESERVED TO VMWARE.
5. You may not use VMware's name, trademarks or service marks in
connection with your Developer Software in a way that suggests your
Developer Software is certified or endorsed by VMware.
6. You are not entitled under this Agreement to receive any VMware support
or subscription services for the Software or any other services from VMware
in connection with the Software. If you have purchased support and/or
subscription services for a VMware product, such support and/or subscription
services shall not apply to the Software or your use of the Software.
7. TERM, TERMINATION & CHANGES: This Agreement shall continue as
long as you are in compliance with the terms specified herein or until
otherwise terminated. You or VMware each may terminate this Agreement for
any reason at any time. You agree, upon termination, to destroy all copies of
the Software within your possession or control. The Confidential Information,
Limitations of Warranties and Liability, and Indemnification sections set out in
this Agreement shall survive any termination or expiration of this Agreement.
8. CONFIDENTIAL INFORMATION: "Confidential Information" means any
information disclosed by VMware to you pursuant to this Agreement that is
marked "Confidential," "Proprietary," or in some similar manner and any
information which you knew or reasonably should have known to be
confidential. You shall treat as confidential all Confidential Information of
VMware and shall not use such Confidential Information except to exercise
your rights or perform your obligations under this Agreement. You will protect
Confidential Information from unauthorized use, access, or disclosure in the
same manner as you protect your own confidential or proprietary information
of a similar nature but with no less than reasonable care. You shall not
disclose such Confidential Information to any third party during or after the
term of this Agreement. This paragraph will not apply to any Confidential
Information that: (a) was rightfully in your possession prior to receipt of such
Confidential Information from VMware; (b) is or becomes a matter of public
knowledge through no fault of you; (c) is rightfully received from a third party
without a duty of confidentiality; (d) is independently developed by you without
breach of any confidentiality obligations; (e) is disclosed by you with
VMware's prior written approval; or (f) you are required to disclose by
applicable law or court order, provided that you notify VMware of such
required disclosure promptly in writing and cooperate with VMware in any
lawful action to contest or limit the scope of such required disclosure. You
acknowledge that breach of this Section 8 will cause irreparable damage to
VMware for which monetary damages will be an inadequate remedy.
Accordingly, VMware will be entitled to seek and obtain injunctive and any
other relief (legal or equitable) to restrain any breach or anticipated breach of
this Section 8.
9. LIMITATIONS OF WARRANTIES & LIABILITY: THE SOFTWARE IS
PROVIDED "AS IS" WITHOUT ANY WARRANTIES OF ANY KIND. TO THE
MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, VMWARE
DISCLAIMS ANY IMPLIED WARRANTIES, INCLUDING, WITHOUT
LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT OF
INTELLECTUAL PROPERTY RIGHTS.
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO
EVENT WILL VMWARE BE LIABLE FOR ANY LOST PROFITS OR
BUSINESS OPPORTUNITIES, LOSS OF USE, BUSINESS INTERRUPTION,
LOSS OF DATA, OR ANY OTHER INDIRECT, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE SOFTWARE OR
YOUR USE OF THE SOFTWARE, UNDER ANY THEORY OF LIABILITY,
WHETHER BASED IN CONTRACT, TORT, NEGLIGENCE, PRODUCT
LIABILITY, OR OTHERWISE. BECAUSE SOME JURISDICTIONS DO NOT
ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR
CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE PRECEDING
LIMITATION MAY NOT APPLY TO YOU.
VMWARE'S LIABILITY ARISING OUT OF THIS AGREEMENT AND THE
SOFTWARE PROVIDED HEREUNDER WILL NOT, IN ANY EVENT,
EXCEED US$100.00.
THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM
EXTENT PERMITTED BY APPLICABLE LAW, REGARDLESS OF
WHETHER VMWARE HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES AND REGARDLESS OF WHETHER ANY REMEDY
FAILS OF ITS ESSENTIAL PURPOSE.
10. INDEMNIFICATION: You agree to defend, indemnify and hold harmless
VMware, and any of its directors, officers, employees, affiliates and agents,
from and against any and all claims, losses, damages, liabilities and other
expenses (including reasonable attorneys' fees), arising from your
modification of the "modifiable code," the distribution or use of your Developer
Software by you or anyone else, and your breach of this Agreement.
11. EXPORT CONTROL: You acknowledge that the Software is of United
States origin, is provided subject to the U.S. Export Administration
Regulations, may be subject to the export control laws of the applicable
territory, and that diversion contrary to applicable export control laws is
prohibited. You represent, warrant and covenant that (1) you are not, and are
not acting on behalf of, (a) any person who is a citizen, national, or resident
of, or who is controlled by the government of any country to which the United
States has prohibited export transactions; or (b) any person or entity listed on
the U.S. Treasury Department list of Specially Designated Nationals and
Blocked Persons, or the U.S. Commerce Department Denied Persons List or
Entity List; and (2) you will not permit the Software to be used for any
purposes prohibited by law, including, any prohibited development, design,
manufacture or production of missiles or nuclear, chemical or biological
weapons.
12. DATA PRIVACY:
(a) Consent for Collection and Use of Technical Data. You agree
that VMware may periodically collect, process and store technical
and related information about your device, system, application,
peripherals and your use of the Software, including without
limitation: internet protocol address, hardware identification,
operating system, application software, peripheral hardware,
number of active plugins and software development kits, the
successful installation and launch of Software, and Software usage
statistics (collectively, "Technical Data"). VMware will use Technical
Data for internal statistical and analytical purposes to facilitate
support, invoicing or online services, the provisioning of updates,
and the development of VMware products and services. VMware
may transfer Technical Data to other companies in the VMware
worldwide group of companies from time to time.
(b) Log Files. You acknowledge that correspondence and log files
generated in conjunction with a request for support services may
contain sensitive, confidential or personal information. You are
solely responsible for taking the steps necessary to protect such
data, including obfuscating the logs or otherwise guarding such
information prior to sending it to VMware.
13. These terms are governed by the laws of the State of California and the
United States of America without regard to conflict of laws principles. The
United Nations Convention for the International Sale of Goods shall not apply.
You may not assign this Agreement. Any attempted assignment by you shall
be void. These terms constitute the entire agreement between you and
VMware with respect to the Software and supersede all prior written or oral
communications, understandings and agreements. Any waiver of these terms
must be in writing and signed by the waiving party to be effective. If any
provision of these terms is found to be invalid or unenforceable, the remaining
terms will continue to be valid and enforceable to the fullest extent permitted
by law.

View File

@ -0,0 +1,16 @@
BDEPEND=dev-perl/Archive-Zip dev-perl/HTTP-Date dev-perl/LWP-UserAgent-Cached dev-perl/Text-Template dev-perl/Time-Duration dev-perl/URI dev-perl/UUID dev-perl/XML-LibXML dev-lang/perl test? ( virtual/perl-Test-Simple )
DEFINED_PHASES=compile configure install nofetch prepare test unpack
DEPEND=dev-perl/Archive-Zip dev-perl/HTTP-Date dev-perl/LWP-UserAgent-Cached dev-perl/Text-Template dev-perl/Time-Duration dev-perl/URI dev-perl/UUID dev-perl/XML-LibXML dev-lang/perl
DESCRIPTION=VMware vSphere Command Line Interface 6.7
EAPI=8
HOMEPAGE=https://my.vmware.com/de/web/vmware/details?downloadGroup=VS-CLI-670&productId=742
INHERIT=perl-module
IUSE=test
KEYWORDS=amd64 ~x86
LICENSE=VMware-vSphere-CLI-EULA
RDEPEND=dev-perl/Archive-Zip dev-perl/HTTP-Date dev-perl/LWP-UserAgent-Cached dev-perl/Text-Template dev-perl/Time-Duration dev-perl/URI dev-perl/UUID dev-perl/XML-LibXML dev-lang/perl:=
RESTRICT=fetch mirror !test? ( test )
SLOT=0
SRC_URI=VMware-vSphere-CLI-6.7.0-8156551.x86_64.tar.gz
_eclasses_=multiprocessing 61c959fc55c15c00bbb1079d6a71370b perl-functions fea344a91ebf37efadf172c6a3de5a72 readme.gentoo-r1 c9646d622541c023f5159b86a14e930c perl-module bd9574a79c5f0a347a9ea3db5ad9ca72
_md5_=07dd8fbe8c3a46c54a0648de9f2c96c6

View File

@ -0,0 +1,16 @@
BDEPEND=sys-apps/util-linux virtual/perl-ExtUtils-MakeMaker >=dev-perl/Devel-CheckLib-1.20.0 dev-lang/perl test? ( virtual/perl-Test-Simple )
DEFINED_PHASES=compile configure install prepare test
DEPEND=sys-apps/util-linux dev-lang/perl
DESCRIPTION=Perl extension for using UUID interfaces as defined in e2fsprogs
EAPI=8
HOMEPAGE=https://metacpan.org/release/UUID
INHERIT=perl-module
IUSE=test
KEYWORDS=amd64 arm ppc x86
LICENSE=Artistic-2
RDEPEND=sys-apps/util-linux dev-lang/perl:=
RESTRICT=!test? ( test )
SLOT=0
SRC_URI=mirror://cpan/authors/id/J/JR/JRM/UUID-0.28.tar.gz
_eclasses_=multiprocessing 61c959fc55c15c00bbb1079d6a71370b perl-functions fea344a91ebf37efadf172c6a3de5a72 readme.gentoo-r1 c9646d622541c023f5159b86a14e930c perl-module bd9574a79c5f0a347a9ea3db5ad9ca72
_md5_=bb81118415f716822e8a24d645775a9d

View File

@ -0,0 +1,10 @@
DEFINED_PHASES=install
DESCRIPTION=check_vmware_esx for VMware Monitoring
EAPI=8
HOMEPAGE=https://github.com/BaldMansMojo/check_vmware_esx
KEYWORDS=amd64 x86
LICENSE=GPL-2
RDEPEND=dev-perl/HTTP-Date app-admin/VMware-vSphere-CLI dev-perl/URI dev-perl/XML-LibXML dev-perl/LWP-UserAgent-Cached dev-perl/Text-Template dev-perl/UUID dev-perl/Time-Duration
SLOT=0
SRC_URI=https://github.com/BaldMansMojo/check_vmware_esx/archive/refs/tags/v1.2.3.tar.gz -> check_vmware_esx-1.2.3.tar.gz
_md5_=c819a880dfd7356426c5b5aebfe71a36

View File

@ -0,0 +1 @@
DIST check_vmware_esx-1.2.3.tar.gz 112925 BLAKE2B 2f690ab674672f88f9347707f4b3baf78cac168b37a6350fa926dd4414dc1e5a50d906b7c2ba76df0d036bb1bf963729ea5e5d82dd56cf7f21dc0d58ed87f87a SHA512 223c290444b0de5c94c3eac7be0f94a8f00b9b2a57f313181dbcbaed222caa184bdc65a5776a7ba0598fed68d67db825dfb6943016b5ab2438b14e8f55a38509

View File

@ -0,0 +1,29 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="check_vmware_esx for VMware Monitoring"
HOMEPAGE="https://github.com/BaldMansMojo/check_vmware_esx"
SRC_URI="https://github.com/BaldMansMojo/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64"
IUSE=""
RDEPEND="
dev-perl/HTTP-Date
app-admin/VMware-vSphere-CLI
dev-perl/URI
dev-perl/XML-LibXML
dev-perl/LWP-UserAgent-Cached
dev-perl/Text-Template
dev-perl/UUID
dev-perl/Time-Duration
"
src_install(){
exeinto /usr/lib64/nagios/plugins/contrib/
doexe check_vmware_esx
}

View File

@ -0,0 +1,12 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>github@fischl-online.de</email>
<name>Anton Fischl</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="github">BaldMansMojo/check_vmware_esx</remote-id>
</upstream>
</pkgmetadata>