OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: Magician1981 on June 30, 2023, 07:08:19 PM

Title: zabbix how to help
Post by: Magician1981 on June 30, 2023, 07:08:19 PM
Hello,

Can someone please write a how to configure zabbix as I am unable to get it working with the (outdated) tutorials on the web.

Thank you.
Title: Re: zabbix how to help
Post by: phoenix on July 01, 2023, 02:28:10 PM
How about some details of the a) Tutorials you've followed and b) the problems you encountered and why id didn't work?

BTW, did you read the "how to" on the Zabbix site?
Title: Re: zabbix how to help
Post by: Magician1981 on July 01, 2023, 04:48:12 PM
Thank you for your reply. My post was intended as a general question for someone who has recently installed this. The following tutorials where used for setting up zabbix on my opnsense machine:

https://techexpert.tips/zabbix/zabbix-monitoring-opnsense-agent/
https://www.youtube.com/watch?v=wcxvphRYbnU (discarding the docker part)

The problem is that I cannot access the zabbix webgui by any means. I have looked at the zabbix website but what's written there differs from other sources of information. My guess is that different agent versions have different configuration steps?? There are multiple versions in the package manager..

Any shared experiences on how to set it up would be appreciated.
Title: Re: zabbix how to help
Post by: seed on July 01, 2023, 07:27:52 PM
When you install the zabbix-agent plugin in opnsense there is no gui.
Depending on the configuration the zabbix-server is polling monitoring data from your opnsense.
Title: Re: zabbix how to help
Post by: Magician1981 on July 01, 2023, 07:39:21 PM
Others have it. Have a look at the youtube link that I've posted. Would be nice if we could see what we are monitoring.

Regards
Title: Re: zabbix how to help
Post by: gpb on July 02, 2023, 03:05:55 AM
Zabbix agents of all versions have similar configuration and Zabbix even states you can use different version agents with the server...though you may not have full access to the newer features.  The Zabbix gui i provided by the server component, not the agent.  If you mean you can't see the configuration screen in OPNsense after you add it, refresh your browser page and it will appear under Services...from there you can add your configuration.
Title: Re: zabbix how to help
Post by: Magician1981 on July 02, 2023, 03:11:58 PM
Maybe I wasn't clear enough. After install of agent and configuration I was unable to navigate to the webgui of zabbix in the same way as the youtube tutorial shows.
So I need to install zabbix server next to the agent, but there is no zabbix server plugin in opnsense.. Do I need to run a docker image on a machine on the network ?
Title: Re: zabbix how to help
Post by: gpb on July 02, 2023, 03:16:28 PM
There is no server component for opnsense.  Zabbix is a large network monitoring package.  It monitors hosts throughout your network mostly using agents that are compiled for different OS's.  That is what is provided with OPNsense...a host (client) agent so you can monitor your OPNsense server.  The Zabbix server is set up using Linux.  See here:

https://www.zabbix.com/download
Title: Re: zabbix how to help
Post by: Magician1981 on July 02, 2023, 05:23:48 PM
Aha docker it is. That's what missing in the tutorials. Kinda half work. Anyway thank you for the clarification,
Title: Re: zabbix how to help
Post by: Linwood on July 02, 2023, 05:56:34 PM
As a long term zabbix fan I would suggest that installing zabbix JUST for OPNsense may not be worth the effort.  Monit may be a better alerting solution.  Zabbix is great if you want to monitor a heterogeneous network with a lot of separate devices and get consistent monitoring and alerting.  It's not that the zabbix server is hard to use, exactly, just a a fair amount of work and setup to do for monitoring one device.

If I've misread your intent my apologies.
Title: Re: zabbix how to help
Post by: Magician1981 on July 03, 2023, 09:21:14 AM
Any input is welcome. I've heard about monit, but it is basic. No graphs and such. There's also a cool project on github:

https://github.com/bsmithio/OPNsense-Dashboard

But it is quite tedious to set up. Maybe I will have a go when I'm feeling up to it. Originally I just wanted some simple monitor tool for basic info that I could easily set up.

Kind regards.