diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer/mrtg-ping-probe/files | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-analyzer/mrtg-ping-probe/files')
-rw-r--r-- | net-analyzer/mrtg-ping-probe/files/mrtg-ping-cfg | 84 |
1 files changed, 84 insertions, 0 deletions
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 + |