performeter without warn/crit

This commit is contained in:
Marius Pana 2018-09-14 19:20:49 +03:00
parent 6c2fe4e526
commit c60c73627c

View File

@ -1,20 +1,8 @@
#!/usr/bin/env python
def perfometer_nfsiostat(row, check_command, perf_data):
if len(perf_data) < 2:
return "", ""
for pd in perf_data:
if pd[0] == u'op_s':
ops = float(pd[1])
warn = float(pd[3])
crit = float(pd[4])
if ops <= warn:
color = '#90ee90'
elif ops <= crit:
color = '#ffa500'
else:
color = '#ff6347'
color = '#ff6347'
return '%d op/s' % ops, perfometer_linear(ops, color)
perfometers["check_mk-nfsiostat"] = perfometer_nfsiostat