This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing lastGoodBackupTime for hosts that dont have anything in the logs
- Loading branch information
Showing
4 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,6 @@ | |||
AUX 01-defaults.patch 306 RMD160 4ebef1878c6d077d01ae19afbd4de714ac64cdce SHA1 35014414f57a1d36604ff348ff4eb53e0538ef55 SHA256 ffc46efdb376c9d1bea36b7f9065726800155628f810a4a10fdccf4718c4fb63 | AUX 01-fix-lastGoodBackupTime.patch 516 RMD160 aeb28e09c210bde848cf86529ed815fa80b47e53 SHA1 2aa002adaedb19ea99b966123c537758309ab5ab SHA256 30879612d3a9bb4503253917bc08c38d95bfa3ee81b3b6e629c7df8c1f643f52 | ||
AUX 02-defaults.patch 307 RMD160 6a5df2c2de2ffbb51acd7ade40c4d3485daccdcb SHA1 01855cab264be1583130cb9f66d25bd6e813b98b SHA256 3d2e773237f05340957afd9ac85be61e4d0b4f620256cf3ab8f5895c1fe950ea | |||
DIST check_backuppc-1.1.0.tar.gz 11036 RMD160 88f45df6acd920df66b10be6fc74156c34644cc3 SHA1 11766f925ceb72af6d0ab666d69c6082721a760c SHA256 f38675b67459e8b6ae616bca23646ec645f8c88ee34d4c53ec9e06f61b9559ca | DIST check_backuppc-1.1.0.tar.gz 11036 RMD160 88f45df6acd920df66b10be6fc74156c34644cc3 SHA1 11766f925ceb72af6d0ab666d69c6082721a760c SHA256 f38675b67459e8b6ae616bca23646ec645f8c88ee34d4c53ec9e06f61b9559ca | ||
EBUILD nagios-backuppc-1.1.0.ebuild 1464 RMD160 5fbcb88b8b8a1f738a938fc85e1c001a5cfaae06 SHA1 2f58deaa80f5d138a01ecd1edd0928f17c1965e0 SHA256 5b4611ef5ff99afd0465aa15ffcdff90a5bd3b04b4d48fd0c2d7aaa0291de4ac | EBUILD nagios-backuppc-1.1.0.ebuild 1518 RMD160 cdfd041b65b1db26c52861fc3d4d8fab3281d1e3 SHA1 b7631884b51d53d77d477cd7c8f6d461bf54e778 SHA256 0e6df6b98458029966aac19d3f61703cf6fec6ded30c3ebd2c47fc6ff50383e5 | ||
MISC ChangeLog 0 RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 | MISC ChangeLog 0 RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 | ||
MISC metadata.xml 253 RMD160 c0318abe33b31aa5d6279d10fc83c28cc6dd09c5 SHA1 605137e0dd74096a7c28e073f5f26df12aa7eb0f SHA256 3dc2ada999ee9ccc3016e9ccdd54c36b84eff8d7533b76bb7dda62d661a187ea | MISC metadata.xml 253 RMD160 c0318abe33b31aa5d6279d10fc83c28cc6dd09c5 SHA1 605137e0dd74096a7c28e073f5f26df12aa7eb0f SHA256 3dc2ada999ee9ccc3016e9ccdd54c36b84eff8d7533b76bb7dda62d661a187ea |
11 changes: 11 additions & 0 deletions
11
app-backup/nagios-backuppc/files/01-fix-lastGoodBackupTime.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
--- check_backuppc.orig 2009-10-04 17:07:54.775317682 +0300 | |||
+++ check_backuppc 2009-10-04 17:32:43.656317343 +0300 | |||
@@ -186,7 +186,7 @@ | |||
} | |||
push @badHost, $host; | |||
# Check bad host ages | |||
- $Status{$host}{'lastGoodBackupTime'} = $Status{$host}{'startTime'} if (not $Status{$host}{'lastGoodBackupTime'}); | |||
+ $Status{$host}{'lastGoodBackupTime'} = 0 if (not $Status{$host}{'lastGoodBackupTime'}); | |||
if (difftime(time(), $Status{$host}{'lastGoodBackupTime'}) > ($daysOld * 3600 * 24)) | |||
{ | |||
push @tooOld, $host; |
4 changes: 2 additions & 2 deletions
4
...p/nagios-backuppc/files/01-defaults.patch → ...p/nagios-backuppc/files/02-defaults.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters