...
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 |
---|
colour | Green |
---|
title | LAST TESTED ON CHECKMK 2.2.0P1 |
---|
|
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).
...
Code Block |
---|
|
#!/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 |
---|
hidden | true |
Related
...
articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | KB |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("howtoldap","agentldaps") and type = "page" and space = "KB" |
---|
labels | howto agentLDAP LDAPs |
---|
|