OX munin scripts

From Open-Xchange

How to install Munin scripts for Open-Xchange

Prerequisites

Munin node and munin master must be installed and configured prior using the Munin scripts package for Open-Xchange. The installation for this core components differs on various linux distributions. For details, please visit:

http://munin-monitoring.org/

especially: http://munin-monitoring.org/wiki/LinuxInstallation

Install on OX AppSuite

Debian GNU/Linux 11.0

Add the following entry to /etc/apt/sources.list.d/open-xchange.list if not already present:

deb https://software.open-xchange.com/products/unsupported/repo/DebianBullseye/ /
# if you have a valid maintenance subscription, please uncomment the 
# following and add the ldb account data to the url so that the most recent
# packages get installed
# deb https://[CUSTOMERID:PASSWORD]@software.open-xchange.com/products/unsupported/repo/updates/DebianBullseye/ /

and run

$ apt-get update
$ apt-get install open-xchange-munin-scripts

Debian GNU/Linux 12.0

Add the following entry to /etc/apt/sources.list.d/open-xchange.list if not already present:

deb https://software.open-xchange.com/products/unsupported/repo/DebianBookworm/ /
# if you have a valid maintenance subscription, please uncomment the 
# following and add the ldb account data to the url so that the most recent
# packages get installed
# deb https://[CUSTOMERID:PASSWORD]@software.open-xchange.com/products/unsupported/repo/updates/DebianBookworm/ /

and run

$ apt-get update
$ apt-get install open-xchange-munin-scripts


munin and munin-node

munin collects the prepared data (by munin-node) from the nodes. Munin can run on the same system as the node, but if you want to monitor more nodes it makes sense to have it on another server running without Open-Xchange.

munin-node has to be installed on every Open-Xchange server you want to monitor

Configuring munin-node scripts for Open-Xchange

The configuration of the scripts is done automatically. The database pool monitoring scripts will get configured only if the Open-Xchange server is running when installing the open-xchange-munin-scripts packages.

The default configuration allows connections from the localhost, means that munin has to run on the same host. If you have already a munin host running or decided to use not the same as the Open-Xchange server, you have to change the file /etc/munin/munin-node.conf on each node you want to monitor:

# A list of addresses that are allowed to connect.  This must be a
# regular expression, since Net::Server does not understand CIDR-style
# network notation unless the perl module Net::CIDR is installed.  You
# may repeat the allow line as many times as you'd like

allow ^127\.0\.0\.1$

Replace the allow line with the IP of the munin host server IP.

Configure Munin host

Make sure you have the munin and apache packages installed. If you just monitor the localhost, you have to do nothing. Adding other nodes via the /etc/munin/munin.conf file:

# a simple host tree
[localhost.localdomain]
    address 127.0.0.1
    use_node_name yes

add the needed nodes like this example.

By default you can reach the munin page only from localhost, so you usually have to allow other hosts or networks to connect. In /etc/apache2/conf.d/munin you can add them:

Allow from localhost 127.0.0.0/8 ::1    # the default setting
Allow from 10.99.0.0/8                  # added network

The munin webpage is located at http://yourhost_where_munin_is_running.org/munin.