~ubuntu-branches/ubuntu/oneiric/nagios-plugins/oneiric

« back to all changes in this revision

Viewing changes to contrib/check_traceroute.pl

  • Committer: Bazaar Package Importer
  • Author(s): Jan Wagner
  • Date: 2010-01-23 01:07:49 UTC
  • mto: (12.1.3 sid) (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: james.westby@ubuntu.com-20100123010749-pbdjhe76lbueoawi
Tags: upstream-1.4.14
ImportĀ upstreamĀ versionĀ 1.4.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/perl
2
2
 
3
 
# $Id: check_traceroute.pl 2091 2008-11-23 05:38:47Z dermoth $
 
3
# $Id: check_traceroute.pl 1115 2005-01-27 10:34:16Z stanleyhopcroft $
4
4
 
5
5
# Revision 1.1  2005/01/27 10:34:16  stanleyhopcroft
6
6
# Jon Meek's check_traceroute for Mon hacked by YT for Nagios. Prob pretty weak
31
31
do { print_help ; exit $ERRORS{OK}; }
32
32
        if $opt_h ;
33
33
 
34
 
do { print_revision($PROGNAME, '$Revision: 2091 $'); exit $ERRORS{OK}; }
 
34
do { print_revision($PROGNAME, '$Revision: 1115 $'); exit $ERRORS{OK}; }
35
35
        if $opt_V ;
36
36
 
37
37
do { print_help; exit $ERRORS{OK}; }
175
175
}
176
176
 
177
177
sub print_help () {
178
 
        print_revision($PROGNAME, '$Revision: 2091 $') ;
 
178
        print_revision($PROGNAME, '$Revision: 1115 $') ;
179
179
        print "Copyright (c) 2004 J Meek/Karl DeBisschop
180
180
 
181
181
This plugin checks whether traceroute to the destination succeeds and if so that the route string option (-R) matches the list of routers