Since OPNsense is more vanilla FreeBSD, it is a lot simpler to install additional FreeBSD software on it than on pfSense.

Temporarily enable the FreeBSD repo by editing /usr/local/etc/pkg/repos/FreeBSD.conf and changing no to yes. Then run
pkg install munin-node
It will take a while to download and install all the necessary perl modules.

Unless this file already existed, a sample configuration file has been placed as /usr/local/etc/munin/munin-node.conf.
You can edit this file according to your needs. Remember to add an allow rule for your remote system running the munin data scraper:
allow ^11\.22\.33\.44$

Once installed, the Munin client will not be started automatically. To enable it on startup, add the following line in /etc/rc.conf:

To start munin-node now, run:
/usr/local/etc/rc.d/munin-node start

For a list of plugins that will probably work run
/usr/local/sbin/munin-node-configure --suggest

If this is a fresh install run
/usr/local/sbin/munin-node-configure --shell | sh -x
to enable the suggested plugins automatically.

Wait 5-10 minutes to see if the node is accessible from the munin scraper and gets added to the systems list.

Finally, remember to disable the FreeBSD repository in OPNsense.

Leave a Reply