Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setup check_mk_agent via systemd on Ubuntu 16.04 (OMD, Check_MK)
# How to install Check MK Agent on ubuntu 16.04
# Install check_mk_agent:
# - sudo apt-get install check-mk-agent (will install older version)
# - On your Check_MK dashboard, go to "Monitoring Agents", click the link for "Check_MK Agent for Linux", save the raw text
# on your server:
sudo vi /usr/bin/check_mk_agent
# paste Check_MK dashboard > Monitoring Agents > Check_MK Agent for Linux
sudo chmod +x /usr/bin/check_mk_agent
#
# Setup Systemd
#
sudo vi /etc/systemd/system/check_mk.socket
# paste Check_MK dashboard > Monitoring Agents > systemd SOCKET definition file
sudo vi /etc/systemd/system/check_mk@.service
# paste Check_MK dashboard > Monitoring Agents > systemd SERVICE definition file
#start
sudo systemctl daemon-reload
sudo systemctl enable check_mk.socket
sudo systemctl start check_mk.socket
# Add firewall rule from specific OMD Server IP
sudo ufw allow from 15.15.15.0/24 to any port 6556
#test on another host
nc -v <ip address> 6556
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.