Ad Widget

Collapse

Setting (manual) thresholds for overall disk space, RAM, CPU

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nilsjman
    Junior Member
    • Feb 2021
    • 3

    #1

    Setting (manual) thresholds for overall disk space, RAM, CPU

    First post!

    Zabbix Server 5.0.2

    We're monitoring several (~90) Windows HyperV VMs with mainly Windows Server 2016/2019. With filesystem discovery (vfs.fs.discovery) everything works fine.

    The sizes of the VMs (disk space, RAM, CPU) are defined in a contract. So let's say Client1 has subscribed to a VM with 16GB RAM, 4 CPU cores, 500GB disk space
    Is there a way to set these fixed thresholds (manually) for each VM? So that if for whatever reason the disk space exceeds the size in the contract there is an alarm.

    Alternatively it would be possible to have a calculated item that sums up every discovered vfs.fs.size[#FSNAME,total] item.
    If I do something like:
    Key: vfs.fs.size_calculated
    Formula: last("vfs.fs.size[C:,total]")+last("vfs.fs.size[D:,total]")+last("vfs.fs.size[E:,total]")+last("vfs.fs.size[F:,total]")+last("vfs.fs.size[G:,total]")
    There are errors if e.g. G: doesn't exist.

    Thankful for any input
  • nilsjman
    Junior Member
    • Feb 2021
    • 3

    #2
    Or is there a way to get the values which can be seen with e.g. Diskpart -> list disk?

    Comment

    • nilsjman
      Junior Member
      • Feb 2021
      • 3

      #3
      Okay I guess that'll work but how do I get a sum of all discovered FS in the first place or the whole size of the VHDX?

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4806

        #4
        Originally posted by nilsjman
        First post!
        Is there a way to set these fixed thresholds (manually) for each VM? So that if for whatever reason the disk space exceeds the size in the contract there is an alarm.
        Use host macros. You can create trigger with template and still use macros from host level in it.

        Comment

        Working...