Checkmk-Spool nach Agent-Update nicht mehr beschreibbar für den Job-Benutzer #185
Labels
No labels
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bashclub/zsync#185
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Befund (pve2, 2026-11-12):
[WARN] /var/lib/check_mk_agent/spool is not writable for zsync-pverz1-spille-it-de, 87000_zsync-pverz1.spille-it.de is not stored.Der Spool stand aufroot:root2755 stattroot:bashclub-zsync3775.Ursache: Das postinst von cmk-push-agent führt bei jedem Update
install -d -o root -g root -m 0755 /var/lib/check_mk_agent/spoolaus. Die Rechte, diebashclub-zsync-setupeinmal setzt, gehen damit verloren; der Job-Benutzer darf sie selbst nicht zurücksetzen.Lösung:
run_aszusätzlichExecStartPre=+-/bin/sh -c '… install -d -m 3775 -g bashclub-zsync /var/lib/check_mk_agent/spool':+läuft trotzUser=als root,-bricht den Lauf bei einem Fehler nicht ab; nur wenn/var/lib/check_mk_agentexistiert.Unabhängig davon sollte das postinst von cmk-push-agent einen bestehenden Spool nicht überschreiben (Session „Push Agent für Checkmk“ ist informiert).
thorsten.spille referenced this issue2026-11-27 22:20:13 +01:00