|
|
@ -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) |
|
|
|
|
|
|
|