X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-dabackup;h=8bc56f5bc88a97a625bcf8dd0e56bfd967e2c179;hb=100f56da0c96f396ed77b13294a34c38479580f0;hp=6ce30b2a1fe2dc09b80dade13a36be9d84cc7295;hpb=c3212c3f62d849d3de462cfed6f0c9aaa6d1e9d9;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-dabackup b/dsa-nagios-checks/checks/dsa-check-dabackup index 6ce30b2..8bc56f5 100755 --- a/dsa-nagios-checks/checks/dsa-check-dabackup +++ b/dsa-nagios-checks/checks/dsa-check-dabackup @@ -69,8 +69,8 @@ my $params = {}; Getopt::Long::config('bundling'); if (!GetOptions ( 'h|help' => \$params->{'help'}, - 'f|fresh=i' => \$TOO_FRESH, - 'm|maxage=i' => \$MAX_AGE, + 'f|fresh=i' => \$TOO_FRESH, + 'm|maxage=i' => \$MAX_AGE, )) { die ("$PROGRAM_NAME: Usage: $PROGRAM_NAME [-fwhv]\n"); }; @@ -165,7 +165,7 @@ for my $f (sort {$a cmp $b} keys %logfiles) { my $last = ''; while () { chomp; - if (/^sent\s+\d+\s+bytes\s+received\s+\d+\s+bytes\s+[\d\.]+\s+bytes\/sec$/) { + if (/^sent\s+[\d,]+\s+bytes\s+received\s+[\d,]+\s+bytes\s+[\d,\.]+\s+bytes\/sec$/) { problem('OK', 'probably ok', $f); close(FH); next FILE;