Skip to content

Commit

Permalink
Updated config file to filter out stderr messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Sedlak authored and Richard Sedlak committed Feb 12, 2018
1 parent ae6dac8 commit 881ed5e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions userparameter_zabbixdocker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ UserParameter=docker.running.ubuntu, ps -ef | grep 'dockerd' | grep -v grep | wc

UserParameter=docker.containers.running, docker ps -q | wc -l

UserParameter=docker.discovery, /usr/local/bin/zabbix-docker-discover.py
UserParameter=docker.discovery, /usr/local/bin/zabbix-docker-discover.py 2> /dev/null

UserParameter=docker.info[*], /usr/local/bin/zabbix-docker-info.py "$1" | grep -v "WARNING"
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" | grep -v "WARNING" | grep -i true | wc -l
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 | grep -v "WARNING" | grep "$1" | cut -f2 -d: | cut -c2- | /usr/local/bin/zabbix-docker-convert.py
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
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 | grep -i true | wc -l
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
UserParameter=docker.container.stats[*], /usr/local/bin/zabbix-docker-stats.py $1 $2 2> /dev/null

0 comments on commit 881ed5e

Please sign in to comment.