How-to force a network scan

You can manually trigger a network scan by using the following procedure.

LAST TESTED ON CHECKMK 2.3.0P1

Table of Contents

Step-by-step guide

  1. As a site-user, go to ~/etc/check_mk/conf.d/wato/<path_to_your_folder>

  2. Open the hidden file ".wato" in an editor. (.wato is the name of the file, not a file extension)

  3. Replace the last scan result:

    'network_scan_result': {'start': 1633511941.0, 'end': 1633511947.0, 'state': True, 'output': 'The network scan found 2 new hosts.'},


    With an empty dictionary like this (remove everything in between the {} from the network_scan_result function):

    'network_scan_result': {},

    .

  4. The scan should be then triggered in the next 60 seconds.

  5. To test this, view the properties of the folder configured to do the network scan.