Skip to end of metadata
Go to start of metadata

If you want to push the agent output from a Windows machine to checkmk, just follow this small how-to!

Step-by-step guide

  1. Enable SSH on the monitoring system (https://docs.checkmk.com/latest/en/agent_linux.html#_creating_ssh_key_pairs)
  2. Create the  script

    1. on the Windows machine (Check that manual for SSH → Windows Monitoring over SSH)

      ECHO OFF
      "C:\Program Files (x86)\checkmk\service\check_mk_agent.exe" test > HostFile
      scp HostFile USER@CMKSERVER:/var/cmk/HOST
      1. Create a batch job to run the script automatically (https://www.windowscentral.com/how-create-automated-task-using-task-scheduler-windows-10#create_advanced_taskscheduler_windows10)

    2. on the Linux machine

      #!/bin/bash
      check_mk_agent | ssh USER@CMKSERVER "cat > /var/cmk/HOST"
      1. Create a cronjob to run the script automatically
  3. On the Checkmk Server we need to create a rule
    1. Setup → Agents → Other intergrations → Individual program call ...
    2. Command line to execute: cat /var/cmk/$HOSTNAME$


There is no content with the specified labels



Write a comment…