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.
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:

I modified the trigger to the following and testing if this is working:
I think this should fix it. Any comments on this?
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")
Please see the history based on a broken disk that is replaced by a new one:
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?