net-analyzer/zabbix-agent2-plugin-nvidia-gpu - 7.4.14 (guru)

Search

Install

Install this version:

emerge -a =net-analyzer/zabbix-agent2-plugin-nvidia-gpu-7.4.14

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-analyzer/zabbix-agent2-plugin-nvidia-gpu-7.4.14

Or alternatively:

emerge --autounmask-write -a =net-analyzer/zabbix-agent2-plugin-nvidia-gpu-7.4.14

Package Information

Description:
NVIDIA GPU loadable plugin for Zabbix Agent 2
Homepage:
https://git.zabbix.com/projects/AP/repos/nvidia-gpu/browse
License:
AGPL-3

Ebuild Details

Version EAPI Keywords Slot
7.4.14 8 ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="NVIDIA GPU loadable plugin for Zabbix Agent 2"
HOMEPAGE="https://git.zabbix.com/projects/AP/repos/nvidia-gpu/browse"
SRC_URI="
	https://git.zabbix.com/rest/api/latest/projects/AP/repos/nvidia-gpu/archive?at=refs%2Ftags%2F${PV}&format=tgz
		-> ${P}.tar.gz
	https://github.com/gentoo-golang-dist/${PN}/releases/download/${PV}/${P}-vendor.tar.xz
"

inherit go-module

S="${WORKDIR}"

LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="test"

RESTRICT="!test? ( test )"

RDEPEND="
	~net-analyzer/zabbix-${PV}[agent2]
	x11-drivers/nvidia-drivers
"
BDEPEND="
	>=dev-lang/go-1.25.9
	x11-drivers/nvidia-drivers
"

DOCS=( "README.md" )

src_unpack() {
	mkdir "${P}" || die
	ln --symbolic "${P}/vendor" "${S}/vendor" || die
	go-module_src_unpack
}

src_prepare() {
	default
	# See https://bugs.gentoo.org/975428
	sed --in-place 's/^#cgo linux LDFLAGS: -ldl/& -lnvidia-ml/' pkg/nvml/nvml_linux.go || die
}

src_install() {
	exeinto "/usr/libexec/zabbix-agent2-plugin"
	doexe zabbix-agent2-plugin-nvidia-gpu

	insinto /etc/zabbix/zabbix_agent2.d/plugins.d/
	doins nvidia.conf
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-analyzer/zabbix-agent2-plugin-nvidia-gpu | euse -E <flag> -p net-analyzer/zabbix-agent2-plugin-nvidia-gpu | euse -D <flag> -p net-analyzer/zabbix-agent2-plugin-nvidia-gpu

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

	~net-analyzer/zabbix-7.4.14[agent2]
	x11-drivers/nvidia-drivers

BDEPEND

	>=dev-lang/go-1.25.9
	x11-drivers/nvidia-drivers

Manifest for 7.4.14

Type File Size Source URLs
DIST zabbix-agent2-plugin-nvidia-gpu-7.4.14-vendor.tar.xz 763296 bytes https://github.com/gentoo-golang-dist/zabbix-agent2-plugin-nvidia-gpu/releases/download/7.4.14/zabbix-agent2-plugin-nvidia-gpu-7.4.14-vendor.tar.xz
DIST zabbix-agent2-plugin-nvidia-gpu-7.4.14.tar.gz 129128 bytes https://git.zabbix.com/rest/api/latest/projects/AP/repos/nvidia-gpu/archive?at=refs%2Ftags%2F7.4.14&format=tgz