diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/mrtg-ping-probe |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/mrtg-ping-probe')
-rw-r--r-- | net-analyzer/mrtg-ping-probe/Manifest | 6 | ||||
-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 | 33 |
4 files changed, 131 insertions, 0 deletions
diff --git a/net-analyzer/mrtg-ping-probe/Manifest b/net-analyzer/mrtg-ping-probe/Manifest new file mode 100644 index 000000000000..9d18b0673271 --- /dev/null +++ b/net-analyzer/mrtg-ping-probe/Manifest @@ -0,0 +1,6 @@ +AUX mrtg-ping-cfg 2077 SHA256 771bbe8321fa806c86b45b18c0c697a29702ec6b30f167d4b9f757f511ed0c95 SHA512 d4c9f651fff32b7bb417ae07700cc179c4db596270a9f2dba5ccef45992239b0f964ac7cf63478c3c12a02e02adf088b692a66740872ebc8da2edba376f7029c WHIRLPOOL 0ac1264c805aed848f1a2747ac28cc458effedcdcba9385bb7789a17c16c0848ce687edd27785e14ae8fd21543c0a1c869f3a9693b9c13582035f31745f31376 +DIST mrtg-ping-probe-2.2.0.tar.gz 36923 SHA256 2708459c1beb5ab482fa28ff62720f6a2d5707475d40e53a2829927572c96a0e SHA512 efc86ed732547359d8b2d94da367946d8b573e2b4d1b3d240b8eb7c5bfff17971848ad62c1448cdc0305393193d969361328448d9c9b25ae54866f71614b7cea WHIRLPOOL 22efb23198783551bdd65d5f23a5311958865440f78927743509555a5e44b157ed90b55ddfe6e334c02c2938d7b667144e126113eb3d52a610b25746e83f0335 +EBUILD mrtg-ping-probe-2.2.0.ebuild 726 SHA256 cba03591853032b85b08e59689d1485728bbe95e65c6cb96b44c97f17fde426b SHA512 9c754fa34ad2693bc994e5c16e5cf7022db7b29c813f41eecfcb85ab93ff4162e69541bdeb522b409fef1c7affbc901f2c326d78616a7d9bee6401cfa80ebd34 WHIRLPOOL 57274ed5e70eea1c153725cb56de7a8897a5fc64ad55526d97ff3810ca43776c80b0955329deab893207f161c3cca47831641cecdf920143e3ef54f5932b7050 +MISC ChangeLog 2477 SHA256 54e78a1d53856802d4b44c02fe772e974a0ccbf8b254edc1d4c4d73597dcdb85 SHA512 8d6dfb2565f2e74fb1ed33fab31258cc6dda20c483d15a69c23f0fe3d82fd94bcbfa59b879a2709bd477445c0a4139e104a2be1714aece2ba20bd1e76e8c01ce WHIRLPOOL 9cc2aee1ab2b9114a64a3c7a68bbf124fb06034565bf043315af7961eab690112e792c7b324e9b311822b38edf113756c81b463a3e128a230eab4359b6aff45a +MISC ChangeLog-2015 1187 SHA256 58692df68ff73dbf547e5a958e4477a814df7782b96d4fc7e4f3e152cd72fd47 SHA512 d85af9ae55f0682045b66981fbe4f7bd942751a4a082524d64bb4fa77aa67c2e7473cd2f8ea7abe21eb756a57936aec8b891d0bee8d7d130888e5126709ef609 WHIRLPOOL 66bbc629afe086b22c0e1a83d16ac2085da2100ebeffe31a837711c7b02c62cb70f95faaca8b82689bef40f4319b93f976e56e9d07723386fc313ca8b865c6be +MISC metadata.xml 276 SHA256 d15d6b6bd9ffc8a642c7469d01788ba9158efb4ca27fcf3324d9e52d1b70ec93 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 WHIRLPOOL 26b9e81575f613b751f76234013c30a8da84a1c0dd75c12b8df32706ee753691bbc889a2dec5001cc8c4b05c47aca49ed9fabbb5a6fefed74aaa86d6c3f56cee 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..74c2baebb4ec --- /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> +<maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> +</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..9ccb0a69e267 --- /dev/null +++ b/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="Addon mrtg contrib for stats ping/loss packets" +SRC_URI="ftp://ftp.pwo.de/pub/pwo/mrtg/${PN}/${P}.tar.gz" +HOMEPAGE="http://pwo.de/projects/mrtg/" + +KEYWORDS="~x86" +LICENSE="GPL-2" +SLOT="0" + +DEPEND="dev-lang/perl" +RDEPEND=" + ${DEPEND} + net-analyzer/mrtg +" + +src_prepare() { + sed -i check-ping-fmt \ + -e 's:#!/usr/local/bin/perl -w:#!/usr/bin/perl -w:' \ + || die + sed -i mrtg-ping-probe \ + -e 's:#!/bin/perl:#!/usr/bin/perl:' \ + || die +} + +src_install () { + dodoc ChangeLog NEWS README TODO mrtg.cfg-ping + doman mrtg-ping-probe.1 + dobin check-ping-fmt mrtg-ping-probe "${FILESDIR}"/mrtg-ping-cfg +} |