Skip to content

Commit

Permalink
OS Linux: VOL: triggers fises
Browse files Browse the repository at this point in the history
Rewrited VOL triggers to use proper severities and triggers prototypes
dependencies.
  • Loading branch information
kloczek committed Jun 7, 2019
1 parent f525092 commit 8625760
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 121 deletions.
162 changes: 41 additions & 121 deletions OS Linux/OS Linux.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.2</version>
<date>2019-06-07T18:59:17Z</date>
<date>2019-06-07T19:32:02Z</date>
<groups>
<group>
<name>Templates</name>
Expand Down Expand Up @@ -3869,38 +3869,6 @@ Value is calculated by read number of sectors multiplied by 512.</description>
</item_prototype>
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;15</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>VOL::{#FSNAME}::free {ITEM.VALUE}</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
<status>0</status>
<priority>1</priority>
<description>FS volume free space is less than 15%.</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;15 and {OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&gt;10</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>VOL::{#FSNAME}::free {ITEM.VALUE}</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
<status>0</status>
<priority>1</priority>
<description>FS volume free space is between 85% and 90%.</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=1</expression>
<recovery_mode>0</recovery_mode>
Expand All @@ -3910,11 +3878,27 @@ Value is calculated by read number of sectors multiplied by 512.</description>
<correlation_tag/>
<url/>
<status>0</status>
<priority>3</priority>
<priority>5</priority>
<description>FS volume free space is less than 1%.</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
<dependencies>
<dependency>
<name>VOL::{#FSNAME}::free {ITEM.VALUE}</name>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=5</expression>
<recovery_expression/>
</dependency>
<dependency>
<name>VOL::{#FSNAME}::free {ITEM.VALUE}</name>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=10</expression>
<recovery_expression/>
</dependency>
<dependency>
<name>VOL::{#FSNAME}::free {ITEM.VALUE}</name>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=15</expression>
<recovery_expression/>
</dependency>
</dependencies>
<tags/>
</trigger_prototype>
<trigger_prototype>
Expand All @@ -3933,33 +3917,17 @@ Value is calculated by read number of sectors multiplied by 512.</description>
<dependencies>
<dependency>
<name>VOL::{#FSNAME}::free {ITEM.VALUE}</name>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;15</expression>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=10</expression>
<recovery_expression/>
</dependency>
<dependency>
<name>VOL::{#FSNAME}::free {ITEM.VALUE}</name>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=10</expression>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=15</expression>
<recovery_expression/>
</dependency>
</dependencies>
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=5 and {OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&gt;1</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>VOL::{#FSNAME}::free {ITEM.VALUE}</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
<status>0</status>
<priority>3</priority>
<description>FS volume free space is between 1% and 5%.</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=10</expression>
<recovery_mode>0</recovery_mode>
Expand All @@ -3976,28 +3944,12 @@ Value is calculated by read number of sectors multiplied by 512.</description>
<dependencies>
<dependency>
<name>VOL::{#FSNAME}::free {ITEM.VALUE}</name>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;15</expression>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=15</expression>
<recovery_expression/>
</dependency>
</dependencies>
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=10 and {OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&gt;5</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>VOL::{#FSNAME}::free {ITEM.VALUE}</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
<status>0</status>
<priority>2</priority>
<description>FS volume free space is between 90% and 95%.</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}&lt;=15</expression>
<recovery_mode>0</recovery_mode>
Expand All @@ -4008,7 +3960,7 @@ Value is calculated by read number of sectors multiplied by 512.</description>
<url/>
<status>0</status>
<priority>1</priority>
<description>FS volume free space is &lt;=15%.</description>
<description>FS volume free space is less than 15%.</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
Expand All @@ -4030,22 +3982,6 @@ Value is calculated by read number of sectors multiplied by 512.</description>
<dependencies/>
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.inode[{#FSNAME},pfree].last()}&lt;15 and {OS Linux:vfs.fs.inode[{#FSNAME},pfree].last()}&gt;10</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>VOL::{#FSNAME}::inodes::free {ITEM.VALUE}</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
<status>0</status>
<priority>1</priority>
<description>FS volume inodes free space is between 15% and 10%.</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.inode[{#FSNAME},pfree].last()}&lt;=1</expression>
<recovery_mode>0</recovery_mode>
Expand All @@ -4055,11 +3991,27 @@ Value is calculated by read number of sectors multiplied by 512.</description>
<correlation_tag/>
<url/>
<status>0</status>
<priority>3</priority>
<priority>5</priority>
<description>FS volume inodes free space is less than 1%.</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
<dependencies>
<dependency>
<name>VOL::{#FSNAME}::inodes::free {ITEM.VALUE}</name>
<expression>{OS Linux:vfs.fs.inode[{#FSNAME},pfree].last()}&lt;15</expression>
<recovery_expression/>
</dependency>
<dependency>
<name>VOL::{#FSNAME}::inodes::free {ITEM.VALUE}</name>
<expression>{OS Linux:vfs.fs.inode[{#FSNAME},pfree].last()}&lt;=5</expression>
<recovery_expression/>
</dependency>
<dependency>
<name>VOL::{#FSNAME}::inodes::free {ITEM.VALUE}</name>
<expression>{OS Linux:vfs.fs.inode[{#FSNAME},pfree].last()}&lt;=10</expression>
<recovery_expression/>
</dependency>
</dependencies>
<tags/>
</trigger_prototype>
<trigger_prototype>
Expand Down Expand Up @@ -4089,22 +4041,6 @@ Value is calculated by read number of sectors multiplied by 512.</description>
</dependencies>
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.inode[{#FSNAME},pfree].last()}&lt;=5 and {OS Linux:vfs.fs.inode[{#FSNAME},pfree].last()}&gt;1</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>VOL::{#FSNAME}::inodes::free {ITEM.VALUE}</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
<status>0</status>
<priority>3</priority>
<description>FS volume inodes free space is between 5% and 1%.</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.inode[{#FSNAME},pfree].last()}&lt;=10</expression>
<recovery_mode>0</recovery_mode>
Expand All @@ -4127,22 +4063,6 @@ Value is calculated by read number of sectors multiplied by 512.</description>
</dependencies>
<tags/>
</trigger_prototype>
<trigger_prototype>
<expression>{OS Linux:vfs.fs.inode[{#FSNAME},pfree].last()}&lt;=10 and {OS Linux:vfs.fs.inode[{#FSNAME},pfree].last()}&gt;5</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>VOL::{#FSNAME}::inodes::free {ITEM.VALUE}</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
<status>0</status>
<priority>2</priority>
<description>FS volume inodes free space is between 10% and 5%.</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
<tags/>
</trigger_prototype>
</trigger_prototypes>
<graph_prototypes>
<graph_prototype>
Expand Down
2 changes: 2 additions & 0 deletions OS Linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Base Linux monitoring template.
- ```NET:``` LLD items Application changed from ```NET``` prototype ```NET::{#FSNAME}```
- ```VOL:``` LLD items Application changed from ```VOL``` prototype ```VOL::{#FSNAME}```
- make template zabbix 4.0.x ready by remove using $1-$9 macros in items names
- LLD:
- rewrited ```VOL``` triggers to use proper severities and triggers prototypes dependencies
- Triggers:
- '''SYS::Host is down''' corrected descrition
- 1.0.4 (2018-06-11)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ This repository provides a set of templates which offers the alternative set of
- ```NET:``` LLD items Application changed from ```NET``` prototype ```NET::{#FSNAME}```
- ```VOL:``` LLD items Application changed from ```VOL``` prototype ```VOL::{#FSNAME}```
- make template zabbix 4.0.x ready by remove using $1-$9 macros in items names
- LLD:
- rewrited ```VOL``` triggers to use proper severities and triggers prototypes dependencies
- Triggers:
- '''SYS::Host is down''' corrected descrition
- **OS Solaris**
Expand Down

0 comments on commit 8625760

Please sign in to comment.