summaryrefslogtreecommitdiffstats
path: root/roles/os_zabbix
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@gmail.com>2015-11-06 15:10:23 -0500
committerMatt Woodson <mwoodson@gmail.com>2015-11-06 15:10:23 -0500
commit20ef91a6164ce5b54f5b40a6baa035e87263b772 (patch)
tree340958437975027ee3c70769934d53d460f6b6e9 /roles/os_zabbix
parent2bc586b6c8d5472abbef3697bcd314d491be48b4 (diff)
parentae06c06c4b3584e5891c806b690f5ac1fa283124 (diff)
downloadopenshift-20ef91a6164ce5b54f5b40a6baa035e87263b772.tar.gz
openshift-20ef91a6164ce5b54f5b40a6baa035e87263b772.tar.bz2
openshift-20ef91a6164ce5b54f5b40a6baa035e87263b772.tar.xz
openshift-20ef91a6164ce5b54f5b40a6baa035e87263b772.zip
Merge pull request #832 from mwoodson/disk_checks
added network checks. also updated item prototype code to support more
Diffstat (limited to 'roles/os_zabbix')
-rw-r--r--roles/os_zabbix/vars/template_os_linux.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/os_zabbix/vars/template_os_linux.yml b/roles/os_zabbix/vars/template_os_linux.yml
index fbc20cd63..2f1b85f30 100644
--- a/roles/os_zabbix/vars/template_os_linux.yml
+++ b/roles/os_zabbix/vars/template_os_linux.yml
@@ -199,6 +199,11 @@ g_template_os_linux:
lifetime: 1
description: "Dynamically register disks on a node"
+ - name: disc.network
+ key: disc.network
+ lifetime: 1
+ description: "Dynamically register network interfaces on a node"
+
zitemprototypes:
- discoveryrule_key: disc.filesys
name: "disc.filesys.full.{#OSO_FILESYS}"
@@ -232,6 +237,26 @@ g_template_os_linux:
applications:
- Disk
+ - discoveryrule_key: disc.network
+ name: "Byte in for network interface {#OSO_NET_INTERFACE}"
+ key: "disc.network.in.bytes[{#OSO_NET_INTERFACE}]"
+ value_type: int
+ units: B
+ delta: 1
+ description: "PCP network.interface.in.bytes metric. This is setup as a delta in Zabbix to measure the speed per second"
+ applications:
+ - Network
+
+ - discoveryrule_key: disc.network
+ name: "Byte out for network interface {#OSO_NET_INTERFACE}"
+ key: "disc.network.out.bytes[{#OSO_NET_INTERFACE}]"
+ value_type: int
+ units: B
+ delta: 1
+ description: "PCP network.interface.out.bytes metric. This is setup as a delta in Zabbix to measure the speed per second"
+ applications:
+ - Network
+
ztriggerprototypes:
- name: 'Filesystem: {#OSO_FILESYS} has less than 15% free disk space on {HOST.NAME}'
expression: '{Template OS Linux:disc.filesys.full[{#OSO_FILESYS}].last()}>85'