equal
deleted
inserted
replaced
98 for my $logfile (@{$logfiles}) { |
98 for my $logfile (@{$logfiles}) { |
99 |
99 |
100 unless (-e $logfile) { |
100 unless (-e $logfile) { |
101 print "RSNAPSHOT CRITICAL: logfile '$logfile' - don't exists\n"; |
101 print "RSNAPSHOT CRITICAL: logfile '$logfile' - don't exists\n"; |
102 exit $ERRORS{CRITICAL}; |
102 exit $ERRORS{CRITICAL}; |
103 } |
|
104 |
|
105 if (-z $logfile) { |
|
106 print "RSNAPSHOT WARNING: logfile $logfile - has zero size\n"; |
|
107 exit $ERRORS{WARNING}; |
|
108 } |
103 } |
109 |
104 |
110 next if (stat $logfile)[9] < $maxage; |
105 next if (stat $logfile)[9] < $maxage; |
111 |
106 |
112 if ($logfile =~ /\.gz$/) { |
107 if ($logfile =~ /\.gz$/) { |