Ad Widget

Collapse

ESX: show free disk space on Zabbix Map

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guy_Inkognito
    Junior Member
    • Dec 2020
    • 2

    #1

    ESX: show free disk space on Zabbix Map

    Hi,

    I have several Windows Hosts on my Zabbix Map, where free Disk Space is shown. Now I am trying this for my ESX Hosts, but it does not work.

    Working Value for Windows Host:
    Volume C: {Hostname:vfs.fs.size[C:,pfree].last(0)} free

    Not working Value for ESX Host:
    Datastore 01: {Hostname:vmware.hv.datastore.size[datastorename,pfree].last(0)} free shows me "Datastore 01: *UNKNOWN* free" on my Zabbix Map. The Item itself is working fine, it is coming from the built in Template for VMware in Zabbix. I have also tried this with the full Path of /vmfs/...

    The Item looks like this:
    vmware.hv.datastore.size[{$VMWARE.URL},{HOST.HOST},datastorename,pfree]

    What am I doing wrong here? Thank you!
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    writing the key in an element on the map should be exactly the same as in items, given the macro expansion.
    You have omitted the values of the macros. See the latest data for the correct full name of the key you need.
    Last edited by Hamardaban; 09-12-2020, 12:43.

    Comment

    • Guy_Inkognito
      Junior Member
      • Dec 2020
      • 2

      #3
      There was missing a comma and the generic Hostname from Autodiscover, I used the real Hostname there. Now it works, thanks. But how can I cut that value? It shows something like 23,4567% free. 23,45% would be enough.

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        .... use preprocessing at item...

        Comment

        Working...