summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2007-04-15 13:48:14 +0200
committerNiko Tyni <ntyni@iki.fi>2007-04-15 13:48:14 +0200
commitaea0aa3fdfaf06c2093363d690ce8c6738c1b6e4 (patch)
tree9196ccad880572e6c556d6ee8b18a5f4cba743bc
parentb0a8245fe56e8fb1ace0dc2524ce7b1ca6f694a1 (diff)
downloadsmokeping-aea0aa3fdfaf06c2093363d690ce8c6738c1b6e4.tar.gz
smokeping-aea0aa3fdfaf06c2093363d690ce8c6738c1b6e4.tar.xz
r1064@rispa: niko | 2007-04-15 14:39:57 +0300
add examples
-rw-r--r--doc/smokeping_upgrade.pod3
-rw-r--r--lib/Smokeping/Examples.pm40
2 files changed, 43 insertions, 0 deletions
diff --git a/doc/smokeping_upgrade.pod b/doc/smokeping_upgrade.pod
index 64f5c2f..cf12965 100644
--- a/doc/smokeping_upgrade.pod
+++ b/doc/smokeping_upgrade.pod
@@ -44,6 +44,9 @@ interface:
=back
+See the L<smokeping_examples> document for simple examples of using
+these probes.
+
=head2 New method in base.pm (if you write your own probes)
The F<base.pm> module defines the method ProbeUnit. Override this if your
diff --git a/lib/Smokeping/Examples.pm b/lib/Smokeping/Examples.pm
index 507deb8..db7796d 100644
--- a/lib/Smokeping/Examples.pm
+++ b/lib/Smokeping/Examples.pm
@@ -545,6 +545,10 @@ binary = /usr/bin/fping
+ 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
++ EchoPingLDAP
++ EchoPingWhois
DOC
probedoc => <<DOC,
This example shows most of the echoping-derived probes in action.
@@ -611,6 +615,42 @@ 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
DOC
targetdoc => <<DOC,
All the servers are pinged both with ICMP (the FPing probe)