Ad Widget

Collapse

SNMP value is changing while in error, how to report again ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Philippe
    Member
    • Oct 2004
    • 77

    #1

    SNMP value is changing while in error, how to report again ?

    Hi,

    i monitor my dell servers RAID SCSI disks with SNMP.
    normal value for being online is 3
    so, my trigger rule is:
    {SRVR_Server10:enterprises0.last(0)}#3

    and my action rule is:

    when trigger becomes OFF
    {HOSTNAME} disk 0 is online!


    when trigger becomes ON
    {HOSTNAME} disk 0 is in ERROR!

    so, i removed the disk and zabbix sended an e-mail with latest value 11
    (which means disk is removed)
    When i replace the disk, value becomes 24 (rebuilding) but i don't get an e-mail because it still is ON so zabbix thinks that it is not necessary to send a new e-mail with a new value.

    But i want to receive an e-mail whenever a value changed, only not for value 3 witch means that it is online.

    how can i do that ?

    regards,
    Phil. the zabbix lover! (only during professional time ).
  • Nate Bell
    Senior Member
    • Feb 2005
    • 141

    #2
    I'm not entirely certain what behavior you are looking for, but I'll give it a shot. What if you set your trigger to activate when "The Trigger Becomes: ON or OFF". That way, it sends you the value 11 when it goes down, and the value 24 when it comes back online...I think

    Comment

    • Philippe
      Member
      • Oct 2004
      • 77

      #3
      The behavior i want is when the value is 3, then it must be ON (triggered)
      But when you remove a disk, it goes to 11 (removed) and when you add another disk, the rebuild starts and the value becomes 24, all that happens when it still is in the first error.
      there are also other values:

      Possible states:
      0: Unknown
      1: Ready - Operational.
      2: Failed - Not operational.
      3: Online - Operational.
      4: Offline - The drive is not available to the RAID controller.
      6: Degraded - Refers to a fault-tolerant array/virtual disk that has a failed disk.
      7: Recovering - Refers to state of recovering from bad blocks on disks.
      11: Removed - Indicates that array disk has been removed.
      15: Resynching - Indicates one of the following types of disk operations: Transform Type, Reconfiguration, and Check Consistency.
      24: Rebuild
      25: No Media - CD-ROM or removable disk has no media.
      26: Formatting - In the process of formatting.
      28: Diagnostics - Diagnostics are running.
      35: Initializing: Applies only to virtual disks on PERC, PERC 2/SC, and PERC 2/DC controllers.

      So, the problem is that it goes down and then i get an e-mail that there is a problem with disk 0 by example and i see latest value 11.
      Then if i add another disk, the value changes to 24, it stills stays in error but i don't get an e-mail because it is still in error and not value 3.
      When it becomes online again, i get an e-mail but i didn't saw all the other values passing by which can also be very interesting to know.

      So, what i want is a trigger that triggers if the value is NOT 3 and triggers everytime again when there is another value like 24, 11, 6, 15,...
      i thought to make a trigger like this:

      SRVR_Server10:enterprises0.last(0)}#3|{SRVR_Server 10:enterprises0.diff(0)}>0

      but i'm not sure about it, and it seems that it's not working right.


      what is the right trigger expression for this one ?

      cheers,
      Phil.

      Comment

      Working...