diff --git a/doc/Extensions/Agent-Setup.md b/doc/Extensions/Agent-Setup.md index a990661d02..7a354fa93d 100644 --- a/doc/Extensions/Agent-Setup.md +++ b/doc/Extensions/Agent-Setup.md @@ -7,17 +7,19 @@ The agent uses TCP-Port 6556, please allow access from the LibreNMS-Host and Pol On each of the hosts you would like to use the agent on then you need to do the following: -* Copy the `check_mk_agent` script into `/usr/bin` and make it executable. +* Clone the `librenms-agent` repository: ```shell -cp scripts/check_mk_agent /usr/bin/check_mk_agent +cd /opt/ +git clone https://github.com/librenms/librenms-agent.git +cp check_mk_agent /usr/bin/check_mk_agent chmod +x /usr/bin/check_mk_agent ``` * Copy the xinetd config file into place. ```shell -cp scripts/check_mk_xinetd /etc/xinetd.d/check_mk +cp check_mk_xinetd /etc/xinetd.d/check_mk ``` * Create the relevant directories. @@ -26,7 +28,8 @@ cp scripts/check_mk_xinetd /etc/xinetd.d/check_mk mkdir -p /usr/lib/check_mk_agent/plugins /usr/lib/check_mk_agent/local ``` -* Copy each of the scripts from `scripts/agent-local/` into `/usr/lib/check_mk_agent/local` +* Copy each of the scripts from `agent-local/` into `/usr/lib/check_mk_agent/local` +* Make each one executable that you want to use with `chmod +x /usr/lib/check_mk_agent/local/$script` * And restart xinetd. ```shell