title: Check_MK - configuring legacy check
body: <p>I am running OMD 1.20 -latest according to official website, Check_MK 1.2.4p5 community edition on an Ubuntu 14.04.3 LTS machine.</p>
  
  <p>I need to configure a FTP check that will check also the credentials and reading/writing a file. The standard plugins do not offer such a feature from what I know so I am trying to use a custom plugin, specifically: <a href="https://exchange.nagios.org/directory/Plugins/Network-Protocols/FTP/check_ftp_rw/details" rel="nofollow noreferrer">https://exchange.nagios.org/directory/Plugins/Network-Protocols/FTP/check_ftp_rw/details</a></p>
  
  <p>So the monitoring server is supposed to test an external FTP server that does not have the agent installed.
  I have the plugin in /usr/lib/nagios/plugins and have ran it manually and it works ok.</p>
  
  <p>Now I am trying to configure it as a check in check_mk so I did the following
  in /opt/omd/sites/monitoring/etc/check_mk/main.mk</p>
  
  <pre><code># Put your host names here
  # all_hosts = [ 'localhost' ]
  all_hosts = [ ]
  
  extra_nagios_conf += r"""
  
  define command {
  
      command_name    check_ftprw
      command_line    /usr/lib/nagios/plugins/check_ftp_rw --host ftp.test.com --user test --password 'test123' --dir pub
  
  }
  
  """
  legacy_checks = [
  
    ( ( "check_ftprw", FTP", True), [ "localhost"] ),
  
  ]
  </code></pre>
  
  <p>I restart the omd site and check the inventory but it nevers picks up this check.</p>