~ubuntu-branches/debian/jessie/smokeping/jessie

« back to all changes in this revision

Viewing changes to bin/tSmoke

  • Committer: Package Import Robot
  • Author(s): Antoine Beaupré
  • Date: 2014-07-07 22:03:59 UTC
  • mfrom: (7.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20140707220359-nyluiofbg792dt4b
Tags: 2.6.9-1
* Upload to unstable
* remove jsogo as uploader, as I haven't heard from him in years
* Bug fix: missing "#MODE=slave" in /etc/default/smokeping, thanks to
  xavier renaut for reporting and Rowan Thorpe for confirmation (Closes:
  #685811).
* follow anonscm.d.o rename
* fix status doesn't use the pidfile (Closes: #699799)
* use dh_autoreconf to fix configure step, thanks to Rowan Thorpe
  * Use dh_autoreconf to avoid errors about "missing xx" and to allow
    rebuilding after first build (Closes: #724471)
  * use dh_auto_configure rather than ./configure in rules, to only
    override specified flags, not all
* add patches from Rowan Thorpe
  * fix-paths-inside-executables - hardcode paths inside executables
    (Closes: #707225)
  * fix-pod-escaping - quote-protect a slash in a pod-link (Closes:
    #752393)
* bump standards to 3.9.5, no change
* fix dependency list to ease diffs

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
# -- Smokeping libraries
50
50
# -- RRDTool
51
51
# -- Getopt::Long
52
 
#
53
 
# Point the lib variables to your implementation
54
 
use FindBin;
55
 
# PERL5LIB
56
 
use lib "$FindBin::Bin/../thirdparty/lib/perl5";
57
 
use lib "$FindBin::Bin/../lib";
58
52
 
59
53
use Smokeping;
60
54
use Net::SMTP;
63
57
use RRDs;
64
58
 
65
59
# Point to your Smokeping config file
66
 
my $cfgfile = "etc/config.dist";
 
60
my $cfgfile = "/etc/smokeping/config";
67
61
 
68
62
# global variables
69
63
my $cfg;
478
472
Typical crontab used to invoke this are
479
473
 
480
474
 # Quick morning alert to see what's down
481
 
 0 6 * * * /usr/local/smokeping/bin/tSmoke.pl --q --to=mobilephone@att.net.invalid --morning
 
475
 0 6 * * * /usr/sbin/tSmoke --q --to=mobilephone@att.net.invalid --morning
482
476
 # Weekly report on the percent availability of network systems with no detail
483
 
 0 8 * * * /usr/local/smokeping/bin/tSmoke.pl --q --to=mailbox@company.com.invalid --weekly --detail=0
484
 
 
485
 
=head1 SETUP
486
 
 
487
 
When installing tSmoke, some variables must be adjusted to fit your local system.
488
 
 
489
 
We need to use the following B<libraries>:
490
 
 
491
 
=over
492
 
 
493
 
=item Smokeping
494
 
 
495
 
=item RRDTool Perl bindings
496
 
 
497
 
=item Getopt::Long
498
 
 
499
 
=back
500
 
 
501
 
Set up your libraries:
502
 
 
503
 
 use lib "/usr/local/smokeping/lib";
504
 
 use lib "/usr/local/rrdtool-1.0.39/lib/perl";
505
 
 
506
 
Point to your Smokeping B<config> file
507
 
 
508
 
 my $cfgfile = "/usr/local/smokeping/etc/config";
509
 
 
510
 
Modify the Smokeping config file to include a path for tmail in the
511
 
General section:
512
 
 
513
 
 tmail = /usr/local/smokeping/etc/tmail
 
477
 0 8 * * * /usr/sbin/tSmoke --q --to=mailbox@company.com.invalid --weekly --detail=0
514
478
 
515
479
=head1 COPYRIGHT
516
480