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)