Internal check per dataset as specified in #135 #144
Loading…
Reference in a new issue
No description provided.
Delete branch "thorsten.spille/135-internal-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #135. Extends the internal check of #63 (
monitor_engine=internal) to the specification in #135.bashclub-zsync
zfs list -Hp -t snapshot … <datasets>andzfs list -Hp -o name,used <datasets>on the source, in blocks of 100 (formsbashclub-zsync-remotealready allows), and the target. Before: all datasets of the source.snapshot_filterand the label of zsync, with the regex of the replication (strictname scheme of the label). Works also with-s, which ends before the replication parses the filter (monitor_filter).checkzfs_max_age);replication_agewith the thresholds of the age check of the configuration, incl. the hint "the source creates no new snapshots"; source count (checkzfs_max_snapshot_count, source only); replica count against the expected count (label=N: N, otherwise the count on the source, at leastmin_keep; +5 WARN, +10 CRIT); rollback WARN; no common snapshot CRIT;com.sun:auto-snapshotof the replica notfalseCRIT; no replica WARN. Text with both counts.file_count= replica (was combined in checkzfs), newsource_count,replication_age.<config>.replicated(dataset, time of the last successful replication, kept across failed runs); stateexcludedin<config>.datasetsfor datasets deselected below a selected one.-s: table per dataset and the excluded datasets.tests/run.sh, main vs. branch) shows no other change in the calls than the queries of the check.Checkmk check
age_limits(no behaviour change, all 62 tests pass), new--age-limits --config <file>for the internal check (6 new tests).Tests
monitor_internalrewritten after the test list of #135: only selected datasets queried, service format, one line per dataset, excluded datasets (state,-s), unfiltered snapshot without finding, auto-snapshot CRIT, rollback WARN, too many on source, replica over expected + 5, replication too old CRIT, defaults.remote.shwithmonitor_internal job_user checkmk local_mode replication unprivileged: 6/6.Runtime
Test VM, 50 selected datasets and 200 others with 30 snapshots each (7560 snapshots on the source, 1530 on the target),
bashclub-zsync -sthree times per engine:-sThe time includes the selection and the status of the whole
-s; checkzfs reads all snapshots of all pools on both sides, the internal check only those of the selected datasets.Docs
CHANGELOG; README (configuration block, services per dataset, TrueNAS and manual installation without checkzfs); handbook: Checkmk services (new section per dataset), parameters, monitoring concept, states, new features, diagnosis.
🤖 Generated with Claude Code
Manuell nach
maingemergt (67f2466), CI inkl. publish nach testing grün. Schließe den PR.Pull request closed