diff --git a/ReleaseNotes.md b/ReleaseNotes.md index dce79a0..37fb4ab 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,9 @@ # Release notes +## Release 1.0.2 - 12/21/2015 +* #24 - Fixed container memory % report for Ubuntu +* #23 - Fixed false "down" report for Ubuntu + ## Release 1.0.1 - 12/21/2015 * #20 - Changed collection delay for docker version * #18 - Implemented WARNING trigger for paused containers diff --git a/ZabbixDockerTemplate.xml b/ZabbixDockerTemplate.xml index 0634b3e..6ca45de 100644 --- a/ZabbixDockerTemplate.xml +++ b/ZabbixDockerTemplate.xml @@ -1,7 +1,7 @@ 2.0 - 2015-12-21T20:59:49Z + 2015-12-22T01:04:01Z Templates @@ -143,12 +143,51 @@ - Docker Daemons Running + Docker Daemons Running (CentOS) 0 0 - docker.running + docker.running.centos + 60 + 90 + 365 + 0 + 3 + + + 0 + + 0 + + + 1 + + + + 0 + 0 + + + + + + The number of docker process daemons running according to 'ps' + 0 + + + Docker + + + + + + Docker Daemons Running (Ubuntu) + 0 + + 0 + + docker.running.ubuntu 60 90 365 @@ -5649,7 +5688,7 @@ last("docker.containers.running") - {Template App Docker:docker.running.last(0)}=0 + {Template App Docker:docker.running.centos.last(0)}=0 & {Template App Docker:docker.running.ubuntu.last(0)}=0 Docker not running 0 @@ -5709,7 +5748,7 @@ last("docker.containers.running") - {Template App Docker:docker.running.last(0)}>1 + {Template App Docker:docker.running.centos.last(0)}>1 | {Template App Docker:docker.running.ubuntu.last(0)}>1 More than 1 Docker daemon running 0 diff --git a/userparameter_zabbixdocker.conf b/userparameter_zabbixdocker.conf index 471b52f..00a4020 100644 --- a/userparameter_zabbixdocker.conf +++ b/userparameter_zabbixdocker.conf @@ -9,7 +9,9 @@ UserParameter=docker.version, docker -v -UserParameter=docker.running, ps -ef | grep 'docker -d' | grep -v grep | wc -l +UserParameter=docker.running.centos, ps -ef | grep 'docker -d' | grep -v grep | wc -l + +UserParameter=docker.running.ubuntu, ps -ef | grep 'docker daemon' | grep -v grep | wc -l UserParameter=docker.containers.running, docker ps -q | wc -l diff --git a/zabbix-docker-stats.py b/zabbix-docker-stats.py index 80186e5..a3cb8f0 100755 --- a/zabbix-docker-stats.py +++ b/zabbix-docker-stats.py @@ -63,8 +63,8 @@ def lmem(data): return value def pmem(data): - pdata=data.split() - pmem_data=pdata[5].split('%')[0] + pdata=data.split('/')[1].split() + pmem_data=pdata[2].split('%')[0] return pmem_data def inet(data):