* better master/slave secrets documentation * first cut at mtr integration * use localtime to construct the rawlog filename New in 2.4: * SmokeTrace: An Ajax Traceroute tool. * The 'blazemode' option for the FPing probe, so that the first (slow) ping packet can be ignored. Ok'ed bouyer@
56 lines
1.7 KiB
Text
56 lines
1.7 KiB
Text
$NetBSD: patch-ad,v 1.5 2008/08/17 11:09:10 adrianp Exp $
|
|
|
|
--- bin/tSmoke.dist.orig 2008-07-24 18:37:05.000000000 +0100
|
|
+++ bin/tSmoke.dist
|
|
@@ -51,8 +51,7 @@ use warnings;
|
|
# -- Getopt::Long
|
|
#
|
|
# Point the lib variables to your implementation
|
|
-use lib qw(lib);
|
|
-use lib qw(/usr/local/rrdtool-1.0.39/lib/perl);
|
|
+use lib "@PREFIX@/lib/smokeping";
|
|
|
|
use Smokeping 2.004002;
|
|
use Net::SMTP;
|
|
@@ -61,7 +60,7 @@ use Pod::Usage;
|
|
use RRDs;
|
|
|
|
# Point to your Smokeping config file
|
|
-my $cfgfile = "etc/config.dist";
|
|
+my $cfgfile = "@PKG_SYSCONFDIR@/config";
|
|
|
|
# global variables
|
|
my $cfg;
|
|
@@ -476,9 +475,9 @@ past week and past month including an ov
|
|
Typical crontab used to invoke this are
|
|
|
|
# Quick morning alert to see what's down
|
|
- 0 6 * * * /usr/local/smokeping/bin/tSmoke.pl --q --to=mobilephone@att.net.invalid --morning
|
|
+ 0 6 * * * @PREFIX@/bin/tSmoke.pl --q --to=mobilephone@att.net.invalid --morning
|
|
# Weekly report on the percent availability of network systems with no detail
|
|
- 0 8 * * * /usr/local/smokeping/bin/tSmoke.pl --q --to=mailbox@company.com.invalid --weekly --detail=0
|
|
+ 0 8 * * * @PREFIX@/bin/tSmoke.pl --q --to=mailbox@company.com.invalid --weekly --detail=0
|
|
|
|
=head1 SETUP
|
|
|
|
@@ -498,17 +497,16 @@ We need to use the following B<libraries
|
|
|
|
Set up your libraries:
|
|
|
|
- use lib "/usr/local/smokeping/lib";
|
|
- use lib "/usr/local/rrdtool-1.0.39/lib/perl";
|
|
+ use lib "@PREFIX@/lib/smokeping";
|
|
|
|
Point to your Smokeping B<config> file
|
|
|
|
- my $cfgfile = "/usr/local/smokeping/etc/config";
|
|
+ my $cfgfile = "@PKG_SYSCONFDIR@/config";
|
|
|
|
Modify the Smokeping config file to include a path for tmail in the
|
|
General section:
|
|
|
|
- tmail = /usr/local/smokeping/etc/tmail
|
|
+ tmail = @PKG_SYSCONFDIR@/tmail
|
|
|
|
=head1 COPYRIGHT
|
|
|