From fa5d487966ee94151d53ee368a43d7d6701177bd Mon Sep 17 00:00:00 2001 From: Mikhail Grebenkin Date: Fri, 27 Apr 2018 11:44:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BB=D0=B8?= =?UTF-8?q?=D1=88=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B8=D0=BD=D1=82=D1=8B?= =?UTF-8?q?,=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRST_mon.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/IRST_mon.py b/IRST_mon.py index 4f4db84..6e1564e 100755 --- a/IRST_mon.py +++ b/IRST_mon.py @@ -6,8 +6,8 @@ import json import sys from pyzabbix import ZabbixMetric, ZabbixSender -command = 'cat irst.txt' -hostname = 'testhost' +command = 'rstcli64.exe --information' +hostname = 'srv-sbis01' server = '192.168.1.56' def exec(exe): @@ -146,8 +146,6 @@ def sender(txt): 'model[{}]'.format('disk-' + str(device - 1)), line.split(":")[1].strip())) - for val in packet: - print(val) zbx = ZabbixSender(server) zbx.send(packet)