Ad Widget

Collapse

Monitoring "apt update" on discovered VM (VMWARE)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eglyn
    Junior Member
    • Jan 2022
    • 16

    #1

    Monitoring "apt update" on discovered VM (VMWARE)

    Hi all ,

    I monitor all VM from my Vsphere cluster with zabbix and the integrated system to discover and monitor vmware.

    It works great, but i would like to check if apt updates are available on VM guests running Linux (Debian).

    There is a template wich works with standard monitoring (here --> https://iceburn.medium.com/monitor-r...x-e2de867d566a)

    But, I cannot use this template because I can't assignate a template to a discovered VM, and there is no agent running on this VM :/

    So, how can I do ? Do i need to duplicate all VM in Zabbix to add agent and monitor apt ?

    thx !
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    If you want to get "inside" the host, then you need an agent. Or somekind of script based (ssh) thingie...

    Comment

    • astro_Avery
      Junior Member
      • May 2021
      • 5

      #3
      I use the following code to monitor apt updates:
      Code:
      #!/bin/bash
      updateVarNum=`/usr/lib/update-notifier/apt-check --human-readable` > /dev/null
      echo `expr "$updateVarNum" : '\([0-9]*\)'`
      Then I create an ssh agent item to run the script.

      Comment

      Working...