Ad Widget

Collapse

Template NetApp AFF A700 HTTP - Disk state trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michael.weber
    Senior Member
    • Nov 2015
    • 121

    #1

    Template NetApp AFF A700 HTTP - Disk state trigger

    Hello,

    if a HDD/SSD is replaced in a NetApp system the new disk can be marked as "spare". Based on that the trigger will throw a warning but that is not correct.
    Code:
    (last(/NetApp AFF A700 by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}],#1)<>last(/NetApp AFF A700 by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}],#2) and last(/NetApp AFF A700 by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}])="present")
    Based on the trigger the disk should become "present", but that is not correct. "Spare" is a valid state, too.
    Please see the history based on a broken disk that is replaced by a new one:
    Click image for larger version

Name:	image.png
Views:	344
Size:	7.4 KB
ID:	452100
    I modified the trigger to the following and testing if this is working:
    Code:
    ((last(/NetApp by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}],#1)<>last(/NetApp by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}],#2))=1 and last(/NetApp by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}])="present") or last(/NetApp by HTTP/netapp.disk.state[{#NODENAME},{#DISKNAME}])="spare"

    I think this should fix it. Any comments on this?​
Working...