checkmk-plugins/check_mk-check-nfsiostat/web/plugins/perfometer/nfsiostat.py

9 lines
296 B
Python
Raw Normal View History

2019-08-12 11:59:29 +03:00
def perfometer_nfsiostat(row, check_command, perf_data):
for pd in perf_data:
if pd[0] == u'op_s':
ops = float(pd[1])
color = '#ff6347'
return '%d op/s' % ops, perfometer_linear(ops, color)
perfometers["check_mk-nfsiostat"] = perfometer_nfsiostat