From 404dfa2a12240eaad6f504bc2c35f5ee6a23743f Mon Sep 17 00:00:00 2001 From: Patrik Uytterhoeven Date: Wed, 27 Sep 2017 10:57:44 +0200 Subject: [PATCH] moved barman to own repo --- barman/Template/zbx_export_templates.xml | 133 ------------------ barman/scripts/barman_discovery.py | 20 --- .../zabbix_agent.d/Userparameter_barman.rtf | 8 -- 3 files changed, 161 deletions(-) delete mode 100644 barman/Template/zbx_export_templates.xml delete mode 100644 barman/scripts/barman_discovery.py delete mode 100644 barman/zabbix_agent.d/Userparameter_barman.rtf diff --git a/barman/Template/zbx_export_templates.xml b/barman/Template/zbx_export_templates.xml deleted file mode 100644 index f30bf5e..0000000 --- a/barman/Template/zbx_export_templates.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - 3.2 - 2017-02-17T12:48:26Z - - - Templates_LNE - - - - - - diff --git a/barman/scripts/barman_discovery.py b/barman/scripts/barman_discovery.py deleted file mode 100644 index 537eea7..0000000 --- a/barman/scripts/barman_discovery.py +++ /dev/null @@ -1,20 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf470 -{\fonttbl\f0\fswiss\fcharset0 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 - -\f0\fs24 \cf0 #!/usr/bin/python\ -\ -import subprocess\ -import json\ -\ -barman_list = subprocess.Popen(['barman','list-server'],stdout=subprocess.PIPE)\ -\ -value = \{'data':[] \}\ -\ -for line in barman_list.stdout:\ - server = line.split(' ')[0]\ - value['data'].append(\{'\{#SERVER\}':server\})\ -print json.dumps(value)\ -} \ No newline at end of file diff --git a/barman/zabbix_agent.d/Userparameter_barman.rtf b/barman/zabbix_agent.d/Userparameter_barman.rtf deleted file mode 100644 index ec6ed59..0000000 --- a/barman/zabbix_agent.d/Userparameter_barman.rtf +++ /dev/null @@ -1,8 +0,0 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf470 -{\fonttbl\f0\fswiss\fcharset0 Helvetica;} -{\colortbl;\red255\green255\blue255;} -\paperw11900\paperh16840\margl1440\margr1440\vieww15160\viewh8400\viewkind0 -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 - -\f0\fs24 \cf0 UserParameter=barman.discover,/usr/bin/sudo /etc/zabbix/scripts/barman_discovery.py\ -UserParameter=barman.check[*],/usr/bin/sudo /usr/bin/barman check --nagios $1 | cut -f2 -d' ' | head -1} \ No newline at end of file