code: def returner(ret):
      '''
      Send a message to Nagios with the data
      '''
  
      _options = _get_options(ret)
      log.debug('_options %s', _options)
      _options['hostname'] = ret.get('id')
  
      if 'url' not in _options or _options['url'] == '':
          log.error('nagios_nrdp.url not defined in salt config')
          return
  
      if 'token' not in _options or _options['token'] == '':
          log.error('nagios_nrdp.token not defined in salt config')
          return
  
      xml = _prepare_xml(options=_options, state=ret['return'])
      res = _post_data(options=_options, xml=xml)
  
      return ref returner(ret):
      '''
      Send a message to Nagios with the data
      '''
  
      _options = _get_options(ret)
      log.debug('_options %s', _options)
      _options['hostname'] = ret.get('id')
  
      if 'url' not in _options or _options['url'] == '':
          log.error('nagios_nrdp.url not defined in salt config')
          return
  
      if 'token' not in _options or _options['token'] == '':
          log.error('nagios_nrdp.token not defined in salt config')
          return
  
      xml = _prepare_xml(options=_options, state=ret['return'])
      res = _post_data(options=_options, xml=xml)
  
      return res
docs: Send a message to Nagios with the data