Ad Widget

Collapse

Setting up triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sparky
    Member
    • Jun 2010
    • 54

    #1

    Setting up triggers

    Hi Guys

    I've come quite a way getting my Zabbix installation up and running, but stuck on something now.

    I have written a few custom triggers that are all working as expected, but I'm running into issues when trying to write something as a percentage of something else.

    i.e. I would like a trigger to fire off when drive space is less than 30% of total space for the drive in question. Same thing for memory, less than x% of total installed memory.

    I know this is a simple request, but for the life of me I cannot figure it out.
  • harmonica
    Senior Member
    • Jan 2009
    • 251

    #2
    Hi,

    Memory - {XXXX:vm.memory.size[free].avg(600)}<{XXXX:vm.memory.size[total].last(0)}*0.3
    Disc space - {XXXX:vfs.fs.size[c:,free].last(0)}<{XXXX:vfs.fs.size[c:,total].last(0)}*0.3

    Comment

    • Sparky
      Member
      • Jun 2010
      • 54

      #3
      Thanks for the quick response dude, will try it out now.

      Comment

      Working...