2014-02-05 13:37:35 +00:00
|
|
|
# mars config
|
2014-03-19 11:42:38 +00:00
|
|
|
# v003 - Wed Feb 19 11:01:19 CET 2014
|
|
|
|
|
|
|
|
# values:
|
|
|
|
# -------
|
|
|
|
# 1 - /proc/sys/block/mars/[filename]
|
2013-12-05 14:18:17 +00:00
|
|
|
|
2014-02-05 13:37:35 +00:00
|
|
|
UserParameter=system.mars[*], ( grep $1 /tmp/zabbix.mars || echo '0 0' ) | awk '{print $$2}'
|
2014-03-19 11:42:38 +00:00
|
|
|
|
|
|
|
# values:
|
|
|
|
# -------
|
|
|
|
# 1 - ressource-name
|
|
|
|
# 2 - statuslink-name
|
|
|
|
|
|
|
|
UserParameter=system.marsstatus[*], ( grep $1 /tmp/zabbix.mars | grep ' $2 ' || echo '0 0 0 0') | awk '{print $$4}' | head -n 1
|
2013-12-05 14:18:17 +00:00
|
|
|
|