Skip to content

Commit

Permalink
net-analyzer/check_vmware_esx: fix for issue BaldMansMojo/check_vmwar…
Browse files Browse the repository at this point in the history
…e_esx#202

Signed-off-by: Anton Fischl <[email protected]>
  • Loading branch information
antonfischl1980 committed Jul 18, 2023
1 parent ec35d32 commit 279a915
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
31 changes: 31 additions & 0 deletions net-analyzer/check_vmware_esx/check_vmware_esx-1.2.5-r1.ebuild
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
}
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")

0 comments on commit 279a915

Please sign in to comment.