# percentage and with status 2 if the free space is above a critical
# percentage (this works with the Nagios check architecture).
+##############################################################################
+# Modules and declarations
+##############################################################################
+
+require 5.003;
+
+use strict;
+use vars qw($CRITICAL $ID $TIMEOUT $VOS $WARNINGS);
+
+use Getopt::Long qw(GetOptions);
##############################################################################
# Site configuration
##############################################################################
($VOS) = grep { -x $_ } qw(/usr/bin/vos /usr/local/bin/vos);
$VOS ||= '/usr/bin/vos';
-##############################################################################
-# Modules and declarations
-##############################################################################
-
-require 5.003;
-
-use strict;
-use vars qw($CRITICAL $ID $TIMEOUT $VOS $WARNINGS);
-
-use Getopt::Long qw(GetOptions);
##############################################################################
# Implementation
# true, print that information to STDOUT. Suitable for being run inside
# Nagios.
+##############################################################################
+# Modules and declarations
+##############################################################################
+
+require 5.005;
+
+use strict;
+use vars qw($BOS $ID @OKAY $TIMEOUT);
+
+use Getopt::Long qw(GetOptions);
##############################################################################
# Site configuration
##############################################################################
qr/^\s*Command \d+ is /
);
-##############################################################################
-# Modules and declarations
-##############################################################################
-
-require 5.005;
-
-use strict;
-use vars qw($BOS $ID @OKAY $TIMEOUT);
-
-use Getopt::Long qw(GetOptions);
##############################################################################
# Implementation
# warning) and with status 2 if there are more than eight connections in that
# state. The thresholds can be overridden from the command line.
+##############################################################################
+# Modules and declarations
+##############################################################################
+
+require 5.003;
+
+use strict;
+use vars qw($CRITICAL $ID $RXDEBUG $TIMEOUT $WARNINGS);
+
+use Getopt::Long qw(GetOptions);
##############################################################################
# Site configuration
##############################################################################
($RXDEBUG) = grep { -x $_ } qw(/usr/bin/rxdebug /usr/local/bin/rxdebug);
$RXDEBUG ||= '/usr/bin/rxdebug';
-##############################################################################
-# Modules and declarations
-##############################################################################
-
-require 5.003;
-
-use strict;
-use vars qw($CRITICAL $ID $RXDEBUG $TIMEOUT $WARNINGS);
-
-use Getopt::Long qw(GetOptions);
##############################################################################
# Implementation
#!/usr/bin/perl -w
-$ID = q$Id$;
+# $ID = q$Id$;
#
# check_udebug -- Check AFS database servers using udebug for Nagios.
#
# site (ensuring that it considers all of the other servers up-to-date) or if
# any of the servers don't believe there is a sync site.
+##############################################################################
+# Modules and declarations
+##############################################################################
+
+require 5.003;
+
+use strict;
+use vars qw($ID $TIMEOUT $UDEBUG);
+
+use Getopt::Long qw(GetOptions);
+
##############################################################################
# Site configuration
##############################################################################
($UDEBUG) = grep { -x $_ } qw(/usr/bin/udebug /usr/local/bin/udebug);
$UDEBUG ||= '/usr/bin/udebug';
-##############################################################################
-# Modules and declarations
-##############################################################################
-
-require 5.003;
-
-use strict;
-use vars qw($ID $TIMEOUT $UDEBUG);
-
-use Getopt::Long qw(GetOptions);
##############################################################################
# Implementation