Versions Compared

Key

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

...

Info
Of course, it is possible to download the agents for Linux/Windows/etc, not only via the browser but also by getting them via wget and the REST API.

Status
colourGreen
titleLAST TESTED ON CHECKMK 2.2.0P1

Table of Contents


Step-by-step guide

Prerequisites needed: a user with sufficient rights (the automation user would do out of the box), Checkmk's server hostname (or IP), the site which holds the agent, and the agent you want to download (i.e., OS & hash).

...

hidden
Code Block
languagebash
themeRDark
#!/bin/bash
HOST_NAME="<checkmk_server>"
SITE_NAME="<sitename>"
API_URL="http://$HOST_NAME/$SITE_NAME/check_mk/api/1.0"
 
USERNAME="automation"
PASSWORD="<automation_secret>"
 
http --json GET "$API_URL/domain-types/agent/actions/download_by_host/invoke" \
    "Authorization: Bearer $USERNAME $PASSWORD" \
    "Accept: application/octet-stream" \
    host_name=="localhost"\
    os_type=="linux_deb" \
    --download
Page Properties
true


...

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("howtoldap","agentldaps") and type = "page" and space = "KB"
labelshowto agentLDAP LDAPs


Page Properties
hiddentrue


Related issues