$OpenBSD: README-server,v 1.7 2018/09/04 12:46:17 espie Exp $

+-----------------------------------------------------------------------
| Running munin-server on OpenBSD
+-----------------------------------------------------------------------

After configuring at least one munin-node instance and adapting
/etc/munin/munin.conf as desired, you may run the periodic
tasks from cron with the following line:

*/5     *       *       *       *       su  -s /bin/sh _munin /usr/local/bin/munin-cron

Log files in /var/log/munin will need to be rotated. Here is a sample
newsyslog.conf fragment:

/var/log/munin/munin-graph.log  _munin:_munin   644  7     250  *     Z
/var/log/munin/munin-html.log   _munin:_munin   644  7     250  *     Z
/var/log/munin/munin-limits.log _munin:_munin   644  7     250  *     Z
/var/log/munin/munin-update.log _munin:_munin   644  7     250  *     Z

Optionally you may want to use rrdcached to reduce disk I/O. Here is a sample
/etc/rc.conf.local part:
rrdcached_flags=-b /var/db/munin -l unix:/var/run/munin/rrdcached.sock -j /var/db/munin/journal -p /var/run/munin/rrdcached.pid -m 0660 -s _munin -w 1800 -z 1800 -f 3600 -F
rrdcached_user=_munin
Add www user to _munin group to grant write permissions on rrdcached socket.
