-
Notifications
You must be signed in to change notification settings - Fork 27
/
userparameter_zabbixdocker.conf
29 lines (19 loc) · 1.25 KB
/
userparameter_zabbixdocker.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# Zabbix Docker Monitoring 1.0
#
# Author: Richard Sedlak
#
# Github: [email protected]:rpsedlak/zabbix-docker.git
#
##########################################################
UserParameter=docker.version, docker -v
UserParameter=docker.running.centos, ps -ef | grep 'docker -d' | grep -v grep | wc -l
UserParameter=docker.running.ubuntu, ps -ef | grep 'dockerd' | grep -v grep | wc -l
UserParameter=docker.containers.running, docker ps -q | wc -l
UserParameter=docker.discovery, /usr/local/bin/zabbix-docker-discover.py 2> /dev/null
UserParameter=docker.info[*], /usr/local/bin/zabbix-docker-info.py "$1" 2> /dev/null | grep -v "WARNING"
UserParameter=docker.info.boolean[*], /usr/local/bin/zabbix-docker-info.py "$1" 2> /dev/null | grep -v "WARNING" | grep -i true | wc -l
UserParameter=docker.info.convert[*], docker info 2> /dev/null | grep -v "WARNING" | grep "$1" | cut -f2 -d: | cut -c2- | /usr/local/bin/zabbix-docker-convert.py
UserParameter=docker.container.inspect[*], /usr/local/bin/zabbix-docker-inspect.py $1 $2 2> /dev/null
UserParameter=docker.container.inspect.boolean[*], /usr/local/bin/zabbix-docker-inspect.py $1 $2 2> /dev/null | grep -i true | wc -l
UserParameter=docker.container.stats[*], /usr/local/bin/zabbix-docker-stats.py $1 $2 2> /dev/null