diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2005-02-11 21:22:38 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2005-02-11 21:22:38 +0100 |
commit | 3623e33d0ae10eaeca653e00a3796495dbc0f713 (patch) | |
tree | a0835e8015f995402c2b8046255d7d101e7f9a59 /etc | |
download | smokeping-3623e33d0ae10eaeca653e00a3796495dbc0f713.tar.gz smokeping-3623e33d0ae10eaeca653e00a3796495dbc0f713.tar.xz |
initial import
Diffstat (limited to 'etc')
-rw-r--r-- | etc/basepage.html.dist | 84 | ||||
-rw-r--r-- | etc/config-echoping.dist | 82 | ||||
-rw-r--r-- | etc/config.dist | 176 | ||||
-rw-r--r-- | etc/smokemail.dist | 65 |
4 files changed, 407 insertions, 0 deletions
diff --git a/etc/basepage.html.dist b/etc/basepage.html.dist new file mode 100644 index 0000000..f5fa3b7 --- /dev/null +++ b/etc/basepage.html.dist @@ -0,0 +1,84 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Cache-Control" content="no-cache"> +<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> +<META HTTP-EQUIV="Refresh" CONTENT="<##step##>"> +<TITLE>SmokePing Latency Page for <##title##></TITLE> +<STYLE type="text/css"> +<!-- + +.menu { color: black; + font-size: 10px; + font-family: Arial, Helvetica, Sans-Serif; + } + +.menuitem + { color: black; + font-size: 10px; + font-family: Arial, Helvetica, Sans-Serif; + } + +.menuopen + { color: black; + font-size: 10px; + font-family: Arial, Helvetica, Sans-Serif; + } + +.menuactive + { color: black; + font-size: 10px; + font-family: Arial, Helvetica, Sans-Serif; + } + +.menuactive { + color: black; + background: #aaaaff; + } + +.menulink { + color: black; + } + +.menu A:Hover { + text-decoration: none; + color: #000000; + background: silver; + } + + +--> +</STYLE> + +</HEAD> +<BODY bgcolor="white"> +<TABLE border="0" cellpadding="10" cellspacing="0"> +<TR> + <TD align="left" width="130" bgcolor="#cfcfcf" valign="top"> + <P></P> + <P><B>Select Target:</B> </P> + <P><##menu##></P> + <br> + <br> + <br> + <hr> + <br> + <p><small>Maintained by:<br/><A href="mailto:<##contact##>"><##owner##></A></small></p> + <p><small>Created using <##author##>'s <##smokeping##></small></p> + <P><##smokelogo##></P> + <P></P> + <P><##rrdlogo##></P> +</TD> + <TD></TD> + <TD valign="top"> + <H1><##title##></H1> + <P><##remark##></P> + <P><##overview##></P> + <P><##body##></P> + </TD> +</TR> +<tr><td width="130" bgcolor="#cfcfcf"> +</td><td></td><td></td></tr> +</TABLE> +</BODY> +</HTML> diff --git a/etc/config-echoping.dist b/etc/config-echoping.dist new file mode 100644 index 0000000..2aa7678 --- /dev/null +++ b/etc/config-echoping.dist @@ -0,0 +1,82 @@ +# only the relevant sections are included, see smokeping distribution +# for the rest of them + +*** Probes *** + +# 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 + +*** Targets *** + +# default probe +probe = FPing + +menu = Top +title = Network Latency Grapher +remark = Welcome to the SmokePing website of xxx Company. \ + Here you will learn all abou the latency of our network. + ++ 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.abc + ++++ http +menu = http +title = Web Server (www-server) / HTTP +probe = EchoPingHttp +host = www-server.abc +# default url is / + ++++ https +menu = https +title = Web Server (www-server) / HTTPS +probe = EchoPingHttps +host = www-server.abc + +++ cache +menu = www-cache +title = Web Cache (www-cache) / ICMP +host = www-cache.abc + ++++ http +menu = http +title = www-cache / HTTP +host = www-cache.abc +probe = EchoPingHttp +++++ PROBE_CONF +port = 8080 # use the squid port +url = http://www.microsoft.com/ + ++++ icp +menu = icp +title = www-cache / ICP +host = www-cache.abc +probe = EchoPingIcp +++++ PROBE_CONF +url = http://www.microsoft.com/ + +++ mail +menu = mail-server +title = Mail Server (mail-server) / ICMP +host = mail-server.abc + ++++ smtp +menu = mail-server / SMTP +title = Mail Server (mail-server) / SMTP +host = mail-server.abc +probe = EchoPingSmtp + diff --git a/etc/config.dist b/etc/config.dist new file mode 100644 index 0000000..71560ba --- /dev/null +++ b/etc/config.dist @@ -0,0 +1,176 @@ +# Note that all IP addresses in this file are false, to prevent some +# machine falling uder a deadly DOS storm because all users keep +# the same addresses in their config. + +*** General *** + +owner = Joe Random +contact = joe@some.place.xyz +mailhost = smtp.mailhost.abc +sendmail = /usr/lib/sendmail +imgcache = /home/oetiker/public_html/.simg +imgurl = ../.simg +datadir = /home/oetiker/data/projects/AADJ-smokeping/dist/var +piddir = /home/oetiker/data/projects/AADJ-smokeping/dist/var +cgiurl = http://people.ee.ethz.ch/~oetiker/smokeping/smokeping.cgi +smokemail = /home/oetiker/data/projects/AADJ-smokeping/dist/etc/smokemail.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 = admin@company.xy +from = smokealert@company.xy + ++bigloss +type = loss +# in percent +pattern = ==0%,==0%,==0%,==0%,>0%,>0%,>0% +comment = suddenly there is packet loss + ++someloss +type = loss +# in percent +pattern = >0%,*12*,>0%,*12*,>0% +comment = loss 3 times in a row + ++startloss +type = loss +# in percent +pattern = ==S,>0%,>0%,>0% +comment = loss at startup + ++rttdetect +type = rtt +# in milli seconds +pattern = <10,<10,<10,<10,<10,<100,>100,>100,>100 +comment = routing mesed up again ? + +*** Database *** + +step = 300 +pings = 20 + +# consfn mrhb steps total + +AVERAGE 0.5 1 1008 +AVERAGE 0.5 12 4320 + MIN 0.5 12 4320 + MAX 0.5 12 4320 +AVERAGE 0.5 144 720 + MAX 0.5 144 720 + MIN 0.5 144 720 + +*** Presentation *** + +template = /home/oetiker/data/projects/AADJ-smokeping/dist/etc/basepage.html.dist + ++ 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 400 Days" 400d + +*** Probes *** + ++ FPing + +binary = /usr/sepp/bin/fping + +*** Targets *** + +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. + ++ World + +menu = World +title = Worldwide Connectivity + +++ Europe + +menu = Europe +title =European Connectivity + ++++ Switzerland + +menu = Switzerland +title =Swiss Connectivity +alerts = bigloss,someloss,startloss + +++++ SBB + +menu = SBB/CFF/FFS +title =Swiss Federal Railways Webserver +host = www.railway-server.abc + + +++++ Tiscali + +menu = Tiscali Web +title = Tiscali Webserver www.tiscali.abc +host = www.tiscali-web.abc + ++++ UK + +menu = United Kingdom +title = United Kingdom + +++++ UCL + +menu = UCL +title = UCL +host = www.ucl-abc.acc.uk + +++ USA + +menu = North America +title =North American Connectivity + ++++ MIT + +menu = MIT +title = Massachusetts Institute of Technology Webserver +host = www.gurkoman.ybc + ++++ IU + +menu = IU +title = Indiana University +host = www.iu.ali + ++++ UCB + +menu = U. C. Berkeley +title = U. C. Berkeley Webserver +host = www.berkly.udi + ++++ UCSD + +menu = U. C. San Diego +title = U. C. San Diego Webserver +host = www.ucsdddar.art + ++++ Sun + +menu = Sun Microsystems +title = Sun Microsystems Webserver +host = www.sun-web.com + diff --git a/etc/smokemail.dist b/etc/smokemail.dist new file mode 100644 index 0000000..5b4d4da --- /dev/null +++ b/etc/smokemail.dist @@ -0,0 +1,65 @@ +From: <##FROM##> +To: <##TO##> +Subject: SmokePing Agent + +Hi, + +Please execute the attache Perl Script on your computer. It will register +your IP with SmokePing. You have to rerun this script at least everytime +your IP changes. You can run the script as often as you want. + +The script is written in Perl. If you don't have Perl available on your +system, you must have a Windows Box. You can easily fix this prolem by +downloading ActivePerl from www.activestate.com + +As soon as you have run the SmokePing Agent, the SmokePing server will +start monitoring your host. Check out: +<##URL##>?target=<##PATH##> + +Cheers +<##OWNER##> + +------------8<------------------------ +#!/usr/bin/perl -w + +my $url = '<##URL##>'; +my $path = '<##PATH##>'; +my $secret = '<##SECRET##>'; + +use strict; +use IO::Socket; + +my $post="target=${path}&secret=${secret}"; +my $clen=length $post; + +$url =~ m|http://([^/]+)(/.+)|; +my $host = $1; +my $script = $2; + +my $remote = IO::Socket::INET->new( Proto => "tcp", + PeerAddr => $host, + PeerPort => "http(80)", + ); +exit 0 unless $remote; +$remote->autoflush(1); + +print $remote <<"REQUEST"; +POST $script HTTP/1.0\r +User-Agent: smokeping-agent/1.0\r +Host: ${host}:80\r +Pragma: no-cache\r +Content-Length: ${clen}\r +Content-Type: application/x-www-form-urlencoded\r +\r +${post}\r +REQUEST + +my $head = 1; +while (<$remote>) { + /^\s*$/ && do {$head=0;next}; + print unless $head; +} + +close $remote; +exit; +------------8<------------------------ |