Backup duration alert: Get unit state and trigger times from systemd
Compare changes
@@ -22,6 +22,7 @@
@@ -22,6 +22,7 @@
@@ -92,7 +93,7 @@
@@ -92,7 +93,7 @@
@@ -162,10 +163,7 @@
@@ -162,10 +163,7 @@
@@ -174,10 +172,7 @@
@@ -174,10 +172,7 @@
@@ -251,7 +246,7 @@
@@ -251,7 +246,7 @@
@@ -318,10 +313,7 @@
@@ -318,10 +313,7 @@
@@ -330,10 +322,7 @@
@@ -330,10 +322,7 @@
@@ -463,10 +452,7 @@
@@ -463,10 +452,7 @@
@@ -598,10 +584,7 @@
@@ -598,10 +584,7 @@
@@ -628,7 +611,7 @@
@@ -628,7 +611,7 @@
@@ -637,9 +620,9 @@
@@ -637,9 +620,9 @@
@@ -653,12 +636,12 @@
@@ -653,12 +636,12 @@
"message": "A backup job ran for more than three hours. This means it could run into the check-repo job start time, depending on its \"random\" job delay.",
@@ -667,8 +650,6 @@
@@ -667,8 +650,6 @@
@@ -698,18 +679,20 @@
@@ -698,18 +679,20 @@
@@ -733,22 +716,19 @@
@@ -733,22 +716,19 @@
@@ -762,7 +742,7 @@
@@ -762,7 +742,7 @@
@@ -771,9 +751,9 @@
@@ -771,9 +751,9 @@
@@ -787,12 +767,12 @@
@@ -787,12 +767,12 @@
"message": "A borg check-repo job ran for more than six hours. This means it could collide with the daily backup job, depending on that job's \"random\" delay. If the backup set is large and this is expected to happen again, consider using borgbackup partial checks (--max-duration SECONDS parameter).",
"message": "A borg check-repo job ran for more than five hours. After six hours it could collide with the daily backup job, depending on that job's \"random\" delay. If the backup set is large and this is expected to happen again, consider using borgbackup partial checks (--max-duration SECONDS parameter).",
@@ -801,8 +781,6 @@
@@ -801,8 +781,6 @@
@@ -832,18 +810,20 @@
@@ -832,18 +810,20 @@
@@ -867,22 +847,19 @@
@@ -867,22 +847,19 @@
@@ -890,10 +867,7 @@
@@ -890,10 +867,7 @@
@@ -968,17 +942,14 @@
@@ -968,17 +942,14 @@
"expr": "{unit=\"borgbackup-job-daily.service\"} |= \"duration\" | pattern \"<_>\\\"duration\\\": <duration>,\"",
@@ -1009,10 +980,7 @@
@@ -1009,10 +980,7 @@
@@ -1021,29 +989,17 @@
@@ -1021,29 +989,17 @@
@@ -1068,33 +1024,35 @@
@@ -1068,33 +1024,35 @@
"expr": "{unit=\"borgbackup-job-daily.service\"} |= \"compressed_size\" | pattern \"<_>\\\"compressed_size\\\": <compressed_size>,\"",
"expr": "{unit=\"borgbackup-job-daily.service\"} |= \"unique_csize\" | pattern \"<_>\\\"unique_csize\\\": <unique_csize>,\"",
@@ -1134,7 +1092,7 @@
@@ -1134,7 +1092,7 @@