Setup: own checkzfs_prefix per configuration; --keep 0 without label; clear warning on a shared spool file #181

Closed
opened 2026-11-11 23:35:48 +01:00 by thorsten.spille · 0 comments
Owner

Reported on pverz2 (1.0.19+git231.8a1ff30): two configurations of the same source created with bashclub-zsync-setup (pverz1-ssd, pverz1-hdd, each with its own job user) both got checkzfs_prefix=zsync from the template and wrote the same spool file /var/lib/check_mk_agent/spool/87000_zsync. It belonged to zsync-pverz1-hdd, so pverz1-ssd was not monitored at all; the only hint was a warning about file permissions.

Decision: the prefix is set by the setup, a manual change makes no sense.

  1. Setup: question and option --checkzfs-prefix, default zsync-<name>; a prefix another /etc/bashclub/*.conf uses is refused.
  2. bashclub-zsync: a clear message in each run when another configuration writes the same spool file (same checkzfs_prefix and checkzfs_spool_maxage, both local or both on the same source), naming it.
  3. Setup without the internal snapshot engine: with --keep 0 (snapshots of another tool, e.g. zfs-auto-snapshot) no question for the label, the labels to keep here without the label of zsync.

Existing configurations are not renamed: the prefix is part of the Checkmk service names.

Reported on pverz2 (1.0.19+git231.8a1ff30): two configurations of the same source created with `bashclub-zsync-setup` (pverz1-ssd, pverz1-hdd, each with its own job user) both got `checkzfs_prefix=zsync` from the template and wrote the same spool file `/var/lib/check_mk_agent/spool/87000_zsync`. It belonged to zsync-pverz1-hdd, so pverz1-ssd was not monitored at all; the only hint was a warning about file permissions. Decision: the prefix is set by the setup, a manual change makes no sense. 1. Setup: question and option `--checkzfs-prefix`, default `zsync-<name>`; a prefix another `/etc/bashclub/*.conf` uses is refused. 2. `bashclub-zsync`: a clear message in each run when another configuration writes the same spool file (same `checkzfs_prefix` and `checkzfs_spool_maxage`, both local or both on the same source), naming it. 3. Setup without the internal snapshot engine: with `--keep 0` (snapshots of another tool, e.g. zfs-auto-snapshot) no question for the label, the labels to keep here without the label of zsync. Existing configurations are not renamed: the prefix is part of the Checkmk service names.
Sign in to join this conversation.
No labels
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bashclub/zsync#181
No description provided.