Ad Widget

Collapse

Monitoring security updates with delays

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zakpatrik
    Junior Member
    • Sep 2021
    • 1

    #1

    Monitoring security updates with delays

    Hello,

    I have a question about monitoring security updates. I use this short script to monitor security updates. I need to set up a customizer so that zabbix only informs about updates older than 2 days. On the server, security updates are installed automatically every day so I only need to know about updates that are older than two days to know that updates have not been installed.


    Code:
    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
    source: https://sysadmin-ramblings.blogspot....te-checks.html
Working...