From 5200e92f789019408665af9e5d934317de3768a0 Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 30 Jul 2015 17:19:36 +0000 Subject: [PATCH 1/5] Added pfSense to definitions so that poller will actually run for it --- includes/definitions.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/definitions.inc.php b/includes/definitions.inc.php index 448e226d39..b0116bfb0b 100644 --- a/includes/definitions.inc.php +++ b/includes/definitions.inc.php @@ -184,6 +184,11 @@ $config['os'][$os]['type'] = 'server'; $config['os'][$os]['group'] = 'unix'; $config['os'][$os]['text'] = 'FreeBSD'; +$os = 'pfsense'; +$config['os'][$os]['type'] = 'server'; +$config['os'][$os]['group'] = 'unix'; +$config['os'][$os]['text'] = 'pfSense'; + $os = 'openbsd'; $config['os'][$os]['type'] = 'server'; $config['os'][$os]['group'] = 'unix'; From e11fc479801a1091d522e5155b07edfdf6727601 Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 30 Jul 2015 17:30:54 +0000 Subject: [PATCH 2/5] Updated Unix-Agent docs --- doc/Extensions/Agent-Setup.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 From d1084d0142b82fd7dbbd608aef0746aea238f8a4 Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 30 Jul 2015 18:12:16 +0000 Subject: [PATCH 3/5] Small update to clarify step --- doc/Extensions/Agent-Setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Extensions/Agent-Setup.md b/doc/Extensions/Agent-Setup.md index 7a354fa93d..c6fcef3136 100644 --- a/doc/Extensions/Agent-Setup.md +++ b/doc/Extensions/Agent-Setup.md @@ -28,7 +28,7 @@ cp 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 `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. From 12c8f0a9fbd325ae606c4a0bcaaa43ad79151313 Mon Sep 17 00:00:00 2001 From: ghbms Date: Thu, 30 Jul 2015 14:32:49 -0400 Subject: [PATCH 4/5] Update Agent-Setup.md --- doc/Extensions/Agent-Setup.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/Extensions/Agent-Setup.md b/doc/Extensions/Agent-Setup.md index c6fcef3136..b262397eeb 100644 --- a/doc/Extensions/Agent-Setup.md +++ b/doc/Extensions/Agent-Setup.md @@ -3,6 +3,8 @@ Agent setup To gather data from remote systems you can use LibreNMS in combination with check_mk (included in the scripts directory). +Make sure that ixnetd 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. On each of the hosts you would like to use the agent on then you need to do the following: From 1958ddb79584bc6e09a2fe11649b3682c1aa4964 Mon Sep 17 00:00:00 2001 From: ghbms Date: Thu, 30 Jul 2015 14:38:42 -0400 Subject: [PATCH 5/5] Update Agent-Setup.md --- doc/Extensions/Agent-Setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Extensions/Agent-Setup.md b/doc/Extensions/Agent-Setup.md index b262397eeb..7ec1e80839 100644 --- a/doc/Extensions/Agent-Setup.md +++ b/doc/Extensions/Agent-Setup.md @@ -3,7 +3,7 @@ Agent setup To gather data from remote systems you can use LibreNMS in combination with check_mk (included in the scripts directory). -Make sure that ixnetd is installed on the host you want to run the agent on. +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.