Ad Widget

Collapse

possible ? => sum ["vfs.fs.size[/,free]", "fs.fs.size[/var,free]"]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • efloret
    Junior Member
    • Aug 2009
    • 2

    #1

    possible ? => sum ["vfs.fs.size[/,free]", "fs.fs.size[/var,free]"]

    Hello,

    i'm trying to do a check equivalent to this :sum ["vfs.fs.size[/,free]", "fs.fs.size[/var,free]"]

    I'm currently working with a VmWare platform havinf a little less than 200 computers and we're running out of SAN space.

    The idea is to get the total free space by vmdk (a vmdk containing one or more partition) so that we can then yell on the managers for oversizing their virtual machine and try to retrieve the unused disk space.

    VM 1:

    VMDK1 :
    / : total 10gb, free 2gb
    /var : total 20 gb, free 18gb

    VMDK 2:
    /opt : total 20gb, free 1gb.


    The idea in this case is to have two checks for this virtual machine :
    One with free space on vmdk 1 being the sum of free space of the / and the /var partition (here being 20gb free).
    The second one being free space on vmdk 2, which is also the sum of partition but here no issue since there's only one.


    I hope you get the idea, thanks a lot in advance for any input concerning this.

    Best regards,
    Emilien
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    you can create a trigger that would fire if two or more specified partitions have total *size exceed or drop below a particular threshold.

    you can't (as far as i know) automatically sum all existing, mounted partitions short of userparameter.
    Zabbix 3.0 Network Monitoring book

    Comment

    • efloret
      Junior Member
      • Aug 2009
      • 2

      #3
      Ok I understand, I'll try and see if I can use something like that but I'm afraid triggers does not correspond to what I need here.

      Anyway I suppose that otherwise I can just run an external script that would parse the output of the df command but it would have been great if this was possible without resorting to external scripts.


      Thanks a lot for the answer.

      Comment

      Working...