I want to integrate the update status of the base system into my monitoring. Is there an easy way to query freebsd-update(8) or any other tool to give me information on whether there are updates available?
I thought of a way similar to what I can do with pkg:
I thought of the following possibilities to do the same with the base system, but none was satisfying for me so far:
I thought of a way similar to what I can do with pkg:
pkg audit -q | wc -l for example will give me an integer indicating the number of installed packages that have open vulnerabilities. I can perfectly integrate that metric into my monitoring.I thought of the following possibilities to do the same with the base system, but none was satisfying for me so far:
- Running
freebsd-update cronperiodically will produce mails from cron and is not nice to integrate into a monitoring like Zabbix. - freebsd-version(1) shows me the current kernel and base system version of my installation. Can I query the latest version online and compare it? It would however not indicate if my system configuration really needs an update.
- If freebsd-update(8) runs periodically with
cronorfetch, can I somehow how read the update status from/var/db/freebsd-update?