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/mrtg-ping-probe/files | |
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/mrtg-ping-probe/files')
-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 |
2 files changed, 87 insertions, 0 deletions
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 + |