/[pdpsoft]/trunk/nl.nikhef.ndpf.tools/nagios-ndpf-sensors/scripts/check_time_offset
ViewVC logotype

Diff of /trunk/nl.nikhef.ndpf.tools/nagios-ndpf-sensors/scripts/check_time_offset

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2186 by ronalds, Thu Feb 10 11:43:36 2011 UTC revision 2187 by ronalds, Thu Feb 10 11:52:18 2011 UTC
# Line 12  my $debug; Line 12  my $debug;
12  GetOptions("help" => \$help,  GetOptions("help" => \$help,
13             "delta|D:i" => \$delta,             "delta|D:i" => \$delta,
14             "debug" => \$debug,             "debug" => \$debug,
15             "ntp:s" => \@ntpservers,             "ntp:s@" => \@ntpservers,
16             "verbose" => \$verbose );             "verbose" => \$verbose );
17    
18  my %ERRORS=(OK=>0,  my %ERRORS=(OK=>0,
# Line 28  if ( scalar @ntpservers == 0 ) { Line 28  if ( scalar @ntpservers == 0 ) {
28      print "UNKNOWN: no list of NTP servers found\n";      print "UNKNOWN: no list of NTP servers found\n";
29      exit $ERRORS{"UNKNOWN"};      exit $ERRORS{"UNKNOWN"};
30  }  }
31    # permit mulitple occurrences of --ntp or a comma separated argument lists to --ntp
32    @ntpservers = split(/,/,join(',',@ntpservers));
33  my $ntpserverlist = "";  my $ntpserverlist = "";
34  foreach my $ntp ( @ntpservers ) {  foreach my $ntp ( @ntpservers ) {
35      # validate hostname      # validate hostname

Legend:
Removed from v.2186  
changed lines
  Added in v.2187

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28