Monitor OPNsense with Zabbix (Active Agent, GUI-only)

TL;DR

Install the OPNsense Zabbix Agent plugin → enable it → set Hostname to exactly your Zabbix host name → set Active Check Servers to zabbix.maksonlee.com → in Zabbix, create a host with the same name and link a FreeBSD by Zabbix agent active template → verify in Latest data within ~2 minutes.

Background on why “active” matters: https://www.maksonlee.com/zabbix-agent-active-vs-passive-what-they-mean-and-when-to-use-each/


Tested Environment

  • OPNsense 25.7.x
  • Zabbix Server 7.4.x
  • OPNsense plugin: os-zabbix72-agent

  1. Install the plugin (GUI)

System → Firmware → Plugins → search zabbix → click + on os-zabbix72-agent to install.
Note: If the Services → Zabbix Agent menu doesn’t appear immediately after install, refresh the page (or reboot once).


  1. Configure the agent: Main Settings

Services → Zabbix Agent → Settings → Main Settings

Fill exactly:

FieldValue
Enabled
Hostnameopnsense.maksonlee.com (must match the Zabbix “Host name” exactly; case-sensitive)
Listen Port / Listen IPsleave defaults (Active checks don’t use them)
Zabbix ServersOptional. Set zabbix.maksonlee.com only if your template keeps any passive items; otherwise leave default

Click Apply.


  1. Turn on Active checks

Services → Zabbix Agent → Settings → Advanced

Set:

FieldValue
Enable Active Checks
Active Check Serverszabbix.maksonlee.com
Active Check Refresh120 (default is fine)
PSK based encryptionOptional; if enabled, configure the same identity/key on the Zabbix host

Click Apply.

Network note: allow outbound TCP 10051 from OPNsense to your Zabbix. No inbound 10050 rule is required.


  1. Create the host in Zabbix

Data collection → Hosts → Create host

  • Host name: opnsense.maksonlee.com (exactly the same as in OPNsense)
  • Interfaces: Optional here; Active checks don’t rely on it
  • Templates: link a FreeBSD by Zabbix agent active template

The stock “Template OS FreeBSD by Zabbix agent” is passive. Use an active variant.


Wrap-Up

With Active checks, OPNsense pushes metrics out to Zabbix on TCP 10051, no inbound agent ports on the firewall. Match hostnames, set the Active server to zabbix.maksonlee.com, link a FreeBSD-active template, and you’re done.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top