--- mrtg-ping-probe-2.2.0.orig/mrtg-ping-probe +++ mrtg-ping-probe-2.2.0/mrtg-ping-probe @@ -1,4 +1,4 @@ -#!/bin/perl +#!/usr/bin/perl ################################################################## # @(#) $Id: mrtg-ping-probe,v 2.5 2003/09/13 18:04:29 pwo Exp $ # @(#) mrtg-ping-probe release $Name: Release_2_2_0 $ --- mrtg-ping-probe-2.2.0.orig/debian/copyright +++ mrtg-ping-probe-2.2.0/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Jonathan Oxer on +Mon, 14 Apr 2003 11:09:45 +1000. + +It was downloaded from +http://pwo.de/projects/mrtg/ + +Upstream Author: Peter W. Osel + +Copyright (C) 1998-2002 Peter W. Osel + +Distributed under the terms of the GNU Public Licence (GPL). + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with Debian system; see the file /usr/share/common-licenses/GPL-2. If not, +write to: + + Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. --- mrtg-ping-probe-2.2.0.orig/debian/rules +++ mrtg-ping-probe-2.2.0/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #/usr/bin/docbook-to-man debian/mrtg-ping-probe.sgml > mrtg-ping-probe.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/mrtg-ping-probe. + + install -m755 mrtg-ping-probe debian/mrtg-ping-probe/usr/bin/mrtg-ping-probe + #$(MAKE) install DESTDIR=$(CURDIR)/debian/mrtg-ping-probe + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs +# dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman -i debian/mrtg-ping-probe.1 + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install + +binary: binary-indep +.PHONY: build clean binary-indep binary install configure --- mrtg-ping-probe-2.2.0.orig/debian/dirs +++ mrtg-ping-probe-2.2.0/debian/dirs @@ -0,0 +1 @@ +usr/bin --- mrtg-ping-probe-2.2.0.orig/debian/compat +++ mrtg-ping-probe-2.2.0/debian/compat @@ -0,0 +1 @@ +4 --- mrtg-ping-probe-2.2.0.orig/debian/control +++ mrtg-ping-probe-2.2.0/debian/control @@ -0,0 +1,16 @@ +Source: mrtg-ping-probe +Section: net +Priority: optional +Maintainer: Jonathan Oxer +Build-Depends: debhelper (>> 4.0.0) +Build-Depends-Indep: perl (>=5.6.1) +Standards-Version: 3.8.0 + +Package: mrtg-ping-probe +Architecture: all +Depends: perl (>= 5.6.1), iputils-ping | ping, mrtg (>= 2) +Description: Ping module for Multi Router Traffic Grapher + mrtg-ping-probe is a ping probe for MRTG 2.x. It is used to monitor + the round trip time and packet loss to networked devices. MRTG uses + its output to generate graphs visualizing minimum and maximum round + trip times or packet loss. --- mrtg-ping-probe-2.2.0.orig/debian/mrtg-ping-probe.1 +++ mrtg-ping-probe-2.2.0/debian/mrtg-ping-probe.1 @@ -0,0 +1,81 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH MRTG-PING-PROBE 1 "April 14, 2003" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +mrtg-ping-probe \- ping probe module for Multi Router Traffic Grapher +.SH DESCRIPTION +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBmrtg-ping-probe\fP is a ping probe module for MRTG 2.x. It is used to +monitor the round trip time and packet loss to networked devices. MRTG +uses the output of mrtg-ping-probe to generate graphs visualizing minimum +and maximum round trip times or packet loss. +.PP +mrtg-ping-probe is not run directly, but is called by MRTG as a helper when +it needs to determine ping time to a host. +.PP +Act responsibly: do not use mrtg-ping-probe to ping devices without the +owner's permission. Just imagine if 10,000 people decided to ping +your hosts! mrtg-ping-probe is meant to be used within your network +to get round trip time performance figures for your network. +.SH OPTIONS +To use mrtg-ping-probe you need to configure MRTG to call it from within the +definition of a target host. This is done in the MRTG config file, which is +usually /etc/mrtg.conf. +.PP +Here's an example snippet: change the target name and IP address to suit your +needs. +.PP +Target[your.target.ping]: `/usr/bin/mrtg-ping-probe 123.456.789.123` +.br +SetEnv[your.target.ping]: MRTG_INT_IP="123.456.789.123" MRTG_INT_DESCR="ping" +.br +MaxBytes[your.target.ping]: 100 +.br +AbsMax[your.target.ping]: 200 +.br +Options[your.target.ping]: gauge, growright +.br +YLegend[your.target.ping]: ping time (ms) +.br +ShortLegend[your.target.ping]: ms +.br +Legend1[your.target.ping]: Maximum Round Trip Time in ms +.br +Legend2[your.target.ping]: Minimum Round Trip Time in ms +.br +Legend3[your.target.ping]: Maximal 5 Minute Maximum Round Trip Time in ms +.br +Legend4[your.target.ping]: Maximal 5 Minute Minimum Round Trip Time in ms +.br +LegendI[your.target.ping]:  Max: +.br +LegendO[your.target.ping]:  Min: +.PP +Pay close attention to the backticks in the first line which tell MRTG to +execute the nominated external program. Note also that you need to use the +"gauge" option, since the results of subsequent ping probes are independant +values and not an incrementing counter. +.SH SEE ALSO +.BR mrtg (1). +.PP +The latest release of mrtg-ping-probe can be found on the web at +http://pwo.de/projects/mrtg/ +.SH AUTHOR +This manual page was written by Jonathan Oxer , +for the Debian project (but may be used by others). --- mrtg-ping-probe-2.2.0.orig/debian/changelog +++ mrtg-ping-probe-2.2.0/debian/changelog @@ -0,0 +1,26 @@ +mrtg-ping-probe (2.2.0-1) unstable; urgency=low + + * New upstream release + * Raised Perl version requirement to 5.6.1 minimum + * Bugfix so ping process reliably killed + * Typo fixes in comments and messages + * Changed standards version to 3.8.0 + + -- Jonathan Oxer Wed, 17 Dec 2008 09:26:18 +1100 + +mrtg-ping-probe (2.1.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/control: Remove netkit-ping dependency, and replace with a + dependency on the ping virtual package. Closes: #383983. + + -- Roger Leigh Sun, 27 Aug 2006 23:52:43 +0100 + +mrtg-ping-probe (2.1.0-1) unstable; urgency=low + + * Initial release as a Debian package. Very clean: the only + change needed was to alter the path to the Perl interpreter. + Closes: #188516 + + -- Jonathan Oxer Mon, 14 Apr 2003 11:09:45 +1000 + --- mrtg-ping-probe-2.2.0.orig/debian/docs +++ mrtg-ping-probe-2.2.0/debian/docs @@ -0,0 +1,3 @@ +NEWS +README +TODO