Install this version:
emerge -a =net-analyzer/nagtrap-0.1.3
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-analyzer/nagtrap-0.1.3
Or alternatively:
emerge --autounmask-write -a =net-analyzer/nagtrap-0.1.3
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Integrated snmptt visualization addon for the Nagios monitoring system"
HOMEPAGE="http://www.nagtrap.org/"
SRC_URI="http://www.nagiosforge.org/gf/download/frsrelease/126/252/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/httpd-php"
RDEPEND="dev-lang/php[mysql]
net-analyzer/snmptt
net-analyzer/nagios-core
virtual/httpd-php"
src_install() {
dodoc ChangeLog THANKS
dodir /usr/share/nagtrap
cp -r {db,nagtrap} "${ED}"/usr/share/nagtrap/ || die
fperms 640 /usr/share/nagtrap/nagtrap/etc/config.ini.php-dist
sed -i -e 's#use lib.*#use lib "/usr/lib/nagios/plugins";#g' \
plugin/check_snmptraps.pl || die "sed failed"
insinto /usr/$(get_libdir)/nagios/plugins
insopts -m 750 -g nagios
doins plugin/check_snmptraps.pl
}
pkg_postinst() {
elog "Before running NagTrap for the first time, you will need setup its configuration"
elog "${EROOT}/usr/share/nagtrap/nagtrap/etc/config.ini.php"
elog "A sample is installed in"
elog "${EROOT}/usr/share/nagtrap/nagtrap/etc/config.ini.php-sample"
elog
elog "NagTrap requires snmptt to write traps into a MySQL database."
elog "A database schema is available in ${EROOT}/usr/share/nagtrap/db"
}
virtual/httpd-php
dev-lang/php[mysql] net-analyzer/snmptt net-analyzer/nagios-core virtual/httpd-php
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | nagtrap-0.1.3.tar.gz | 141934 bytes | http://www.nagiosforge.org/gf/download/frsrelease/126/252/nagtrap-0.1.3.tar.gz |