Forked from nitrag/check_mk_agent-ubuntu-install.sh
Created
September 24, 2022 13:15
-
-
Save imweijh/10947afd58130bbfe3e9a86c0e42dc54 to your computer and use it in GitHub Desktop.
Setup check_mk_agent via systemd on Ubuntu 16.04 (OMD, Check_MK)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/[email protected] | |
# 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