title: Check_MK - Custom check params specified in wato not being given to check function
body: <p>I am working on a check_mk plugin and can't seem to get the WATO specified params passed to the check function when it runs for one check in particular... </p>
  
  <ul>
  <li>The check param rule shows in WATO </li>
  <li>It writes correct looking values to rules.mk </li>
  <li>Clicking the Analyze check parameters icon from a hosts service discovery shows the rule as active. </li>
  <li>The check parameters displayed in service discovery show the title from the WATO file so it seems like it is associating things correctly.</li>
  </ul>
  
  <p>Running <code>cmk -D &lt;hostname&gt;</code> shows the check as always having the default values though.</p>
  
  <p>I have been staring at it for awhile and am out of ideas.</p>
  
  <p>Check_MK version: 1.2.8p21 Raw</p>
  
  <p>Bulk of check file:</p>
  
  <pre><code>factory_settings["elasticsearch_status_default"] = {
      "min": (600, 300)
  }
  
  def inventory_elasticsearch_status(info):
      for line in info:
          yield restore_whitespace(line[0]), {}
  
  def check_elasticsearch_status(item, params, info):
      for line in info:
          name = restore_whitespace(line[0])
          message = restore_whitespace(line[2])
  
          if name == item:
              return get_status_state(params["min"], name, line[1], message, line[3])
  
  check_info['elasticsearch_status'] = {
    "inventory_function"      : inventory_elasticsearch_status,
    "check_function"          : check_elasticsearch_status,
    "service_description"     : "ElasticSearch Status %s",
    "default_levels_variable" : "elasticsearch_status_default",
    "group"                   : "elasticsearch_status",
    "has_perfdata"            : False
  }
  </code></pre>
  
  <p>Wato File:</p>
  
  <pre><code>group = "checkparams"
  #subgroup_applications = _("Applications, Processes &amp; Services")
  
  register_check_parameters(
      subgroup_applications,
      "elasticsearch_status",
      _("Elastic Search Status"),
      Dictionary(
          elements = [
              ( "min",
                Tuple(
                    title = _("Minimum required status age"),
                    elements = [
                        Age(title = _("Warning if below"), default_value = 600),
                        Age(title = _("Critical if below"), default_value = 300),
                    ]
              ))
          ]
      ),
      None,
      match_type = "dict",
  )
  </code></pre>
  
  <p>Entry in rules.mk from WATO rule:</p>
  
  <pre><code>checkgroup_parameters.setdefault('elasticsearch_status', [])
  
  checkgroup_parameters['elasticsearch_status'] = [
    ( {'min': (3600, 1800)}, [], ALL_HOSTS ),
  ] + checkgroup_parameters['elasticsearch_status']
  </code></pre>
  
  <p>Let me know if any other information would be helpful!</p>
  
  <p><em>EDIT</em>: pls help</p>