155 lines
7.3 KiB
XML
155 lines
7.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<zabbix_export>
|
|
<version>5.0</version>
|
|
<date>2020-09-29T12:47:08Z</date>
|
|
<groups>
|
|
<group>
|
|
<name>Templates</name>
|
|
</group>
|
|
</groups>
|
|
<templates>
|
|
<template>
|
|
<template>8o_smartcheck</template>
|
|
<name>8o_S.M.A.R.T</name>
|
|
<groups>
|
|
<group>
|
|
<name>Templates</name>
|
|
</group>
|
|
</groups>
|
|
<applications>
|
|
<application>
|
|
<name>Disk-Health</name>
|
|
</application>
|
|
</applications>
|
|
<discovery_rules>
|
|
<discovery_rule>
|
|
<name>Devices</name>
|
|
<type>TRAP</type>
|
|
<key>8o_smartcheck.disco_devs</key>
|
|
<delay>0</delay>
|
|
<item_prototypes>
|
|
<item_prototype>
|
|
<name>{#DEVNAME}: Smart Health assesement</name>
|
|
<type>TRAP</type>
|
|
<key>8o_smartcheck.[{#DEVNAME}.health]</key>
|
|
<delay>0</delay>
|
|
<history>30d</history>
|
|
<trends>0</trends>
|
|
<value_type>TEXT</value_type>
|
|
<applications>
|
|
<application>
|
|
<name>Disk-Health</name>
|
|
</application>
|
|
</applications>
|
|
<trigger_prototypes>
|
|
<trigger_prototype>
|
|
<expression>{str(OK)}<>1</expression>
|
|
<name>S.M.A.R.T Health Assesment</name>
|
|
<priority>HIGH</priority>
|
|
<description>SmartCtl no longer reports OK or PASSED for a given disk</description>
|
|
<manual_close>YES</manual_close>
|
|
</trigger_prototype>
|
|
<trigger_prototype>
|
|
<expression>({nodata(2h)}=1) and ({#IS_EXTERNAL}=0)</expression>
|
|
<name>S.M.A.R.T Health Assesment - NO DATA</name>
|
|
<priority>WARNING</priority>
|
|
<description>No infos received for disk. Either devices vanished or Sender does not work</description>
|
|
</trigger_prototype>
|
|
</trigger_prototypes>
|
|
</item_prototype>
|
|
<item_prototype>
|
|
<name>{#DEVNAME}: Power cycle count</name>
|
|
<type>TRAP</type>
|
|
<key>8o_smartcheck.[{#DEVNAME}.power_cycle_count]</key>
|
|
<delay>0</delay>
|
|
<history>30d</history>
|
|
<trends>90d</trends>
|
|
<applications>
|
|
<application>
|
|
<name>Disk-Health</name>
|
|
</application>
|
|
</applications>
|
|
</item_prototype>
|
|
<item_prototype>
|
|
<name>{#DEVNAME}: Power on hours</name>
|
|
<type>TRAP</type>
|
|
<key>8o_smartcheck.[{#DEVNAME}.power_on_hours]</key>
|
|
<delay>0</delay>
|
|
<history>30d</history>
|
|
<trends>90d</trends>
|
|
<applications>
|
|
<application>
|
|
<name>Disk-Health</name>
|
|
</application>
|
|
</applications>
|
|
</item_prototype>
|
|
<item_prototype>
|
|
<name>{#DEVNAME}: Temperature</name>
|
|
<type>TRAP</type>
|
|
<key>8o_smartcheck.[{#DEVNAME}.temperature]</key>
|
|
<delay>0</delay>
|
|
<history>30d</history>
|
|
<trends>90d</trends>
|
|
<value_type>FLOAT</value_type>
|
|
<applications>
|
|
<application>
|
|
<name>Disk-Health</name>
|
|
</application>
|
|
</applications>
|
|
<trigger_prototypes>
|
|
<trigger_prototype>
|
|
<expression>{avg(1h)}>60 or {avg(1h)}<-1</expression>
|
|
<name>S.M.A.R.T Temperature warning</name>
|
|
<priority>WARNING</priority>
|
|
<description>SmartCtl no longer reports OK or PASSED for a given disk</description>
|
|
<manual_close>YES</manual_close>
|
|
</trigger_prototype>
|
|
</trigger_prototypes>
|
|
</item_prototype>
|
|
</item_prototypes>
|
|
<lld_macro_paths>
|
|
<lld_macro_path>
|
|
<lld_macro>{#DEVNAME}</lld_macro>
|
|
<path>$.name</path>
|
|
</lld_macro_path>
|
|
<lld_macro_path>
|
|
<lld_macro>{#DEVTYPE}</lld_macro>
|
|
<path>$.type</path>
|
|
</lld_macro_path>
|
|
<lld_macro_path>
|
|
<lld_macro>{#IS_EXTERNAL}</lld_macro>
|
|
<path>$.isExternal</path>
|
|
</lld_macro_path>
|
|
<lld_macro_path>
|
|
<lld_macro>{#IS_SSD}</lld_macro>
|
|
<path>$.isSSD</path>
|
|
</lld_macro_path>
|
|
<lld_macro_path>
|
|
<lld_macro>{#SN}</lld_macro>
|
|
<path>$.sn</path>
|
|
</lld_macro_path>
|
|
<lld_macro_path>
|
|
<lld_macro>{#ROTATIONSPEED}</lld_macro>
|
|
<path>$.rotations</path>
|
|
</lld_macro_path>
|
|
<lld_macro_path>
|
|
<lld_macro>{#LOGI_BKSIZ}</lld_macro>
|
|
<path>$.lbs</path>
|
|
</lld_macro_path>
|
|
<lld_macro_path>
|
|
<lld_macro>{#MODEL}</lld_macro>
|
|
<path>$.model</path>
|
|
</lld_macro_path>
|
|
</lld_macro_paths>
|
|
<preprocessing>
|
|
<step>
|
|
<type>JSONPATH</type>
|
|
<params>$.devices</params>
|
|
</step>
|
|
</preprocessing>
|
|
</discovery_rule>
|
|
</discovery_rules>
|
|
</template>
|
|
</templates>
|
|
</zabbix_export>
|