Built-in check of the snapshots per dataset (monitor_engine) (#63) #138
Loading…
Reference in a new issue
No description provided.
Delete branch "thorsten.spille/63-monitor-engine"
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 #63.
What
New setting
monitor_engine=checkzfs|internalfor the services per dataset (<checkzfs_prefix>:<source>:<port>#<dataset>).internal: built intobashclub-zsync.checkzfs_max_age,checkzfs_max_snapshot_count) and perfdata as checkzfs, so switching needs no new service discovery.com.sun:auto-snapshotnotfalseon the replica.zfs listof the source (one ssh call, passesbashclub-zsync-remotefor job users) and one of the target, at the end of the run and with-s; only the replicated datasets (syncvols), bookmarks ignored.run_checkzfs, called throughrun_monitor.internal(before: no services per dataset, only a warning).internal.checkzfswithout checkzfs installed:internalwith a warning. An unknown value: default with a warning.bashclub-checkzfsmoves fromdependstorecommends. apt keeps it on existing installations, andbashclub-zsyncnow installs where checkzfs is not published (Ubuntu; the fresh install test passed there). The CI fallback to the bookworm repo for Ubuntu stays for the update test: the release version 1.0.19 still depends on checkzfs.Why now
checkzfs 4.14 stops as soon as a bookmark exists (
'NoneType' object has no attribute 'add_snapshot'), and new configs havesource_bookmark=1. Reproduced again with zsync's own bookmarks;internalworks with them.Handbook
monitor_enginein the reference, concept, installation (TrueNAS/manual no longer download checkzfs), messages, Checkmk pages and "Neue Funktionen einschalten" (new section to switch, tested on the VM).monitor_engine=checkzfsonly.Tests
monitor_internal: service format like checkzfs, one line per dataset, bookmark present without a Python error,-safter a rollback (CRIT) and over the count threshold (WARN), default without the setting, unknown value.job_userextended: the internal check runs throughbashclub-zsync-remote.remote.shwithmonitor_internal job_user checkmk local_mode replication unprivileged: 6/6.🤖 Generated with Claude Code
Manuell nach
maingemergt (ce0d932), CI inkl. publish nach testing grün. Schließe den PR.Pull request closed