Munin monitoring domácí sítě

Nejprve rozběháme Munin v Dockru. Tady nastavení pro docker-compose. docker-compose.yml

version: '3'
services:
munin:
container_name: munin
image: aheimsbakk/munin-alpine
ports:
- "8080:80/tcp"
- "4949:4949/tcp"
environment:
TZ: 'Europe/Prague'
VIRTUAL_HOST: 'munin'
NODES: 'OpenWrtSklep:192.168.x.x OpenWrtPuda:192.168.x.x'
SNMP_NODES: 'Mikrotik;192.168.x.x:public'
volumes:
- './munin/rrd:/var/lib/munin/'
- './munin/conf:/etc/munin/munin-conf.d/'
- './munin/log:/var/log/munin/'
- './munin/confplugin:/etc/munin/plugin-conf.d/'
restart: unless-stopped

Obraz pro docker je zde https://hub.docker.com/r/aheimsbakk/munin-alpine

 Pak nainstalujeme do OpenWrt muninlite

$ opkg install muninlite
$ /etc/init.d/xinetd enable

nastavíme adresu rozhraní na kterém je.

$ nano /etc/xinetd.d/munin 
service munin
{
       socket_type     = stream
       protocol        = tcp
       wait            = no
       user            = root
       group           = root
       server          = /usr/sbin/munin-node
       disable         = no
       bind            = 192.168.x.x
}

 a spustíme

$ /etc/init.d/xinetd start

Pro Mikrotik použijeme SNMP.

Povolit v Mikrotiku SNMP a comunity nastavit na public.