diff --git a/README.md b/README.md index 268cd96d8..4d6f0ad9b 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ misc/theme-tukan -- The tukan theme - blue/white misc/theme-vicuna -- The vicuna theme - dark anthrazit net-mgmt/collectd -- Collect system and application performance metrics periodically net-mgmt/lldpd -- LLDP allows you to know exactly on which port is a server +net-mgmt/munin -- Munin monitoring node net-mgmt/net-snmp -- Net-SNMP is a daemon for the SNMP protocol net-mgmt/netdata -- Real-time performance monitoring net-mgmt/nrpe -- Execute nagios plugins diff --git a/sysutils/munin-node/Makefile b/sysutils/munin-node/Makefile new file mode 100644 index 000000000..852ca50a2 --- /dev/null +++ b/sysutils/munin-node/Makefile @@ -0,0 +1,8 @@ +PLUGIN_NAME= munin-node +PLUGIN_VERSION= 0.1 +PLUGIN_COMMENT= munin monitorin agent +PLUGIN_DEPENDS= munin-node +PLUGIN_DEVEL= YES +PLUGIN_MAINTAINER= m.muenz@gmail.com + +.include "../../Mk/plugins.mk" diff --git a/sysutils/munin-node/pkg-descr b/sysutils/munin-node/pkg-descr new file mode 100644 index 000000000..1ac945582 --- /dev/null +++ b/sysutils/munin-node/pkg-descr @@ -0,0 +1,13 @@ +Munin network-wide graphing framework (node) + +Munin is a tool for graphing all sorts of information about one or more +servers and displaying it in a web interface. It uses the excellent +RRDTool (written by Tobi Oetiker) and is written in Perl. Munin has a +master/node architecture. The master connects to all the nodes at regular +intervals, and asks them for data. It then stores the data in RRD-files, +and (if needed) updates the graphs. One of the main goals have been ease +of creating own "plugins" (graphs). + +This is the node part. It is used on all machines Munin shall watch. + +WWW: http://munin-monitoring.org/ diff --git a/sysutils/munin-node/src/etc/inc/plugins.inc.d/muninnode.inc b/sysutils/munin-node/src/etc/inc/plugins.inc.d/muninnode.inc new file mode 100644 index 000000000..c052239b9 --- /dev/null +++ b/sysutils/munin-node/src/etc/inc/plugins.inc.d/muninnode.inc @@ -0,0 +1,49 @@ + + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +function muninnode_services() +{ + global $config; + + $services = array(); + + if (isset($config['OPNsense']['muninnode']['general']['enabled']) && $config['OPNsense']['muninnode']['general']['enabled'] == 1) { + $services[] = array( + 'description' => gettext('muninnode daemon'), + 'configd' => array( + 'restart' => array('muninnode restart'), + 'start' => array('muninnode start'), + 'stop' => array('muninnode stop'), + ), + 'name' => 'munin_node', + 'pidfile' => '/var/run/munin/munin-node.pid' + ); + } + + return $services; +} diff --git a/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/Api/GeneralController.php b/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/Api/GeneralController.php new file mode 100644 index 000000000..80955a45a --- /dev/null +++ b/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/Api/GeneralController.php @@ -0,0 +1,37 @@ + + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +namespace OPNsense\Muninnode\Api; + +use OPNsense\Base\ApiMutableModelControllerBase; + +class GeneralController extends ApiMutableModelControllerBase +{ + protected static $internalModelClass = '\OPNsense\Muninnode\General'; + protected static $internalModelName = 'general'; +} diff --git a/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/Api/ServiceController.php b/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/Api/ServiceController.php new file mode 100644 index 000000000..695871a0f --- /dev/null +++ b/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/Api/ServiceController.php @@ -0,0 +1,39 @@ + + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +namespace OPNsense\Muninnode\Api; + +use OPNsense\Base\ApiMutableServiceControllerBase; + +class ServiceController extends ApiMutableServiceControllerBase +{ + protected static $internalServiceClass = '\OPNsense\Muninnode\General'; + protected static $internalServiceTemplate = 'OPNsense/Muninnode'; + protected static $internalServiceEnabled = 'enabled'; + protected static $internalServiceName = 'muninnode'; +} diff --git a/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/GeneralController.php b/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/GeneralController.php new file mode 100644 index 000000000..3e25bde5e --- /dev/null +++ b/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/GeneralController.php @@ -0,0 +1,38 @@ + + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +namespace OPNsense\Muninnode; + +class GeneralController extends \OPNsense\Base\IndexController +{ + public function indexAction() + { + $this->view->generalForm = $this->getForm('general'); + $this->view->pick('OPNsense/Muninnode/general'); + } +} diff --git a/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/forms/general.xml b/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/forms/general.xml new file mode 100644 index 000000000..411938d79 --- /dev/null +++ b/sysutils/munin-node/src/opnsense/mvc/app/controllers/OPNsense/Muninnode/forms/general.xml @@ -0,0 +1,28 @@ +
diff --git a/sysutils/munin-node/src/opnsense/mvc/app/models/OPNsense/Muninnode/ACL/ACL.xml b/sysutils/munin-node/src/opnsense/mvc/app/models/OPNsense/Muninnode/ACL/ACL.xml new file mode 100644 index 000000000..a4adcb05f --- /dev/null +++ b/sysutils/munin-node/src/opnsense/mvc/app/models/OPNsense/Muninnode/ACL/ACL.xml @@ -0,0 +1,9 @@ +