anchor.diff:  run(Options, _NonOptArgs) ->
       Node = proplists:get_value(node, Options),
       Checks = check_repl(Node),
  -    case lists:member(critical, Checks) of
  +    case lists:member(unknown, Checks) of
           true ->
  -            critical();
  +            unknown();
           false ->
  -            case lists:member(warning, Checks) of
  +            case lists:member(socket_error, Checks) of
                   true ->
  -                    warning();
  +                    socket_error();
                   false ->
                       okay()
               end
  
positive.code:                         undefined ->
                              %% port is closed
                              Pid ! {tcp_closed, Port},
                              warning;
                          _ ->
                              case sockname(Port) of
                                  {ok, _} ->
  
negative.code:                                     %% something has gone wrong
                                      close_port(Port),
                                      Pid ! {tcp_closed, Port},
                                      socket_error
                              end
                      end
              end
  