Created
December 1, 2018 16:28
-
-
Save NickCrew/dad973abfe6e5916be058128caf50637 to your computer and use it in GitHub Desktop.
Install Check_MK and LibreNMS
This file contains hidden or 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
#!/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