def check_journaled(con, warning, critical, perf_data):
 warning = (warning or 20)
 critical = (critical or 40)
 try:
  data = get_server_status(con)
  journaled = data['dur']['journaledMB']
  message = ('Journaled : %.2f MB' % journaled)
  message += performance_data(perf_data, [(('%.2f' % journaled), 'journaled', warning, critical)])
  return check_levels(journaled, warning, critical, message)
 except Exception as e:
  return exit_with_general_critical(e)

def check_journaled ( con , warning , critical , perf_data ) : warning = ( warning or 20 ) critical = ( critical or 40 ) try : data = get_server_status ( con ) journaled = data [ 'dur' ] [ 'journaledMB' ] message = ( 'Journaled : %.2f MB' % journaled ) message += performance_data ( perf_data , [ ( ( '%.2f' % journaled ) , 'journaled' , warning , critical ) ] ) return check_levels ( journaled , warning , critical , message ) except Exception as e : return exit_with_general_critical ( e )
checking the average amount of data in megabytes written to the recovery log in the last four seconds .