...
Info |
---|
If you want to push the agent output from a Windows Linux machine to Checkmk, just follow this small how-to! |
Status | ||||
---|---|---|---|---|
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Step-by-step guide
- Enable You need to enable SSH on the monitoring system (https://docs.checkmk.com/latest/en/agent_linux.html#_creating_ssh_key_pairs)
On the Windows machine (Check that manual for SSH → Windows monitoring over SSH)
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)Code Block language powershell theme RDark ECHO OFF "C:\Program Files (x86)\checkmk\service\check_mk_agent.exe" test > HostFile scp HostFile USER@CMKSERVER:/var/cmk/HOST
on the Linux machineand to generate ssh keys.
. Create the script on your Linux machine:
Code Block language bash theme RDark #!/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.Create a cronjob to run the script automatically.
Create the script.On the Checkmk Server, we need to create a rule by going to Setup → Agents → Other intergrations integrations → Individual program call... → Add rule
Command line to execute: cat /var/cmk/$HOSTNAME$
...
Use the conditions to either assign this to a folder.Add the host to the monitoring server:
The host has to be called HOST and needs to have the below properties:
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...