summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2006-05-31 07:32:36 +0000
committerMarkus Ullmann <jokey@gentoo.org>2006-05-31 07:32:36 +0000
commit3fabfd17624d70bb13153274f794375aa7053bf1 (patch)
tree7e77459e72283c57a237b9b652647af6a8a6e4ce /net-analyzer/mrtg-ping-probe
parentAdded sparc stable keyword (diff)
downloadgentoo-2-3fabfd17624d70bb13153274f794375aa7053bf1.tar.gz
gentoo-2-3fabfd17624d70bb13153274f794375aa7053bf1.tar.bz2
gentoo-2-3fabfd17624d70bb13153274f794375aa7053bf1.zip
Initial import, closing bug #54728, thanks to Molchanov Alexander <xorader@mail.ru>
(Portage version: 2.1_rc1-r3)
Diffstat (limited to 'net-analyzer/mrtg-ping-probe')
-rw-r--r--net-analyzer/mrtg-ping-probe/ChangeLog10
-rw-r--r--net-analyzer/mrtg-ping-probe/Manifest20
-rw-r--r--net-analyzer/mrtg-ping-probe/files/digest-mrtg-ping-probe-2.2.03
-rw-r--r--net-analyzer/mrtg-ping-probe/files/mrtg-ping-cfg84
-rw-r--r--net-analyzer/mrtg-ping-probe/metadata.xml8
-rw-r--r--net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild34
6 files changed, 159 insertions, 0 deletions
diff --git a/net-analyzer/mrtg-ping-probe/ChangeLog b/net-analyzer/mrtg-ping-probe/ChangeLog
new file mode 100644
index 000000000000..d7e73061b92e
--- /dev/null
+++ b/net-analyzer/mrtg-ping-probe/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-analyzer/mrtg-ping-probe
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mrtg-ping-probe/ChangeLog,v 1.1 2006/05/31 07:32:36 jokey Exp $
+
+*mrtg-ping-probe-2.2.0 (31 May 2006)
+
+ 31 May 2006; Markus Ullmann <jokey@gentoo.org> +files/mrtg-ping-cfg,
+ +metadata.xml, +mrtg-ping-probe-2.2.0.ebuild:
+ Initial import, closing bug #54728, thanks to Molchanov Alexander <xorader@mail.ru>
+
diff --git a/net-analyzer/mrtg-ping-probe/Manifest b/net-analyzer/mrtg-ping-probe/Manifest
new file mode 100644
index 000000000000..629e17ac0c72
--- /dev/null
+++ b/net-analyzer/mrtg-ping-probe/Manifest
@@ -0,0 +1,20 @@
+AUX mrtg-ping-cfg 2077 RMD160 5801933346f073652915b85a3789d50a9b41b166 SHA1 f4897051f11edd23fe3dda4d754caf8d5f650e19 SHA256 771bbe8321fa806c86b45b18c0c697a29702ec6b30f167d4b9f757f511ed0c95 size 2077
+MD5 6a1d21142d4fa08dbf028f0c18eebb0d files/mrtg-ping-cfg 2077
+RMD160 5801933346f073652915b85a3789d50a9b41b166 files/mrtg-ping-cfg 2077
+SHA256 771bbe8321fa806c86b45b18c0c697a29702ec6b30f167d4b9f757f511ed0c95 files/mrtg-ping-cfg 2077
+DIST mrtg-ping-probe-2.2.0.tar.gz 36923 RMD160 86c655ceb9f55dfb8061dfc6eb1770bdd7d11a20 SHA256 2708459c1beb5ab482fa28ff62720f6a2d5707475d40e53a2829927572c96a0e size 36923
+EBUILD mrtg-ping-probe-2.2.0.ebuild 996 RMD160 81c49027ffe778eb899bb6696ede2cd9ff96f7f6 SHA1 2a6c71b7039e25a88fd1aa01ecabd043d274ad1c SHA256 0c6ccaae8b0a95be05f18ef2c0ea219b9e352d26aa7570a8bec279769fd0b237 size 996
+MD5 d7eb5939642d5d7853ffffa2fad87b3e mrtg-ping-probe-2.2.0.ebuild 996
+RMD160 81c49027ffe778eb899bb6696ede2cd9ff96f7f6 mrtg-ping-probe-2.2.0.ebuild 996
+SHA256 0c6ccaae8b0a95be05f18ef2c0ea219b9e352d26aa7570a8bec279769fd0b237 mrtg-ping-probe-2.2.0.ebuild 996
+MISC ChangeLog 373 RMD160 b4c4cf36a03fe58c9dcecc9604e25500e0d63790 SHA1 3d8f4a3fa09bb1ee51facbb8dcfb84a161bca3ff SHA256 9a1671f86266f47217aac1859d7289338deaad42fcfc46ed82a09703332ddc73 size 373
+MD5 02bacc925b05ae296e438dd86931dbd6 ChangeLog 373
+RMD160 b4c4cf36a03fe58c9dcecc9604e25500e0d63790 ChangeLog 373
+SHA256 9a1671f86266f47217aac1859d7289338deaad42fcfc46ed82a09703332ddc73 ChangeLog 373
+MISC metadata.xml 221 RMD160 6a612dbdb85b7cbc15a4f4924fc62b435900bee4 SHA1 59ce39c64900516f7d583951daacb16fc01f0ea1 SHA256 80bafe9d61de4580c061d796ca9c244633349b7a6da85aeae6e11bbaad597110 size 221
+MD5 9683bb7323c40d69b48d54ad0eb169ed metadata.xml 221
+RMD160 6a612dbdb85b7cbc15a4f4924fc62b435900bee4 metadata.xml 221
+SHA256 80bafe9d61de4580c061d796ca9c244633349b7a6da85aeae6e11bbaad597110 metadata.xml 221
+MD5 85792486d1af66d0a2262095ab3ef0f3 files/digest-mrtg-ping-probe-2.2.0 262
+RMD160 593717ffc4c71e5390a970604791ee053dbd7fea files/digest-mrtg-ping-probe-2.2.0 262
+SHA256 8f3aa748f858293a759fe8267ebaf678e5e19fc42f85e23ed3ef5f86140aed4c files/digest-mrtg-ping-probe-2.2.0 262
diff --git a/net-analyzer/mrtg-ping-probe/files/digest-mrtg-ping-probe-2.2.0 b/net-analyzer/mrtg-ping-probe/files/digest-mrtg-ping-probe-2.2.0
new file mode 100644
index 000000000000..cea650f0095e
--- /dev/null
+++ b/net-analyzer/mrtg-ping-probe/files/digest-mrtg-ping-probe-2.2.0
@@ -0,0 +1,3 @@
+MD5 5eec5bc5f1c5097248c701d54639d292 mrtg-ping-probe-2.2.0.tar.gz 36923
+RMD160 86c655ceb9f55dfb8061dfc6eb1770bdd7d11a20 mrtg-ping-probe-2.2.0.tar.gz 36923
+SHA256 2708459c1beb5ab482fa28ff62720f6a2d5707475d40e53a2829927572c96a0e mrtg-ping-probe-2.2.0.tar.gz 36923
diff --git a/net-analyzer/mrtg-ping-probe/files/mrtg-ping-cfg b/net-analyzer/mrtg-ping-probe/files/mrtg-ping-cfg
new file mode 100644
index 000000000000..85a38221b625
--- /dev/null
+++ b/net-analyzer/mrtg-ping-probe/files/mrtg-ping-cfg
@@ -0,0 +1,84 @@
+#!/bin/sh
+#
+# mrtg-ping-cfg { ping | loss } <device> <"Title of page">
+#
+# This creates the mrtg.cfg configurations to do pings to devices.
+# Makes use of mrt-ping-probe by Peter W. Osel <pwo@guug.de> (see below)
+#
+# leewm@sgp.hp.com
+# Hewlett Packard Singapore
+# IT Site Infrastructure Services
+# modifed by "Molchanov Alexander <xorader@mail.ru>"
+
+# location of mrtg ping probe
+PING_PROBE=/usr/bin/mrtg-ping-probe
+
+if [ $# -ne 3 ]
+then
+ head -n 11 $0
+ exit
+fi
+
+if [ $1 == "ping" ] ; then
+ target="$2.ping"
+ MaxBytes=5000
+ AbsMax=10000
+ Unscaled=""
+ YLegend="Round Trip Time"
+ ShortLegend="ms"
+ Legend1="Maximum Round Trip Time in Milli Second"
+ Legend2="Minimum Round Trip Time in Milli Second"
+ Legend3="Maximal 5 Minute Maximum Round Trip Time"
+ Legend4="Maximal 5 Minute Minimum Round Trip Time"
+ LegendI="&nbsp;Max:"
+ LegendO="&nbsp;Min:"
+ PageTop="<H1>$3</H1><P>Actually we are measuring the ping time between our web server and $2."
+elif [ $1 == "loss" ] ; then
+ target="$2.loss"
+ PING_PROBE="$PING_PROBE -p loss/loss"
+ MaxBytes=100
+ AbsMax=101
+ Unscaled="Unscaled[$target]: dwmy"
+ YLegend="% Packet Loss"
+ ShortLegend="%"
+ Legend1="% Packet Loss"
+ Legend2="% Packet Loss"
+ Legend3="Maximal 5 Minute % Packet Loss"
+ Legend4="Maximal 5 Minute % Packet Loss"
+ LegendI="&nbsp;% loss:"
+ LegendO="&nbsp;% loss:"
+ PageTop="<H1>$3</H1><P>Actually we are packet loss between our web server and $2."
+else
+ echo "enter first argument 'ping' or 'loss'" >&2
+ head -n 11 $0
+ exit
+fi
+
+cat <<EOF
+#############################################################
+# $1 stats for $2
+# $3
+
+Title[$target]: $3
+MaxBytes[$target]: $MaxBytes
+AbsMax[$target]: $AbsMax
+Options[$target]: gauge
+Target[$target]: \`$PING_PROBE $2\`
+PageTop[$target]: $PageTop
+YLegend[$target]: $YLegend
+ShortLegend[$target]: $ShortLegend
+Legend1[$target]: $Legend1
+Legend2[$target]: $Legend2
+Legend3[$target]: $Legend3
+Legend4[$target]: $Legend4
+LegendI[$target]: $LegendI
+LegendO[$target]: $LegendO
+WithPeak[$target]: ymwd
+$Unscaled
+
+#-------------------------------------------------------------------
+
+EOF
+
+exit
+
diff --git a/net-analyzer/mrtg-ping-probe/metadata.xml b/net-analyzer/mrtg-ping-probe/metadata.xml
new file mode 100644
index 000000000000..1c54eb31a1ba
--- /dev/null
+++ b/net-analyzer/mrtg-ping-probe/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>netmon</herd>
+<maintainer>
+ <email>netmon@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild b/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild
new file mode 100644
index 000000000000..7a75bea07b37
--- /dev/null
+++ b/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild,v 1.1 2006/05/31 07:32:36 jokey Exp $
+
+DESCRIPTION="Addon mrtg contrib for stats ping/loss packets"
+SRC_URI="ftp://ftp.pwo.de/pub/pwo/mrtg/mrtg-ping-probe/${P}.tar.gz"
+HOMEPAGE="ftp://ftp.pwo.de/pub/pwo/mrtg/mrtg-ping-probe/"
+
+KEYWORDS="~x86"
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND="net-analyzer/mrtg"
+
+src_unpack() {
+ unpack ${A} || die
+ cd ${S} || die
+ sed -i -e 's:#!/usr/local/bin/perl -w:#!/usr/bin/perl -w:' check-ping-fmt
+ #sed -i -e 's:#!/bin/ksh:#!/bin/sh:' mrtg-ping-cfg
+ #sed -i -e 's:head -10:head -n 10:' mrtg-ping-cfg
+ #sed -i -e 's:PING_PROBE=/usr/local/httpd/mrtg/mrtg-ping-probe:PING_PROBE=/usr/bin/mrtg-ping-probe:' mrtg-ping-cfg
+ sed -i -e 's:#!/bin/perl:#!/usr/bin/perl:' mrtg-ping-probe
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install () {
+ dodoc ChangeLog INSTALL NEWS README TODO mrtg.cfg-ping
+ doman mrtg-ping-probe.1
+ dobin check-ping-fmt mrtg-ping-probe ${FILESDIR}/mrtg-ping-cfg
+}
+