Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nikimaxim authored Aug 1, 2020
1 parent bd2f76d commit 6afa70f
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions Template smartmonitor.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>4.4</version>
<date>2020-03-31T10:04:28Z</date>
<version>5.0</version>
<date>2020-08-01T17:09:21Z</date>
<groups>
<group>
<name>Templates Users</name>
Expand Down Expand Up @@ -46,7 +46,7 @@
<discovery_rule>
<name>Smartctl storage discovery</name>
<key>storage.discovery</key>
<delay>1d;1h/1-7,08:00-21:00</delay>
<delay>12h</delay>
<filter>
<conditions>
<condition>
Expand Down Expand Up @@ -104,6 +104,8 @@
<type>REGEX</type>
<params>(?:SMART overall-health self-assessment test result:|SMART Health Status:) +\b([\S ]+)
\1</params>
<error_handler>CUSTOM_ERROR</error_handler>
<error_handler_params>Not supported</error_handler_params>
</step>
</preprocessing>
<master_item>
Expand Down Expand Up @@ -144,12 +146,8 @@
<preprocessing>
<step>
<type>REGEX</type>
<params>(?:Vendor: +(.+)\nProduct:|[Dd]evice [Mm]odel:|[Mm]odel [Nn]umber:) +(.+)
\1 \2</params>
</step>
<step>
<type>LTRIM</type>
<params><![CDATA[ ]]></params>
<params>(?:Vendor:|Product:|Device [Mm]odel:|Model [Nn]umber:).+ (.+)
\1</params>
</step>
</preprocessing>
<master_item>
Expand All @@ -171,7 +169,7 @@
<preprocessing>
<step>
<type>REGEX</type>
<params>[Ss]erial [Nn]umber:\s+([\d\w-]+)
<params>(?:Serial [Nn]umber:).+ ([\d\w-]+)
\1</params>
</step>
</preprocessing>
Expand Down Expand Up @@ -206,6 +204,8 @@ NVME</description>
<type>REGEX</type>
<params>(?:5 Reallocated|Elements in grown defect list:|5 Retired_Block_Count).+ ([0-9]+)
\1</params>
<error_handler>CUSTOM_ERROR</error_handler>
<error_handler_params>Not supported</error_handler_params>
</step>
</preprocessing>
<master_item>
Expand Down Expand Up @@ -259,6 +259,8 @@ NVME</description>
<step>
<type>MULTIPLIER</type>
<params>3600</params>
<error_handler>CUSTOM_ERROR</error_handler>
<error_handler_params>Not supported</error_handler_params>
</step>
</preprocessing>
<master_item>
Expand Down Expand Up @@ -312,10 +314,16 @@ NVME</description>
</application>
</applications>
<preprocessing>
<step>
<type>JAVASCRIPT</type>
<params>return value.replace(/\s\(.+\)/g, ' ')</params>
</step>
<step>
<type>REGEX</type>
<params>(?:194 Temperature[^(\n]+|190 Airflow_Temperature[^(\n]+|Drive Temperature:|Temperature:|190 Temperature_Case).+ ([0-9]+)
<params>(?:190 Temperature|190 Airflow_Temperature|194 Temperature|Drive Temperature:|Temperature:).+ ([0-9]+)
\1</params>
<error_handler>CUSTOM_ERROR</error_handler>
<error_handler_params>Not supported</error_handler_params>
</step>
</preprocessing>
<master_item>
Expand Down

0 comments on commit 6afa70f

Please sign in to comment.