updated perfometer to exclude if more than one nfstore

This commit is contained in:
Marius Pana 2018-09-14 18:48:27 +03:00
parent 8533198ad7
commit 6c2fe4e526

View File

@ -1,6 +1,8 @@
#!/usr/bin/env python #!/usr/bin/env python
def perfometer_nfsiostat(row, check_command, perf_data): def perfometer_nfsiostat(row, check_command, perf_data):
if len(perf_data) < 2:
return "", ""
for pd in perf_data: for pd in perf_data:
if pd[0] == u'op_s': if pd[0] == u'op_s':
ops = float(pd[1]) ops = float(pd[1])