Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mk_apt_hook for automatic cache handling after package installations
Checkmk treasures provide some useful scripts, see: * i.e. /opt/omd/versions/2.0.0p23.cre/share/doc/check_mk/treasures * https://github.com/tribe29/checkmk/blob/master/doc/treasures When mk_apt_hook is installed in /etc/apt/apt.conf.d/ then after every package installation (included updates) the cache file gets adjusted so we don't have outdated cache information. This is useful especially when installing outstanding security updates, then after they get applied monitoring status corresponds to what's actually present on the system (instead of dealing with outdated cache files). Adapted the provided sample and touch /var/lib/check_mk_agent/cache/*mk_apt.cache only if directory exists. Thx @mikagrml for the hint with this checkmk treasure.
- Loading branch information