5.0
2020-08-26T14:40:16Z
Templates/Server hardware
Template QNAP RAID status
Template QNAP RAID status
Templates/Server hardware
RAID
RAID devices discovery
vfs.dev.raid.discovery
1h
AND
{#DEVNAME}
{$VFS.DEV.RAID.DISCOVERY.NOT_MATCHES}
NOT_MATCHES_REGEX
A
{#DEVNAME}
{$VFS.DEV.RAID.DISCOVERY.MATCHES}
B
{#DEVNAME}: RAID active drives
raid.active[{#DEVNAME}]
15m
RAID
{#DEVNAME}: RAID failed drives
raid.failed[{#DEVNAME}]
15m
RAID
{#DEVNAME}: RAID status
raid.state[{#DEVNAME}]
5m
RAID
{last()}<1
{#DEVNAME}: RAID degraded mode detected
DISASTER
{#DEVNAME}: RAID working drives
raid.working[{#DEVNAME}]
15m
RAID
{$VFS.DEV.RAID.DISCOVERY.MATCHES}
.+
{$VFS.DEV.RAID.DISCOVERY.NOT_MATCHES}
^\s$
Template QNAP SMART status
Template QNAP SMART status
Templates/Server hardware
SMART
SMART devices discovery
vfs.dev.smart.discovery
1h
AND
{#DEVNAME}
{$VFS.DEV.SMART.DISCOVERY.NOT_MATCHES}
NOT_MATCHES_REGEX
A
{#DEVNAME}
{$VFS.DEV.SMART.DISCOVERY.MATCHES}
B
{#DEVNAME}: SMART Current Pending Sector Count
hdd.smart[{#DEVNAME},Current_Pending_Sector]
1h
Count of "unstable" sectors (waiting to be remapped, because of unrecoverable read errors). If an unstable sector is subsequently read successfully, the sector is remapped and this value is decreased. Read errors on a sector will not remap the sector immediately (since the correct value cannot be read and so the value to remap is not known, and also it might become readable later); instead, the drive firmware remembers that the sector needs to be remapped, and will remap it the next time it's written.
SMART
{#DEVNAME}: SMART Uncorrectable Sector Count
hdd.smart[{#DEVNAME},Offline_Uncorrectable]
1h
The total count of uncorrectable errors when reading/writing a sector. A rise in the value of this attribute indicates defects of the disk surface and/or problems in the mechanical subsystem.
SMART
{#DEVNAME}: SMART Read Error Rate
hdd.smart[{#DEVNAME},Raw_Read_Error_Rate]
1h
Stores data related to the rate of hardware read errors that occurred when reading data from a disk surface. The raw value has different structure for different vendors and is often not meaningful as a decimal number.
SMART
{#DEVNAME}: SMART Reallocated Event Count
hdd.smart[{#DEVNAME},Reallocated_Event_Count]
1h
Count of remap operations. The raw value of this attribute shows the total count of attempts to transfer data from reallocated sectors to a spare area. Both successful and unsuccessful attempts are counted.
SMART
{#DEVNAME}: SMART Reallocated Sector Count
hdd.smart[{#DEVNAME},Reallocated_Sector_Ct]
1h
Count of reallocated sectors. The raw value represents a count of the bad sectors that have been found and remapped.
Thus, the higher the attribute value, the more sectors the drive has had to reallocate. This value is primarily used as a metric of the life expectancy of the drive; a drive which has had any reallocations at all is significantly more likely to fail in the immediate months.
SMART
{Template QNAP SMART status:hdd.smart[{#DEVNAME},Raw_Read_Error_Rate].last()}>0 or {Template QNAP SMART status:hdd.smart[{#DEVNAME},Reallocated_Sector_Ct].last()}>0 or {Template QNAP SMART status:hdd.smart[{#DEVNAME},Reallocated_Event_Count].last()}>0 or {Template QNAP SMART status:hdd.smart[{#DEVNAME},Current_Pending_Sector].last()}>0 or {Template QNAP SMART status:hdd.smart[{#DEVNAME},Offline_Uncorrectable].last()}>0
{#DEVNAME}: SMART value is increased
HIGH
{$VFS.DEV.SMART.DISCOVERY.MATCHES}
.+
{$VFS.DEV.SMART.DISCOVERY.NOT_MATCHES}
^\s$