try: #get stats stats = ElasticSearchStatsHelpers.node_statistics( scheme=scheme, hostname=hostname, port=port, node_id=node_id, debug=debug ) if debug: pprint(stats) #Get stats disk_io_op_temp = ElasticSearchStatsEvalHelpers.get_disk_io_op(stats) disk_io_op = disk_io_op_temp/8388608 if debug: print("Total disko io op") print("--------------") print(disk_io_op) print("--------------") #check logic status = 'OK' comment='within the limits' disk_io_op_comment_tempalte="Disk IOps {c} {v}Mb/s" disk_io_op_message_template="{s}: {m}" if disk_io_op >= s_warning: status = 'Warning'