Skip to content

Commit

Permalink
Merge pull request #7 from zabbix-deb/5-overbiew-deprecated
Browse files Browse the repository at this point in the history
drbd-overview has been deprecated #5
  • Loading branch information
istoph authored Jan 12, 2021
2 parents 6b86811 + 9f25a65 commit d7acb5b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
zabbix-check-drbd (0.1~dev4) focal; urgency=medium

* drbd-overview has been deprecated #5

-- Christoph Hueffelmann <chr@istoph.de> Mon, 11 Jan 2021 17:15:18 +0100

zabbix-check-drbd (0.1~dev3) xenial; urgency=medium

* Bugfix: Value should be a JSON object. #2

-- Christoph Hüffelmann <chr@istoph.de> Thu, 06 Feb 2020 01:08:41 +0100
-- Christoph Hueffelmann <chr@istoph.de> Thu, 06 Feb 2020 01:08:41 +0100

zabbix-check-drbd (0.1~dev2) xenial; urgency=medium

Expand Down
2 changes: 1 addition & 1 deletion debian/compat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7
9
4 changes: 3 additions & 1 deletion usr/lib/zabbix-check/bin/zabbix-check-drbd-discover
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
comma=""
echo -n '{ "data": ['

for k in $(cat /proc/drbd | cut -d: -f1); do test -z "${k##[0-9]*}" && echo -n $comma "{ \"{#RES}\": \"$k\" }" && comma=","; done
for k in $(cat /proc/drbd | cut -d: -f1); do
test -z "${k##[0-9]*}" && echo -n $comma "{ \"{#RES}\": \"$k\" }" && comma=","
done

echo ']}'

0 comments on commit d7acb5b

Please sign in to comment.