Skip to content

Instantly share code, notes, and snippets.

@thomasjsn
Created January 13, 2018 22:15
Show Gist options
  • Save thomasjsn/5750cbd97fd31fbcc0bb32b945918323 to your computer and use it in GitHub Desktop.
Save thomasjsn/5750cbd97fd31fbcc0bb32b945918323 to your computer and use it in GitHub Desktop.
Zabbix APT updates user parameters
UnsafeUserParameters=1
Timeout=10
UserParameter=apt.available.updates,updates=$(/usr/lib/update-notifier/apt-check 2>&1);echo $updates | cut -d ";" -f 1
UserParameter=apt.security.updates,updates=$(/usr/lib/update-notifier/apt-check 2>&1);echo $updates | cut -d ";" -f 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment