mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Merge branch 'master' of https://github.com/adaniels21487/librenms into issue-1540
This commit is contained in:
@@ -3,21 +3,25 @@ Agent setup
|
|||||||
|
|
||||||
To gather data from remote systems you can use LibreNMS in combination with check_mk (included in the scripts directory).
|
To gather data from remote systems you can use LibreNMS in combination with check_mk (included in the scripts directory).
|
||||||
|
|
||||||
|
Make sure that xinetd is installed on the host you want to run the agent on.
|
||||||
|
|
||||||
The agent uses TCP-Port 6556, please allow access from the LibreNMS-Host and Poller-Nodes if you're using the Distributed Polling setup.
|
The agent uses TCP-Port 6556, please allow access from the LibreNMS-Host and Poller-Nodes if you're using the Distributed Polling setup.
|
||||||
|
|
||||||
On each of the hosts you would like to use the agent on then you need to do the following:
|
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
|
```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
|
chmod +x /usr/bin/check_mk_agent
|
||||||
```
|
```
|
||||||
|
|
||||||
* Copy the xinetd config file into place.
|
* Copy the xinetd config file into place.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cp scripts/check_mk_xinetd /etc/xinetd.d/check_mk
|
cp check_mk_xinetd /etc/xinetd.d/check_mk
|
||||||
```
|
```
|
||||||
|
|
||||||
* Create the relevant directories.
|
* Create the relevant directories.
|
||||||
@@ -26,7 +30,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
|
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` that you require to be graphed.
|
||||||
|
* Make each one executable that you want to use with `chmod +x /usr/lib/check_mk_agent/local/$script`
|
||||||
* And restart xinetd.
|
* And restart xinetd.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
@@ -184,6 +184,11 @@ $config['os'][$os]['type'] = 'server';
|
|||||||
$config['os'][$os]['group'] = 'unix';
|
$config['os'][$os]['group'] = 'unix';
|
||||||
$config['os'][$os]['text'] = 'FreeBSD';
|
$config['os'][$os]['text'] = 'FreeBSD';
|
||||||
|
|
||||||
|
$os = 'pfsense';
|
||||||
|
$config['os'][$os]['type'] = 'server';
|
||||||
|
$config['os'][$os]['group'] = 'unix';
|
||||||
|
$config['os'][$os]['text'] = 'pfSense';
|
||||||
|
|
||||||
$os = 'openbsd';
|
$os = 'openbsd';
|
||||||
$config['os'][$os]['type'] = 'server';
|
$config['os'][$os]['type'] = 'server';
|
||||||
$config['os'][$os]['group'] = 'unix';
|
$config['os'][$os]['group'] = 'unix';
|
||||||
|
|||||||
Reference in New Issue
Block a user