From 52386a624f39e2201734ef6bb0da54e5dcc365d1 Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Mon, 30 Jan 2017 14:23:41 +0100 Subject: [PATCH] Added docs --- README.md | 9 +++++++++ lib/zaf.lib.sh | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7c1b0f1..6b9f582 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,15 @@ So zaf is here for you :) * Zabbix API support * Zabbix host autoregistration automation * Zabbix sender and agent glue (send results of agent checks to zabbix sender) +* Zabbix backup support using [zaf](https://macura.cz/node/34) +* Support for wireless neighbours, clients with autodiscovery [iwx module](https://github.com/limosek/zaf-plugins/tree/master/iwx) +* Support for automated import of hosts and items from [CSV](https://github.com/limosek/zaf-plugins/tree/master/csv) +* Support for fail2ban monitoring [fail2ban](https://github.com/limosek/zaf-plugins/tree/master/fail2ban) +* Supoort for booked [booked](https://github.com/limosek/zaf-plugins/tree/master/booked) + +## Roadmap + +* External items support with automatic configuration of server ## How it works Zaf installer will do most of actions needed to monitor some specific plugin items. Configuration of plugin is very simple and text readable. Anybody can write its own plugin or make its plugin "zafable". It is enough to create *control.zaf" file. For example, look into https://github.com/limosek/zaf-plugins repository. This is default repository for zaf. diff --git a/lib/zaf.lib.sh b/lib/zaf.lib.sh index 3eba19c..4e92a67 100644 --- a/lib/zaf.lib.sh +++ b/lib/zaf.lib.sh @@ -320,8 +320,8 @@ zaf_get_item_params() { zaf_paramstosh() { local parms local IFS - parms=$(echo $*|cut -d '[' -f 2 | cut -d ']' -f 1| tr ',' ':') - IFS=:; for i in $parms; do + parms=$(echo $*|cut -d '[' -f 2 | cut -d ']' -f 1| tr ',' '~') + IFS="~"; for i in $parms; do if [ -n "$i" ]; then printf "$i " else