def get_value(name):
 try:
  metrics = get_metrics()[0]
  name = name.lstrip('ipmi_')
  result = metrics['data'][name]
 except Exception:
  result = 0
 return result

def get_value ( name ) : try : metrics = get_metrics ( ) [ 0 ] name = name . lstrip ( 'ipmi_' ) result = metrics [ 'data' ] [ name ] except Exception : result = 0 return result
get value for name format: gmond_prefix_ + fs_ + metric .