-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-analyzer/check_vmware_esx: fix for issue BaldMansMojo/check_vmwar…
…e_esx#202 Signed-off-by: Anton Fischl <[email protected]>
- Loading branch information
1 parent
ec35d32
commit 279a915
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
net-analyzer/check_vmware_esx/check_vmware_esx-1.2.5-r1.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 1999-2022 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" | ||
S="${WORKDIR}/${PN}-v.${PV}" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64" | ||
IUSE="" | ||
|
||
PATCHES=( "${FILESDIR}"/"${PN}-1.2.5-pr206.patch" ) | ||
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 | ||
} |
13 changes: 13 additions & 0 deletions
13
net-analyzer/check_vmware_esx/files/check_vmware_esx-1.2.5-pr206.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/modules/host_cpu_info.pm b/modules/host_cpu_info.pm | ||
index f90453a..bd3c4dc 100644 | ||
--- a/modules/host_cpu_info.pm | ||
+++ b/modules/host_cpu_info.pm | ||
@@ -175,7 +175,7 @@ sub host_cpu_info | ||
} | ||
else | ||
{ | ||
- $value = simplify_number(convert_number($$values[0][2]->value) * 0.01); | ||
+ $value = simplify_number(convert_number($$values[0][3]->value) * 0.01); | ||
} | ||
|
||
if ($subselect eq "all") |