From b3dec3138270572ed2a523cd7fde7a866c487993 Mon Sep 17 00:00:00 2001 From: Raymond Kuiper Date: Mon, 22 Aug 2016 14:49:23 +0200 Subject: [PATCH] Added docu on ztmplimport.py --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 85619e5..322250d 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ All of these tools can be invoked with `-h/--help` to get help. - `zhproxyfinder.py` - Finds configured proxy for a Zabbix host. ### Template related: +- `ztmplimport.py' - Imports .xml template into zabbix - `zhtmplfinder.py` - Finds linked templates for a Zabbix host. - `zthostfinder.py` - Finds hosts that are linked to a template. - `zthtmllinker.py` - Links host(group)s to a list of templates. @@ -104,6 +105,12 @@ zabbix_sender -k $ITEMKEY -o $ITEMVALUE -s $HOSTNAME -z $(zhproxyfinder.py $HOST ./zhtmplunlink.py -G "Webservers" -t "Template App MySQL" ``` +##### Import all .xml templates verbosely from the directory 'templates' and continue with the next template on error. + +``` +./ztmplimport.py -v -C ./templates/*.xml +``` + #### Get the latest item value from history for the item with itemid 1001 ```