Better updates check

This commit is contained in:
Daniele Verducci 2022-05-28 12:41:04 +02:00
parent 9c1d598f64
commit a9f0b79fb9

View File

@ -215,5 +215,6 @@ COMMAND=echo "Core meltdown!"
# 1 1 * * * root apt update
DISABLED=True
ALARM_STRING_EQUAL=security updates available
REGEXP=.*\n(security updates available)
REGEXP=(security updates available|NO security updates available)
COMMAND=apt list --upgradable 2>/dev/null | grep -e "-security" && echo "security updates available" || echo "NO security updates available"
NOTIFY=START