Skip to content

Instantly share code, notes, and snippets.

@NickCrew
Created December 1, 2018 16:28
Show Gist options
  • Save NickCrew/dad973abfe6e5916be058128caf50637 to your computer and use it in GitHub Desktop.
Save NickCrew/dad973abfe6e5916be058128caf50637 to your computer and use it in GitHub Desktop.
Install Check_MK and LibreNMS
#!/bin/bash
set -e
git clone https://github.com/librenms/librenms-agent.git /opt/librenms-agent
cp /opt/librenms-agent/check_mk_agent /usr/bin/check_mk_agent
mkdir -p /usr/lib/check_mk_agent/plugins
mkdir -p /usr/lib/check_mk_agent/local
cp /opt/librenms-agent/"agent-local"/* /usr/lib/check_mk_agent/local/.
cp /opt/librenms-agent/[email protected] /etc/systemd/system/.
cp /opt/librenms-agent/check_mk.socket /etc/systemd/system/.
systemctl enable check_mk.socket
systemctl start check_mk.socket
systemctl status check_mk.socket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment