commit
This commit is contained in:
22
debian/smokeping/usr/share/doc/smokeping/README.Debian
vendored
Normal file
22
debian/smokeping/usr/share/doc/smokeping/README.Debian
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
After installing the package you have to edit the files in
|
||||
/etc/smokeping/config.d to set your preferences.
|
||||
|
||||
Note that the domain names are bogus to avoid all the people who
|
||||
install the package DoSing the same servers, but at the same time an
|
||||
fping probe in localhost is enabled, so you can check if smokeping
|
||||
works for you.
|
||||
|
||||
You can also edit the file /etc/smokeping/basepage.html to suit your
|
||||
needs.
|
||||
|
||||
A FastCGI configuration might be desirable for large sites. Simply add
|
||||
this to the Apache configuration, in /etc/apache2/conf-available/smokeping.conf:
|
||||
|
||||
<Location /smokeping/smokeping.cgi>
|
||||
SetHandler fcgid-script
|
||||
</Location>
|
||||
|
||||
Please refer to the smokeping_config man page to see all the available
|
||||
options.
|
||||
|
||||
-- Antoine Beaupré <anarcat@debian.org>, Sat, 12 May 2018 16:02:25 -0400
|
||||
36
debian/smokeping/usr/share/doc/smokeping/README.md
vendored
Normal file
36
debian/smokeping/usr/share/doc/smokeping/README.md
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
```
|
||||
____ _ ____ _
|
||||
/ ___| _ __ ___ ___ | | _____| _ \(_)_ __ __ _
|
||||
\___ \| '_ ` _ \ / _ \| |/ / _ \ |_) | | '_ \ / _` |
|
||||
___) | | | | | | (_) | < __/ __/| | | | | (_| |
|
||||
|____/|_| |_| |_|\___/|_|\_\___|_| |_|_| |_|\__, |
|
||||
|___/
|
||||
```
|
||||
|
||||
Original Authors: Tobias Oetiker <tobi of oetiker.ch> and Niko Tyni <ntyni with iki.fi>
|
||||
|
||||
[](https://github.com/oetiker/SmokePing/actions/workflows/build-test.yaml)
|
||||
|
||||
SmokePing is a latency logging and graphing and
|
||||
alerting system. It consists of a daemon process which
|
||||
organizes the latency measurements and a CGI which
|
||||
presents the graphs.
|
||||
|
||||
SmokePing is ...
|
||||
================
|
||||
|
||||
* extensible through plug-in modules
|
||||
|
||||
* easy to customize through a webtemplate and an extensive
|
||||
configuration file.
|
||||
|
||||
* written in perl and should readily port to any unix system
|
||||
|
||||
* an RRDtool frontend
|
||||
|
||||
* able to deal with DYNAMIC IP addresses as used with
|
||||
Cable and ADSL internet.
|
||||
|
||||
|
||||
cheers
|
||||
tobi
|
||||
12
debian/smokeping/usr/share/doc/smokeping/TODO.Debian
vendored
Normal file
12
debian/smokeping/usr/share/doc/smokeping/TODO.Debian
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
The following issues need to be fixed:
|
||||
|
||||
* fast-cgi should be default
|
||||
* review upstream changes since last release, esp. config changes
|
||||
* do not prompt for modifications on the files:
|
||||
- Slaves
|
||||
- General
|
||||
- basepage.html
|
||||
- this is very hard. we would need to fix the checksum in
|
||||
/var/lib/dpkg/status, which doesn't seem to be doable
|
||||
programmatically. See dpkg/src/configure.c:336 to see how this
|
||||
works better.
|
||||
BIN
debian/smokeping/usr/share/doc/smokeping/changelog.Debian.gz
vendored
Normal file
BIN
debian/smokeping/usr/share/doc/smokeping/changelog.Debian.gz
vendored
Normal file
Binary file not shown.
BIN
debian/smokeping/usr/share/doc/smokeping/changelog.gz
vendored
Normal file
BIN
debian/smokeping/usr/share/doc/smokeping/changelog.gz
vendored
Normal file
Binary file not shown.
156
debian/smokeping/usr/share/doc/smokeping/copyright
vendored
Normal file
156
debian/smokeping/usr/share/doc/smokeping/copyright
vendored
Normal file
@@ -0,0 +1,156 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: SmokePing
|
||||
Source: https://github.com/oetiker/SmokePing
|
||||
Comment:
|
||||
The upstream source tarball is repacked to drop vendored javascript libraries.
|
||||
Files-Excluded:
|
||||
htdocs/js/cropper/*
|
||||
htdocs/js/prototype.js
|
||||
htdocs/js/scriptaculous/*
|
||||
|
||||
Files: *
|
||||
Copyright: 2001-2005 Tobias Oetiker <tobi@oetiker.ch>
|
||||
License: GPL-2+
|
||||
|
||||
Files: bin/tSmoke
|
||||
Copyright: 2003 by Dan McGinn-Combs. All right reserved.
|
||||
License: GPL-2+
|
||||
|
||||
Files: lib/Smokeping/Examples.pm lib/Smokeping/RRDtools.pm
|
||||
Copyright: 2005 by Niko Tyni.
|
||||
License: GPL-2+
|
||||
|
||||
Files: lib/Smokeping/matchers/Avgratio.pm lib/Smokeping/matchers/Median.pm lib/Smokeping/matchers/base.pm
|
||||
Copyright: 2004 by OETIKER+PARTNER AG. All rights reserved.
|
||||
License: GPL-2+
|
||||
|
||||
Files: lib/Smokeping/matchers/CheckLatency.pm lib/Smokeping/matchers/CheckLoss.pm
|
||||
Copyright: 2006 Dylan C Vanderhoof, Semaphore Corporation
|
||||
License: GPL-2+
|
||||
|
||||
Files: lib/BER.pm lib/SNMP_Session.pm
|
||||
Copyright: 1995-2008, Simon Leinen.
|
||||
.
|
||||
This program is free software; you can redistribute it under the
|
||||
"Artistic License 2.0" included in this distribution
|
||||
(file "Artistic").
|
||||
License: Artistic-2.0
|
||||
Comment: These files are not used in the Debian version. The mentioned
|
||||
"Artistic" license file is not present in the source repository.
|
||||
|
||||
Files: debian/*
|
||||
Copyright: Wed, 13 Feb 2002 23:11:07 +0100 Jose Carlos Garcia Sogo <jsogo@debian.org>
|
||||
2018-2020 Gabriel Filion <gabster@lelutin.ca>
|
||||
License: GPL-2+
|
||||
Comment: The copyright mention was not updated throughout the years and there
|
||||
are more authors and contributors that donated their time to maintaining those
|
||||
files.
|
||||
|
||||
License: GPL-2+
|
||||
On Debian systems, the full text of the GNU General Public
|
||||
License version 2 can be found in the file
|
||||
`/usr/share/common-licenses/GPL-2'.
|
||||
|
||||
License: Artistic-2.0
|
||||
Copyright (c) 2000-2006, The Perl Foundation.
|
||||
.
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
Preamble
|
||||
.
|
||||
This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software.
|
||||
.
|
||||
You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement.
|
||||
Definitions
|
||||
.
|
||||
"Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package.
|
||||
.
|
||||
"Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures.
|
||||
.
|
||||
"You" and "your" means any person who would like to copy, distribute, or modify the Package.
|
||||
.
|
||||
"Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version.
|
||||
.
|
||||
"Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization.
|
||||
.
|
||||
"Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees.
|
||||
.
|
||||
"Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder.
|
||||
.
|
||||
"Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder.
|
||||
.
|
||||
"Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future.
|
||||
.
|
||||
"Source" form means the source code, documentation source, and configuration files for the Package.
|
||||
.
|
||||
"Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form.
|
||||
Permission for Use and Modification Without Distribution
|
||||
.
|
||||
(1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version.
|
||||
Permissions for Redistribution of the Standard Version
|
||||
.
|
||||
(2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package.
|
||||
.
|
||||
(3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License.
|
||||
Distribution of Modified Versions of the Package as Source
|
||||
.
|
||||
(4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following:
|
||||
.
|
||||
(a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version.
|
||||
(b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version.
|
||||
(c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under
|
||||
(i) the Original License or
|
||||
(ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed.
|
||||
Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source
|
||||
.
|
||||
(5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license.
|
||||
.
|
||||
(6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version.
|
||||
Aggregating or Linking the Package
|
||||
.
|
||||
(7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation.
|
||||
.
|
||||
(8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package.
|
||||
Items That are Not Considered Part of a Modified Version
|
||||
.
|
||||
(9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license.
|
||||
General Provisions
|
||||
.
|
||||
(10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license.
|
||||
.
|
||||
(11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license.
|
||||
.
|
||||
(12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder.
|
||||
.
|
||||
(13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed.
|
||||
.
|
||||
(14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
License: BSD-3-clause
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
.
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the David Spurr nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
.
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.
|
||||
http://www.opensource.org/licenses/bsd-license.php
|
||||
|
||||
License: Expat
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
241
debian/smokeping/usr/share/doc/smokeping/examples/config.echoping
vendored
Normal file
241
debian/smokeping/usr/share/doc/smokeping/examples/config.echoping
vendored
Normal file
@@ -0,0 +1,241 @@
|
||||
# This Smokeping example configuration file was automatically generated.
|
||||
#
|
||||
# Everything up to the Probes section is derived from a common template file.
|
||||
# See the Probes and Targets sections for the actual example.
|
||||
#
|
||||
# This example is included in the smokeping_examples document.
|
||||
|
||||
*** General ***
|
||||
|
||||
owner = Peter Random
|
||||
contact = some@address.nowhere
|
||||
mailhost = my.mail.host
|
||||
sendmail = /usr/sbin/sendmail
|
||||
# NOTE: do not put the Image Cache below cgi-bin
|
||||
# since all files under cgi-bin will be executed ... this is not
|
||||
# good for images.
|
||||
imgcache = /usr/cache
|
||||
imgurl = cache
|
||||
datadir = /usr/data
|
||||
piddir = /usr/var
|
||||
cgiurl = http://some.url/smokeping.cgi
|
||||
smokemail = /usr/etc/smokemail.dist
|
||||
tmail = /usr/etc/tmail.dist
|
||||
# specify this to get syslog logging
|
||||
syslogfacility = local0
|
||||
# each probe is now run in its own process
|
||||
# disable this to revert to the old behaviour
|
||||
# concurrentprobes = no
|
||||
|
||||
*** Alerts ***
|
||||
to = alertee@address.somewhere
|
||||
from = smokealert@company.xy
|
||||
|
||||
+someloss
|
||||
type = loss
|
||||
# in percent
|
||||
pattern = >0%,*12*,>0%,*12*,>0%
|
||||
comment = loss 3 times in a row
|
||||
|
||||
*** Database ***
|
||||
|
||||
step = 300
|
||||
pings = 20
|
||||
|
||||
# consfn mrhb steps total
|
||||
|
||||
AVERAGE 0.5 1 28800
|
||||
AVERAGE 0.5 12 9600
|
||||
MIN 0.5 12 9600
|
||||
MAX 0.5 12 9600
|
||||
AVERAGE 0.5 144 2400
|
||||
MAX 0.5 144 2400
|
||||
MIN 0.5 144 2400
|
||||
|
||||
*** Presentation ***
|
||||
|
||||
template = /usr/etc/basepage.html.dist
|
||||
htmltitle = yes
|
||||
graphborders = no
|
||||
# If enabled, treat all filter menu queries as literal strings instead of regex
|
||||
literalsearch = no
|
||||
|
||||
+ charts
|
||||
|
||||
menu = Charts
|
||||
title = The most interesting destinations
|
||||
|
||||
++ stddev
|
||||
sorter = StdDev(entries=>4)
|
||||
title = Top Standard Deviation
|
||||
menu = Std Deviation
|
||||
format = Standard Deviation %f
|
||||
|
||||
++ max
|
||||
sorter = Max(entries=>5)
|
||||
title = Top Max Roundtrip Time
|
||||
menu = by Max
|
||||
format = Max Roundtrip Time %f seconds
|
||||
|
||||
++ loss
|
||||
sorter = Loss(entries=>5)
|
||||
title = Top Packet Loss
|
||||
menu = Loss
|
||||
format = Packets Lost %f
|
||||
|
||||
++ median
|
||||
sorter = Median(entries=>5)
|
||||
title = Top Median Roundtrip Time
|
||||
menu = by Median
|
||||
format = Median RTT %f seconds
|
||||
|
||||
+ overview
|
||||
|
||||
width = 600
|
||||
height = 50
|
||||
range = 10h
|
||||
|
||||
+ detail
|
||||
|
||||
width = 600
|
||||
height = 200
|
||||
unison_tolerance = 2
|
||||
|
||||
"Last 3 Hours" 3h
|
||||
"Last 30 Hours" 30h
|
||||
"Last 10 Days" 10d
|
||||
"Last 360 Days" 360d
|
||||
|
||||
#+ hierarchies
|
||||
#++ owner
|
||||
#title = Host Owner
|
||||
#++ location
|
||||
#title = Location
|
||||
|
||||
# (The actual example starts here.)
|
||||
|
||||
*** Probes ***
|
||||
|
||||
# This example shows most of the echoping-derived probes in action.
|
||||
|
||||
+ FPing
|
||||
binary = /usr/bin/fping
|
||||
|
||||
# these expect to find echoping in /usr/bin
|
||||
# if not, you'll have to specify the location separately for each probe
|
||||
# + EchoPing # uses TCP or UDP echo (port 7)
|
||||
# + EchoPingDiscard # uses TCP or UDP discard (port 9)
|
||||
# + EchoPingChargen # uses TCP chargen (port 19)
|
||||
+ EchoPingSmtp # SMTP (25/tcp) for mail servers
|
||||
+ EchoPingHttps # HTTPS (443/tcp) for web servers
|
||||
+ EchoPingHttp # HTTP (80/tcp) for web servers and caches
|
||||
+ EchoPingIcp # ICP (3130/udp) for caches
|
||||
# these need at least echoping 6 with the corresponding plugins
|
||||
+ EchoPingDNS # DNS (53/udp or tcp) servers
|
||||
+ EchoPingLDAP # LDAP (389/tcp) servers
|
||||
+ EchoPingWhois # Whois (43/tcp) servers
|
||||
|
||||
*** Targets ***
|
||||
|
||||
# All the servers are pinged both with ICMP (the FPing probe)
|
||||
# and their respective echoping probe. The proxy server, www-cache,
|
||||
# is probed with both HTTP requests and ICP requests for the same
|
||||
# URL.
|
||||
|
||||
# default probe
|
||||
probe = FPing
|
||||
|
||||
menu = Top
|
||||
title = Network Latency Grapher
|
||||
remark = Welcome to this SmokePing website.
|
||||
|
||||
+ MyServers
|
||||
|
||||
menu = My Servers
|
||||
title = My Servers
|
||||
|
||||
++ www-server
|
||||
menu = www-server
|
||||
title = Web Server (www-server) / ICMP
|
||||
# probe = FPing propagated from top
|
||||
host = www-server.example
|
||||
|
||||
+++ http
|
||||
menu = http
|
||||
title = Web Server (www-server) / HTTP
|
||||
probe = EchoPingHttp
|
||||
host = www-server.example
|
||||
# default url is /
|
||||
|
||||
+++ https
|
||||
menu = https
|
||||
title = Web Server (www-server) / HTTPS
|
||||
probe = EchoPingHttps
|
||||
host = www-server.example
|
||||
|
||||
++ cache
|
||||
menu = www-cache
|
||||
title = Web Cache (www-cache) / ICMP
|
||||
host = www-cache.example
|
||||
|
||||
+++ http
|
||||
menu = http
|
||||
title = www-cache / HTTP
|
||||
probe = EchoPingHttp
|
||||
host = www-cache.example
|
||||
port = 8080 # use the squid port
|
||||
url = http://www.somehost.example/
|
||||
|
||||
+++ icp
|
||||
menu = icp
|
||||
title = www-cache / ICP
|
||||
probe = EchoPingIcp
|
||||
host = www-cache.example
|
||||
url = http://www.somehost.example/
|
||||
|
||||
++ mail
|
||||
menu = mail-server
|
||||
title = Mail Server (mail-server) / ICMP
|
||||
host = mail-server.example
|
||||
|
||||
+++ smtp
|
||||
menu = mail-server / SMTP
|
||||
title = Mail Server (mail-server) / SMTP
|
||||
probe = EchoPingSmtp
|
||||
host = mail-server.example
|
||||
|
||||
++ ldap-server
|
||||
menu = ldap-server
|
||||
title = ldap-server / ICMP
|
||||
host = ldap-server.example
|
||||
|
||||
+++ ldap
|
||||
menu = ldap-server / LDAP
|
||||
title = LDAP Server (ldap-server) / LDAP
|
||||
probe = EchoPingLDAP
|
||||
ldap_request = (objectclass=*)
|
||||
host = ldap-server.example
|
||||
|
||||
++ name-server
|
||||
menu = name-server
|
||||
title = name-server / ICMP
|
||||
host = name-server.example
|
||||
|
||||
+++ DNS
|
||||
menu = name-server / DNS
|
||||
title = DNS Server (name-server) / DNS
|
||||
probe = EchoPingDNS
|
||||
dns_request = name.example
|
||||
host = name-server.example
|
||||
|
||||
++ whois-server
|
||||
menu = whois-server
|
||||
title = whois-server / ICMP
|
||||
host = whois-server.example
|
||||
|
||||
+++ Whois
|
||||
menu = whois-server / Whois
|
||||
title = Whois Server (whois-server) / Whois
|
||||
probe = EchoPingWhois
|
||||
whois_request = domain.example
|
||||
host = whois-server.example
|
||||
185
debian/smokeping/usr/share/doc/smokeping/examples/config.fping-instances
vendored
Normal file
185
debian/smokeping/usr/share/doc/smokeping/examples/config.fping-instances
vendored
Normal file
@@ -0,0 +1,185 @@
|
||||
# This Smokeping example configuration file was automatically generated.
|
||||
#
|
||||
# Everything up to the Probes section is derived from a common template file.
|
||||
# See the Probes and Targets sections for the actual example.
|
||||
#
|
||||
# This example is included in the smokeping_examples document.
|
||||
|
||||
*** General ***
|
||||
|
||||
owner = Peter Random
|
||||
contact = some@address.nowhere
|
||||
mailhost = my.mail.host
|
||||
sendmail = /usr/sbin/sendmail
|
||||
# NOTE: do not put the Image Cache below cgi-bin
|
||||
# since all files under cgi-bin will be executed ... this is not
|
||||
# good for images.
|
||||
imgcache = /usr/cache
|
||||
imgurl = cache
|
||||
datadir = /usr/data
|
||||
piddir = /usr/var
|
||||
cgiurl = http://some.url/smokeping.cgi
|
||||
smokemail = /usr/etc/smokemail.dist
|
||||
tmail = /usr/etc/tmail.dist
|
||||
# specify this to get syslog logging
|
||||
syslogfacility = local0
|
||||
# each probe is now run in its own process
|
||||
# disable this to revert to the old behaviour
|
||||
# concurrentprobes = no
|
||||
|
||||
*** Alerts ***
|
||||
to = alertee@address.somewhere
|
||||
from = smokealert@company.xy
|
||||
|
||||
+someloss
|
||||
type = loss
|
||||
# in percent
|
||||
pattern = >0%,*12*,>0%,*12*,>0%
|
||||
comment = loss 3 times in a row
|
||||
|
||||
*** Database ***
|
||||
|
||||
step = 300
|
||||
pings = 20
|
||||
|
||||
# consfn mrhb steps total
|
||||
|
||||
AVERAGE 0.5 1 28800
|
||||
AVERAGE 0.5 12 9600
|
||||
MIN 0.5 12 9600
|
||||
MAX 0.5 12 9600
|
||||
AVERAGE 0.5 144 2400
|
||||
MAX 0.5 144 2400
|
||||
MIN 0.5 144 2400
|
||||
|
||||
*** Presentation ***
|
||||
|
||||
template = /usr/etc/basepage.html.dist
|
||||
htmltitle = yes
|
||||
graphborders = no
|
||||
# If enabled, treat all filter menu queries as literal strings instead of regex
|
||||
literalsearch = no
|
||||
|
||||
+ charts
|
||||
|
||||
menu = Charts
|
||||
title = The most interesting destinations
|
||||
|
||||
++ stddev
|
||||
sorter = StdDev(entries=>4)
|
||||
title = Top Standard Deviation
|
||||
menu = Std Deviation
|
||||
format = Standard Deviation %f
|
||||
|
||||
++ max
|
||||
sorter = Max(entries=>5)
|
||||
title = Top Max Roundtrip Time
|
||||
menu = by Max
|
||||
format = Max Roundtrip Time %f seconds
|
||||
|
||||
++ loss
|
||||
sorter = Loss(entries=>5)
|
||||
title = Top Packet Loss
|
||||
menu = Loss
|
||||
format = Packets Lost %f
|
||||
|
||||
++ median
|
||||
sorter = Median(entries=>5)
|
||||
title = Top Median Roundtrip Time
|
||||
menu = by Median
|
||||
format = Median RTT %f seconds
|
||||
|
||||
+ overview
|
||||
|
||||
width = 600
|
||||
height = 50
|
||||
range = 10h
|
||||
|
||||
+ detail
|
||||
|
||||
width = 600
|
||||
height = 200
|
||||
unison_tolerance = 2
|
||||
|
||||
"Last 3 Hours" 3h
|
||||
"Last 30 Hours" 30h
|
||||
"Last 10 Days" 10d
|
||||
"Last 360 Days" 360d
|
||||
|
||||
#+ hierarchies
|
||||
#++ owner
|
||||
#title = Host Owner
|
||||
#++ location
|
||||
#title = Location
|
||||
|
||||
# (The actual example starts here.)
|
||||
|
||||
*** Probes ***
|
||||
|
||||
# This example demonstrates the concept of probe instances. The FPingLarge
|
||||
# and FPingNormal probes are independent of each other, they just use
|
||||
# the same module, FPing. FPingNormal uses the default parameters, and
|
||||
# so does FPingLarge except for the 5 kilobyte packetsize. Both use the
|
||||
# same fping binary, and its path is configured FPing top section.
|
||||
#
|
||||
# The 'offset' parameters make sure the probes don't run at the same time -
|
||||
# FPingNormal is run every 'full' 5 minutes (eg. 8:00, 8:05, 8:10 and so on,
|
||||
# in wallclock time) while FPingLarge is run halfway through these intervals
|
||||
# (eg. 8:02:30, 8:07:30 etc.)
|
||||
#
|
||||
# The top FPing section does not define a probe in itself because it
|
||||
# has subsections. If we really wanted to have one probe named "FPing",
|
||||
# we could do so by making a subsection by that name.
|
||||
|
||||
+ FPing
|
||||
binary = /usr/bin/fping
|
||||
|
||||
++ FPingNormal
|
||||
offset = 0%
|
||||
|
||||
++ FPingLarge
|
||||
packetsize = 5000
|
||||
offset = 50%
|
||||
|
||||
*** Targets ***
|
||||
|
||||
# The target section shows two host, myhost1.example and myhost2.example,
|
||||
# being pinged with two differently sized ICMP packets. This time the tree
|
||||
# is divided by the target host rather than the probe.
|
||||
|
||||
probe = FPingNormal
|
||||
menu = Top
|
||||
title = Network Latency Grapher
|
||||
remark = Welcome to this SmokePing website.
|
||||
|
||||
+ network
|
||||
menu = Net latency
|
||||
title = Network latency (ICMP pings)
|
||||
|
||||
++ myhost1
|
||||
menu = myhost1
|
||||
title = ICMP latency for myhost1
|
||||
|
||||
+++ normal
|
||||
title = Normal packetsize (56 bytes)
|
||||
probe = FPingNormal
|
||||
host = myhost1.example
|
||||
|
||||
+++ large
|
||||
title = Large packetsize (5000 bytes)
|
||||
probe = FPingLarge
|
||||
host = myhost1.example
|
||||
|
||||
++ myhost2
|
||||
menu = myhost2
|
||||
title = ICMP latency for myhost2
|
||||
|
||||
+++ normal
|
||||
title = Normal packetsize (56 bytes)
|
||||
probe = FPingNormal
|
||||
host = myhost2.example
|
||||
|
||||
+++ large
|
||||
title = Large packetsize (5000 bytes)
|
||||
probe = FPingLarge
|
||||
host = myhost2.example
|
||||
189
debian/smokeping/usr/share/doc/smokeping/examples/config.multiple-probes
vendored
Normal file
189
debian/smokeping/usr/share/doc/smokeping/examples/config.multiple-probes
vendored
Normal file
@@ -0,0 +1,189 @@
|
||||
# This Smokeping example configuration file was automatically generated.
|
||||
#
|
||||
# Everything up to the Probes section is derived from a common template file.
|
||||
# See the Probes and Targets sections for the actual example.
|
||||
#
|
||||
# This example is included in the smokeping_examples document.
|
||||
|
||||
*** General ***
|
||||
|
||||
owner = Peter Random
|
||||
contact = some@address.nowhere
|
||||
mailhost = my.mail.host
|
||||
sendmail = /usr/sbin/sendmail
|
||||
# NOTE: do not put the Image Cache below cgi-bin
|
||||
# since all files under cgi-bin will be executed ... this is not
|
||||
# good for images.
|
||||
imgcache = /usr/cache
|
||||
imgurl = cache
|
||||
datadir = /usr/data
|
||||
piddir = /usr/var
|
||||
cgiurl = http://some.url/smokeping.cgi
|
||||
smokemail = /usr/etc/smokemail.dist
|
||||
tmail = /usr/etc/tmail.dist
|
||||
# specify this to get syslog logging
|
||||
syslogfacility = local0
|
||||
# each probe is now run in its own process
|
||||
# disable this to revert to the old behaviour
|
||||
# concurrentprobes = no
|
||||
|
||||
*** Alerts ***
|
||||
to = alertee@address.somewhere
|
||||
from = smokealert@company.xy
|
||||
|
||||
+someloss
|
||||
type = loss
|
||||
# in percent
|
||||
pattern = >0%,*12*,>0%,*12*,>0%
|
||||
comment = loss 3 times in a row
|
||||
|
||||
*** Database ***
|
||||
|
||||
step = 300
|
||||
pings = 20
|
||||
|
||||
# consfn mrhb steps total
|
||||
|
||||
AVERAGE 0.5 1 28800
|
||||
AVERAGE 0.5 12 9600
|
||||
MIN 0.5 12 9600
|
||||
MAX 0.5 12 9600
|
||||
AVERAGE 0.5 144 2400
|
||||
MAX 0.5 144 2400
|
||||
MIN 0.5 144 2400
|
||||
|
||||
*** Presentation ***
|
||||
|
||||
template = /usr/etc/basepage.html.dist
|
||||
htmltitle = yes
|
||||
graphborders = no
|
||||
# If enabled, treat all filter menu queries as literal strings instead of regex
|
||||
literalsearch = no
|
||||
|
||||
+ charts
|
||||
|
||||
menu = Charts
|
||||
title = The most interesting destinations
|
||||
|
||||
++ stddev
|
||||
sorter = StdDev(entries=>4)
|
||||
title = Top Standard Deviation
|
||||
menu = Std Deviation
|
||||
format = Standard Deviation %f
|
||||
|
||||
++ max
|
||||
sorter = Max(entries=>5)
|
||||
title = Top Max Roundtrip Time
|
||||
menu = by Max
|
||||
format = Max Roundtrip Time %f seconds
|
||||
|
||||
++ loss
|
||||
sorter = Loss(entries=>5)
|
||||
title = Top Packet Loss
|
||||
menu = Loss
|
||||
format = Packets Lost %f
|
||||
|
||||
++ median
|
||||
sorter = Median(entries=>5)
|
||||
title = Top Median Roundtrip Time
|
||||
menu = by Median
|
||||
format = Median RTT %f seconds
|
||||
|
||||
+ overview
|
||||
|
||||
width = 600
|
||||
height = 50
|
||||
range = 10h
|
||||
|
||||
+ detail
|
||||
|
||||
width = 600
|
||||
height = 200
|
||||
unison_tolerance = 2
|
||||
|
||||
"Last 3 Hours" 3h
|
||||
"Last 30 Hours" 30h
|
||||
"Last 10 Days" 10d
|
||||
"Last 360 Days" 360d
|
||||
|
||||
#+ hierarchies
|
||||
#++ owner
|
||||
#title = Host Owner
|
||||
#++ location
|
||||
#title = Location
|
||||
|
||||
# (The actual example starts here.)
|
||||
|
||||
*** Probes ***
|
||||
|
||||
# Here we have three probes: FPing for the regular ICMP pings,
|
||||
# DNS for name server latency measurement and EchoPingHttp
|
||||
# for web servers.
|
||||
#
|
||||
# The FPing probe runs with the default parameters, except that the ICMP
|
||||
# packet size is 1000 bytes instead of the default 56 bytes.
|
||||
#
|
||||
# The DNS and EchoPingHttp probes have been configured to be a bit more
|
||||
# gentle with the servers, as they only do 5 queries (pings) instead of the
|
||||
# default 20 (or whatever is specified in the Database section). However,
|
||||
# DNS queries are made more often: 5 queries every 3 minutes instead of
|
||||
# every 5 minutes.
|
||||
|
||||
+ FPing
|
||||
binary = /usr/bin/fping
|
||||
packetsize = 1000
|
||||
|
||||
+ DNS
|
||||
binary = /usr/bin/dig
|
||||
lookup = name.example
|
||||
pings = 5
|
||||
step = 180
|
||||
|
||||
+ EchoPingHttp
|
||||
pings = 5
|
||||
url = /test-url
|
||||
|
||||
*** Targets ***
|
||||
|
||||
# The target tree has been divided by the probe used. This does not have
|
||||
# to be the case: every target (sub)section can use a different probe,
|
||||
# and the same probe can be used in different parts of the config tree.
|
||||
|
||||
probe = FPing
|
||||
menu = Top
|
||||
title = Network Latency Grapher
|
||||
remark = Welcome to this SmokePing website.
|
||||
|
||||
+ network
|
||||
menu = Net latency
|
||||
title = Network latency (ICMP pings)
|
||||
|
||||
++ myhost1
|
||||
host = myhost1.example
|
||||
++ myhost2
|
||||
host = myhost2.example
|
||||
|
||||
+ services
|
||||
menu = Service latency
|
||||
title = Service latency (DNS, HTTP)
|
||||
|
||||
++ DNS
|
||||
probe = DNS
|
||||
menu = DNS latency
|
||||
title = Service latency (DNS)
|
||||
|
||||
+++ dns1
|
||||
host = dns1.example
|
||||
|
||||
+++ dns2
|
||||
host = dns2.example
|
||||
|
||||
++ HTTP
|
||||
menu = HTTP latency
|
||||
title = Service latency (HTTP)
|
||||
|
||||
+++ www1
|
||||
host = www1.example
|
||||
|
||||
+++ www2
|
||||
host = www2.example
|
||||
156
debian/smokeping/usr/share/doc/smokeping/examples/config.simple
vendored
Normal file
156
debian/smokeping/usr/share/doc/smokeping/examples/config.simple
vendored
Normal file
@@ -0,0 +1,156 @@
|
||||
# This Smokeping example configuration file was automatically generated.
|
||||
#
|
||||
# Everything up to the Probes section is derived from a common template file.
|
||||
# See the Probes and Targets sections for the actual example.
|
||||
#
|
||||
# This example is included in the smokeping_examples document.
|
||||
|
||||
*** General ***
|
||||
|
||||
owner = Peter Random
|
||||
contact = some@address.nowhere
|
||||
mailhost = my.mail.host
|
||||
sendmail = /usr/sbin/sendmail
|
||||
# NOTE: do not put the Image Cache below cgi-bin
|
||||
# since all files under cgi-bin will be executed ... this is not
|
||||
# good for images.
|
||||
imgcache = /usr/cache
|
||||
imgurl = cache
|
||||
datadir = /usr/data
|
||||
piddir = /usr/var
|
||||
cgiurl = http://some.url/smokeping.cgi
|
||||
smokemail = /usr/etc/smokemail.dist
|
||||
tmail = /usr/etc/tmail.dist
|
||||
# specify this to get syslog logging
|
||||
syslogfacility = local0
|
||||
# each probe is now run in its own process
|
||||
# disable this to revert to the old behaviour
|
||||
# concurrentprobes = no
|
||||
|
||||
*** Alerts ***
|
||||
to = alertee@address.somewhere
|
||||
from = smokealert@company.xy
|
||||
|
||||
+someloss
|
||||
type = loss
|
||||
# in percent
|
||||
pattern = >0%,*12*,>0%,*12*,>0%
|
||||
comment = loss 3 times in a row
|
||||
|
||||
*** Database ***
|
||||
|
||||
step = 300
|
||||
pings = 20
|
||||
|
||||
# consfn mrhb steps total
|
||||
|
||||
AVERAGE 0.5 1 28800
|
||||
AVERAGE 0.5 12 9600
|
||||
MIN 0.5 12 9600
|
||||
MAX 0.5 12 9600
|
||||
AVERAGE 0.5 144 2400
|
||||
MAX 0.5 144 2400
|
||||
MIN 0.5 144 2400
|
||||
|
||||
*** Presentation ***
|
||||
|
||||
template = /usr/etc/basepage.html.dist
|
||||
htmltitle = yes
|
||||
graphborders = no
|
||||
# If enabled, treat all filter menu queries as literal strings instead of regex
|
||||
literalsearch = no
|
||||
|
||||
+ charts
|
||||
|
||||
menu = Charts
|
||||
title = The most interesting destinations
|
||||
|
||||
++ stddev
|
||||
sorter = StdDev(entries=>4)
|
||||
title = Top Standard Deviation
|
||||
menu = Std Deviation
|
||||
format = Standard Deviation %f
|
||||
|
||||
++ max
|
||||
sorter = Max(entries=>5)
|
||||
title = Top Max Roundtrip Time
|
||||
menu = by Max
|
||||
format = Max Roundtrip Time %f seconds
|
||||
|
||||
++ loss
|
||||
sorter = Loss(entries=>5)
|
||||
title = Top Packet Loss
|
||||
menu = Loss
|
||||
format = Packets Lost %f
|
||||
|
||||
++ median
|
||||
sorter = Median(entries=>5)
|
||||
title = Top Median Roundtrip Time
|
||||
menu = by Median
|
||||
format = Median RTT %f seconds
|
||||
|
||||
+ overview
|
||||
|
||||
width = 600
|
||||
height = 50
|
||||
range = 10h
|
||||
|
||||
+ detail
|
||||
|
||||
width = 600
|
||||
height = 200
|
||||
unison_tolerance = 2
|
||||
|
||||
"Last 3 Hours" 3h
|
||||
"Last 30 Hours" 30h
|
||||
"Last 10 Days" 10d
|
||||
"Last 360 Days" 360d
|
||||
|
||||
#+ hierarchies
|
||||
#++ owner
|
||||
#title = Host Owner
|
||||
#++ location
|
||||
#title = Location
|
||||
|
||||
# (The actual example starts here.)
|
||||
|
||||
*** Probes ***
|
||||
|
||||
# Here we have just one probe, fping, pinging four hosts.
|
||||
#
|
||||
# The fping probe is using the default parameters, some of them supplied
|
||||
# from the Database section ("step" and "pings"), and some of them by
|
||||
# the probe module.
|
||||
|
||||
+FPing
|
||||
binary = /usr/bin/fping
|
||||
|
||||
*** Targets ***
|
||||
|
||||
# The hosts are located in two sites of two hosts each, and the
|
||||
# configuration has been divided to site sections ('+') and host subsections
|
||||
# ('++') accordingly.
|
||||
|
||||
probe = FPing
|
||||
|
||||
menu = Top
|
||||
title = Network Latency Grapher
|
||||
remark = Welcome to this SmokePing website.
|
||||
|
||||
+ mysite1
|
||||
menu = Site 1
|
||||
title = Hosts in Site 1
|
||||
|
||||
++ myhost1
|
||||
host = myhost1.mysite1.example
|
||||
++ myhost2
|
||||
host = myhost2.mysite1.example
|
||||
|
||||
+ mysite2
|
||||
menu = Site 2
|
||||
title = Hosts in Site 2
|
||||
|
||||
++ myhost3
|
||||
host = myhost3.mysite2.example
|
||||
++ myhost4
|
||||
host = myhost4.mysite2.example
|
||||
210
debian/smokeping/usr/share/doc/smokeping/examples/config.targetvars-with-Curl
vendored
Normal file
210
debian/smokeping/usr/share/doc/smokeping/examples/config.targetvars-with-Curl
vendored
Normal file
@@ -0,0 +1,210 @@
|
||||
# This Smokeping example configuration file was automatically generated.
|
||||
#
|
||||
# Everything up to the Probes section is derived from a common template file.
|
||||
# See the Probes and Targets sections for the actual example.
|
||||
#
|
||||
# This example is included in the smokeping_examples document.
|
||||
|
||||
*** General ***
|
||||
|
||||
owner = Peter Random
|
||||
contact = some@address.nowhere
|
||||
mailhost = my.mail.host
|
||||
sendmail = /usr/sbin/sendmail
|
||||
# NOTE: do not put the Image Cache below cgi-bin
|
||||
# since all files under cgi-bin will be executed ... this is not
|
||||
# good for images.
|
||||
imgcache = /usr/cache
|
||||
imgurl = cache
|
||||
datadir = /usr/data
|
||||
piddir = /usr/var
|
||||
cgiurl = http://some.url/smokeping.cgi
|
||||
smokemail = /usr/etc/smokemail.dist
|
||||
tmail = /usr/etc/tmail.dist
|
||||
# specify this to get syslog logging
|
||||
syslogfacility = local0
|
||||
# each probe is now run in its own process
|
||||
# disable this to revert to the old behaviour
|
||||
# concurrentprobes = no
|
||||
|
||||
*** Alerts ***
|
||||
to = alertee@address.somewhere
|
||||
from = smokealert@company.xy
|
||||
|
||||
+someloss
|
||||
type = loss
|
||||
# in percent
|
||||
pattern = >0%,*12*,>0%,*12*,>0%
|
||||
comment = loss 3 times in a row
|
||||
|
||||
*** Database ***
|
||||
|
||||
step = 300
|
||||
pings = 20
|
||||
|
||||
# consfn mrhb steps total
|
||||
|
||||
AVERAGE 0.5 1 28800
|
||||
AVERAGE 0.5 12 9600
|
||||
MIN 0.5 12 9600
|
||||
MAX 0.5 12 9600
|
||||
AVERAGE 0.5 144 2400
|
||||
MAX 0.5 144 2400
|
||||
MIN 0.5 144 2400
|
||||
|
||||
*** Presentation ***
|
||||
|
||||
template = /usr/etc/basepage.html.dist
|
||||
htmltitle = yes
|
||||
graphborders = no
|
||||
# If enabled, treat all filter menu queries as literal strings instead of regex
|
||||
literalsearch = no
|
||||
|
||||
+ charts
|
||||
|
||||
menu = Charts
|
||||
title = The most interesting destinations
|
||||
|
||||
++ stddev
|
||||
sorter = StdDev(entries=>4)
|
||||
title = Top Standard Deviation
|
||||
menu = Std Deviation
|
||||
format = Standard Deviation %f
|
||||
|
||||
++ max
|
||||
sorter = Max(entries=>5)
|
||||
title = Top Max Roundtrip Time
|
||||
menu = by Max
|
||||
format = Max Roundtrip Time %f seconds
|
||||
|
||||
++ loss
|
||||
sorter = Loss(entries=>5)
|
||||
title = Top Packet Loss
|
||||
menu = Loss
|
||||
format = Packets Lost %f
|
||||
|
||||
++ median
|
||||
sorter = Median(entries=>5)
|
||||
title = Top Median Roundtrip Time
|
||||
menu = by Median
|
||||
format = Median RTT %f seconds
|
||||
|
||||
+ overview
|
||||
|
||||
width = 600
|
||||
height = 50
|
||||
range = 10h
|
||||
|
||||
+ detail
|
||||
|
||||
width = 600
|
||||
height = 200
|
||||
unison_tolerance = 2
|
||||
|
||||
"Last 3 Hours" 3h
|
||||
"Last 30 Hours" 30h
|
||||
"Last 10 Days" 10d
|
||||
"Last 360 Days" 360d
|
||||
|
||||
#+ hierarchies
|
||||
#++ owner
|
||||
#title = Host Owner
|
||||
#++ location
|
||||
#title = Location
|
||||
|
||||
# (The actual example starts here.)
|
||||
|
||||
*** Probes ***
|
||||
|
||||
# This example explains the difference between probe- and target-specific
|
||||
# variables. We use the Curl probe for this.
|
||||
#
|
||||
# Every probe supports at least some probe-specific variables. The values
|
||||
# of these variables are common to all the targets of the probe, and
|
||||
# they can only be configured in the Probes section. In this case,
|
||||
# the probe-specific variables are "binary" and "step".
|
||||
#
|
||||
# Target-specific variables are supported by most probes, the most notable
|
||||
# exception being the FPing probe and its derivatives. Target-specific
|
||||
# variables can have different values for different targets. They can be
|
||||
# configured in both Probes and Targets sections. The values assigned in the
|
||||
# Probes section function become default values that can be overridden
|
||||
# in the Targets section.
|
||||
#
|
||||
# The documentation of each probe states which of its variables are
|
||||
# probe-specific and which are target-specific.
|
||||
#
|
||||
# In this case the "urlformat" variable is a target-specific one. It is
|
||||
# also quite uncommon, because it can contain a placeholder for the "host"
|
||||
# variable in the Targets section. This is not a general feature, its
|
||||
# usage is only limited to the "urlformat" variable and the "%host%" escape.
|
||||
#
|
||||
# (The reason why the FPing probe does not support target-specific variables
|
||||
# is simply the fact that the fping program measures all its targets in one
|
||||
# go, so they all have the same parameters. The other probes ping their targets
|
||||
# one at a time.)
|
||||
|
||||
+ Curl
|
||||
# probe-specific variables
|
||||
binary = /usr/bin/curl
|
||||
step = 60
|
||||
|
||||
# a default for this target-specific variable
|
||||
urlformat = http://%host%/
|
||||
|
||||
*** Targets ***
|
||||
|
||||
# The target tree is divided into an HTTP branch and an FTP one.
|
||||
# The servers "myhost1.example" and "myhost2.example" are probed
|
||||
# in both. The third server, "myhost3.example", only has an HTTP
|
||||
# server, and it's in a non-standard port (8080).
|
||||
#
|
||||
# The "urlformat" variable is specified for the whole FTP branch
|
||||
# as "ftp://%host%/". For the HTTP branch, the default from the
|
||||
# Probes section is used, except for myhost3, which overrides
|
||||
# it to tag the port number into the URL.
|
||||
#
|
||||
# The myhost3 assignment could just as well have included the hostname
|
||||
# verbatim (ie. urlformat = http://myhost3.example:8080/) instead of
|
||||
# using the %host% placeholder, but the host variable would still have
|
||||
# been required (even though it wouldn't have been used for anything).
|
||||
|
||||
probe = Curl
|
||||
menu = Top
|
||||
title = Network Latency Grapher
|
||||
remark = Welcome to this SmokePing website.
|
||||
|
||||
+ HTTP
|
||||
menu = http
|
||||
title = HTTP latency
|
||||
|
||||
++ myhost1
|
||||
menu = myhost1
|
||||
title = HTTP latency for myhost1
|
||||
host = myhost1.example
|
||||
|
||||
++ myhost2
|
||||
menu = myhost2
|
||||
title = HTTP latency for myhost2
|
||||
host = myhost2.example
|
||||
|
||||
++ myhost3
|
||||
menu = myhost3
|
||||
title = HTTP latency for myhost3 (port 8080!)
|
||||
host = myhost3.example
|
||||
urlformat = http://%host%:8080/
|
||||
|
||||
+ FTP
|
||||
menu = ftp
|
||||
title = FTP latency
|
||||
urlformat = ftp://%host%/
|
||||
|
||||
++ myhost1
|
||||
menu = myhost1
|
||||
title = FTP latency for myhost1
|
||||
host = myhost1.example
|
||||
|
||||
++ myhost2
|
||||
menu = myhost2
|
||||
title = FTP latency for myhost2
|
||||
host = myhost2.example
|
||||
168
debian/smokeping/usr/share/doc/smokeping/examples/config.template
vendored
Normal file
168
debian/smokeping/usr/share/doc/smokeping/examples/config.template
vendored
Normal file
@@ -0,0 +1,168 @@
|
||||
# This Smokeping example configuration file was automatically generated.
|
||||
#
|
||||
# Everything up to the Probes section is derived from a common template file.
|
||||
# See the Probes and Targets sections for the actual example.
|
||||
#
|
||||
# This example is included in the smokeping_examples document.
|
||||
|
||||
*** General ***
|
||||
|
||||
owner = Peter Random
|
||||
contact = some@address.nowhere
|
||||
mailhost = my.mail.host
|
||||
sendmail = /usr/sbin/sendmail
|
||||
# NOTE: do not put the Image Cache below cgi-bin
|
||||
# since all files under cgi-bin will be executed ... this is not
|
||||
# good for images.
|
||||
imgcache = /usr/cache
|
||||
imgurl = cache
|
||||
datadir = /usr/data
|
||||
piddir = /usr/var
|
||||
cgiurl = http://some.url/smokeping.cgi
|
||||
smokemail = /usr/etc/smokemail.dist
|
||||
tmail = /usr/etc/tmail.dist
|
||||
# specify this to get syslog logging
|
||||
syslogfacility = local0
|
||||
# each probe is now run in its own process
|
||||
# disable this to revert to the old behaviour
|
||||
# concurrentprobes = no
|
||||
|
||||
*** Alerts ***
|
||||
to = alertee@address.somewhere
|
||||
from = smokealert@company.xy
|
||||
|
||||
+someloss
|
||||
type = loss
|
||||
# in percent
|
||||
pattern = >0%,*12*,>0%,*12*,>0%
|
||||
comment = loss 3 times in a row
|
||||
|
||||
*** Database ***
|
||||
|
||||
step = 300
|
||||
pings = 20
|
||||
|
||||
# consfn mrhb steps total
|
||||
|
||||
AVERAGE 0.5 1 28800
|
||||
AVERAGE 0.5 12 9600
|
||||
MIN 0.5 12 9600
|
||||
MAX 0.5 12 9600
|
||||
AVERAGE 0.5 144 2400
|
||||
MAX 0.5 144 2400
|
||||
MIN 0.5 144 2400
|
||||
|
||||
*** Presentation ***
|
||||
|
||||
template = /usr/etc/basepage.html.dist
|
||||
htmltitle = yes
|
||||
graphborders = no
|
||||
# If enabled, treat all filter menu queries as literal strings instead of regex
|
||||
literalsearch = no
|
||||
|
||||
+ charts
|
||||
|
||||
menu = Charts
|
||||
title = The most interesting destinations
|
||||
|
||||
++ stddev
|
||||
sorter = StdDev(entries=>4)
|
||||
title = Top Standard Deviation
|
||||
menu = Std Deviation
|
||||
format = Standard Deviation %f
|
||||
|
||||
++ max
|
||||
sorter = Max(entries=>5)
|
||||
title = Top Max Roundtrip Time
|
||||
menu = by Max
|
||||
format = Max Roundtrip Time %f seconds
|
||||
|
||||
++ loss
|
||||
sorter = Loss(entries=>5)
|
||||
title = Top Packet Loss
|
||||
menu = Loss
|
||||
format = Packets Lost %f
|
||||
|
||||
++ median
|
||||
sorter = Median(entries=>5)
|
||||
title = Top Median Roundtrip Time
|
||||
menu = by Median
|
||||
format = Median RTT %f seconds
|
||||
|
||||
+ overview
|
||||
|
||||
width = 600
|
||||
height = 50
|
||||
range = 10h
|
||||
|
||||
+ detail
|
||||
|
||||
width = 600
|
||||
height = 200
|
||||
unison_tolerance = 2
|
||||
|
||||
"Last 3 Hours" 3h
|
||||
"Last 30 Hours" 30h
|
||||
"Last 10 Days" 10d
|
||||
"Last 360 Days" 360d
|
||||
|
||||
#+ hierarchies
|
||||
#++ owner
|
||||
#title = Host Owner
|
||||
#++ location
|
||||
#title = Location
|
||||
|
||||
# (The actual example starts here.)
|
||||
|
||||
*** Probes ***
|
||||
|
||||
# This is the template configuration file distributed with Smokeping.
|
||||
# It is included in the examples as well for the sake of completeness.
|
||||
|
||||
|
||||
+ FPing
|
||||
|
||||
binary = /usr/sbin/fping
|
||||
|
||||
*** Slaves ***
|
||||
secrets=/usr/etc/smokeping_secrets.dist
|
||||
+boomer
|
||||
display_name=boomer
|
||||
color=0000ff
|
||||
|
||||
+slave2
|
||||
display_name=another
|
||||
color=00ff00
|
||||
|
||||
|
||||
*** Targets ***
|
||||
|
||||
# This is the template configuration file distributed with Smokeping.
|
||||
# It is included in the examples as well for the sake of completeness.
|
||||
|
||||
|
||||
probe = FPing
|
||||
|
||||
menu = Top
|
||||
title = Network Latency Grapher
|
||||
remark = Welcome to the SmokePing website of xxx Company. \
|
||||
Here you will learn all about the latency of our network.
|
||||
|
||||
+ Test
|
||||
menu= Targets
|
||||
#parents = owner:/Test/James location:/
|
||||
|
||||
++ James
|
||||
|
||||
menu = James
|
||||
title =James
|
||||
alerts = someloss
|
||||
slaves = boomer slave2
|
||||
host = james.address
|
||||
|
||||
++ MultiHost
|
||||
|
||||
menu = Multihost
|
||||
title = James and James as seen from Boomer
|
||||
host = /Test/James /Test/James~boomer
|
||||
|
||||
22
debian/smokeping/usr/share/doc/smokeping/examples/lighttpd_45-smokeping.conf
vendored
Normal file
22
debian/smokeping/usr/share/doc/smokeping/examples/lighttpd_45-smokeping.conf
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# /etc/lighttpd/conf-available/45-smokeping.conf
|
||||
# Configuration for smokeping CGI program
|
||||
|
||||
server.modules += ( "mod_fastcgi", "mod_rewrite" )
|
||||
|
||||
$HTTP["url"] =~ "^/smokeping/" {
|
||||
server.document-root = "/usr/share/"
|
||||
url.rewrite-once = (
|
||||
"^/smokeping/($|\?)" => "/smokeping/smokeping.cgi?${qsa}",
|
||||
"^/smokeping/(.*)" => "/smokeping/www/$1",
|
||||
)
|
||||
fastcgi.server = (
|
||||
"/smokeping/smokeping.cgi" => (
|
||||
"localhost" => (
|
||||
"bin-path" => "/usr/lib/cgi-bin/smokeping.cgi",
|
||||
"socket" => "/run/lighttpd/smokeping-fcgi.socket",
|
||||
)
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
# vim: set ts=4 sw=4 et:
|
||||
3
debian/smokeping/usr/share/doc/smokeping/examples/smokeping_secrets.dist
vendored
Normal file
3
debian/smokeping/usr/share/doc/smokeping/examples/smokeping_secrets.dist
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
host1:mysecret
|
||||
host2:yoursecret
|
||||
boomer:lkasdf93uhhfdfddf
|
||||
11
debian/smokeping/usr/share/doc/smokeping/examples/systemd/slave_mode.conf
vendored
Normal file
11
debian/smokeping/usr/share/doc/smokeping/examples/systemd/slave_mode.conf
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# If you need to run smokeping in a master/slave setup, you can create a
|
||||
# drop-in override to add the required parameters to the daemon like shown
|
||||
# below.
|
||||
#
|
||||
# To enable this, you'd need to create a directory
|
||||
# /etc/systemd/system/smokeping.service.d/ and copy this file in that
|
||||
# directory. Then, modify it according to your requirements.
|
||||
#
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/sbin/smokeping --master-url=http://127.0.0.1/smokeping.fcgi --cache-dir=/var/lib/smokeping --shared-secret=/etc/smokeping/smokeping_secrets --pid-dir=/run/smokeping
|
||||
Reference in New Issue
Block a user