diff options
author | Markus Ullmann <jokey@gentoo.org> | 2006-05-31 07:32:36 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2006-05-31 07:32:36 +0000 |
commit | 9f7d3f6d45c8b1d87137b3342dc9ae448fb7d617 (patch) | |
tree | 4909f304cd51e37e61e8918e139503b374f407f1 /net-analyzer | |
parent | Added sparc stable keyword (diff) | |
download | historical-9f7d3f6d45c8b1d87137b3342dc9ae448fb7d617.tar.gz historical-9f7d3f6d45c8b1d87137b3342dc9ae448fb7d617.tar.bz2 historical-9f7d3f6d45c8b1d87137b3342dc9ae448fb7d617.zip |
Initial import, closing bug #54728, thanks to Molchanov Alexander <xorader@mail.ru>
Package-Manager: portage-2.1_rc1-r3
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/mrtg-ping-probe/ChangeLog | 10 | ||||
-rw-r--r-- | net-analyzer/mrtg-ping-probe/Manifest | 20 | ||||
-rw-r--r-- | net-analyzer/mrtg-ping-probe/files/digest-mrtg-ping-probe-2.2.0 | 3 | ||||
-rw-r--r-- | net-analyzer/mrtg-ping-probe/files/mrtg-ping-cfg | 84 | ||||
-rw-r--r-- | net-analyzer/mrtg-ping-probe/metadata.xml | 8 | ||||
-rw-r--r-- | net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild | 34 |
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..424418935855 --- /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 1114 RMD160 5749760944a1a34b40491be0e28da7d79641fafa SHA1 1e22ab63b04fd5fd7f4a15e728e5ebf1f44be9e7 SHA256 b9c6fd4480c8ea6d7fb170d373b123ffc51f9af08b105917b2c057fac9bee4ef size 1114 +MD5 da79a5f06fd0048c1e80bcaca4344cf8 mrtg-ping-probe-2.2.0.ebuild 1114 +RMD160 5749760944a1a34b40491be0e28da7d79641fafa mrtg-ping-probe-2.2.0.ebuild 1114 +SHA256 b9c6fd4480c8ea6d7fb170d373b123ffc51f9af08b105917b2c057fac9bee4ef mrtg-ping-probe-2.2.0.ebuild 1114 +MISC ChangeLog 472 RMD160 af6d5a8604089cb3859262dac5b63dc25f287d7b SHA1 3aeaa8ca158f05f22011181387fa3aba8e8f941f SHA256 5b50762e3e09a78b52b7169bcc35a8eda37d15fc8b9b6deb3b9f4cbd71593df7 size 472 +MD5 658b010c0390cc8b55217472aad441e1 ChangeLog 472 +RMD160 af6d5a8604089cb3859262dac5b63dc25f287d7b ChangeLog 472 +SHA256 5b50762e3e09a78b52b7169bcc35a8eda37d15fc8b9b6deb3b9f4cbd71593df7 ChangeLog 472 +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=" Max:" + LegendO=" 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=" % loss:" + LegendO=" % 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 +} + |