Ad Widget

Collapse

e-mail alert (action) query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • engineer
    Junior Member
    • Mar 2010
    • 25

    #1

    e-mail alert (action) query

    Hi

    I have an alert, that when a disk has 1% free disk space, I can an e-mail alert notifying us of this critical situation.

    I have it working, but what happens is that any disk with 1%, 10%, 11% etc all send this notification. This is how i have it:

    (A) Trigger description like "Disk"
    AND
    (B) Trigger description like "1 %"

    Is there a way to set it so it only works with actually 1 %, and not everything that includes a 1?

    Thanks in advance
  • yatesco
    Junior Member
    • May 2010
    • 23

    #2
    Originally posted by engineer
    Hi

    I have an alert, that when a disk has 1% free disk space, I can an e-mail alert notifying us of this critical situation.

    I have it working, but what happens is that any disk with 1%, 10%, 11% etc all send this notification. This is how i have it:

    (A) Trigger description like "Disk"
    AND
    (B) Trigger description like "1 %"

    Is there a way to set it so it only works with actually 1 %, and not everything that includes a 1?

    Thanks in advance

    I don't know the correct way but can you not add a "and not >= 10%" clause. Yuck.

    Comment

    • subba5678
      Senior Member
      • May 2010
      • 132

      #3
      what is the backup script you used to take Database backup ??

      Thanks,
      Subbu

      Comment

      • James Wells
        Senior Member
        • Jun 2005
        • 664

        #4
        Greetings,
        Originally posted by engineer
        I have an alert, that when a disk has 1% free disk space, I can an e-mail alert notifying us of this critical situation.
        Not sure what item value type and trigger function you are using, bu the proper way to do this is with a value type of float and then compare that numeric value. You are saying 1%, so your trigger would be;
        Code:
        {foo:vfs.fs.size[<disk>,pfree].last(0)}<1.1
        Or, if you are not using the pfree option, you could do a complex trigger such as;
        Code:
        {foo:vfs.fs.size[<disk>,free].last(0)}<({foo:vfs.fs.size[<disk>,total].last(0)}*0.011)
        Unofficial Zabbix Developer

        Comment

        Working...