docs: def copy_nrpe_checks(nrpe_files_dir=None):
      """
      Copy the nrpe checks into place
  
      """
      NAGIOS_PLUGINS = '/usr/local/lib/nagios/plugins'
      if nrpe_files_dir is None:
          # determine if "charmhelpers" is in CHARMDIR or CHARMDIR/hooks
          for segment in ['.', 'hooks']:
              nrpe_files_dir = os.path.abspath(os.path.join(
                  os.getenv('CHARM_DIR'),
                  segment,
                  'charmhelpers',
                  'contrib',
                  'openstack',
                  'files'))
              if os.path.isdir(nrpe_files_dir):
                  break
          else:
              raise RuntimeError("Couldn't find charmhelpers directory")
      if not os.path.exists(NAGIOS_PLUGINS):
          os.makedirs(NAGIOS_PLUGINS)
      for fname in glob.glob(os.path.join(nrpe_files_dir, "check_*")):
          if os.path.isfile(fname):
              shutil.copy2(fname,
                           os.path.join(NAGIOS_PLUGINS, os.path.basename(fname)))