Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
If you want to push the agent output from a Linux machine to Checkmk, just follow this small how-to!

...



Panel
borderColor

...

#CCCCCC

...

bgColor

...

#e3fcef

LAST TESTED ON CHECKMK 2.3.0P1



Panel
borderColorblack
bgColor#f8f8f8
titleTable of Contents

Table of Contents

Step-by-step guide

  1. You need to enable SSH on the monitoring system and to generate ssh keys.
    .
  2. Create the script on your Linux machine:

    Code Block
    languagebash
    themeRDark
    #!/bin/bash
    check_mk_agent | ssh USER@CMKSERVER "cat > /var/cmk/HOST"


    The path you use here is where the agent output gets stored. Please have in mind that the path used here will be also used in the "command line to execute" field. Also, the name of the HOST assigned here should be the name of the host you want your monitored server to have.

  3. Create a cronjob to run the script automatically.

    .
  4. On the Checkmk Server, we need to create a rule by going to Setup → Agents → Other integrations → Individual program call... → Add rule

    Command line to execute: cat /var/cmk/$HOSTNAME$

    Screenshot of a new rule for individual program call.Image Modified

    Use the conditions to either assign this to a folder.

  5. Add the host to the monitoring server:

    The host has to be called HOST and needs to have the below properties:

    Image Modified

Filter by label
showLabelsfalse
max5
spacesCON
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "windows_agent" , "windows" , "howto" ) and type = "page" and space = "KB"
labelswindows windows_agent


Page Properties
hiddentrue


Related issues