OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: jorgevisentini on August 11, 2017, 10:12:45 pm

Title: Zabbix Agent
Post by: jorgevisentini on August 11, 2017, 10:12:45 pm
Hi everybody!

I did install the Zabbix Agent and its worked, but the outgoing interface (net.if.out) dont return the values, only number zero.

Interesting that the ingoing interface (net.if.in) work...

hazabbix01:~ # zabbix-get -s 10.200.16.1 -p 10050 -k net.if.in[xn0]
6885748617
hazabbix01:~ # zabbix-get -s 10.200.16.1 -p 10050 -k net.if.out[xn0]
0
hazabbix01:~ #

I did install 2.4.7, 2.4.8 and 3.2.6 and both dont worked both OPNSense 16 and 17 version.
Also i did try install in OPNSense 17 and 16 version and in 16 version it worked with 2.4.7 Zabbix Agent.
Title: Re: Zabbix Agent
Post by: jorgevisentini on August 29, 2017, 05:36:23 pm
I just installed version 3.4 of the Zabbix agent and it also did not work.

Is someone going through it or is it just me?
Title: Re: Zabbix Agent
Post by: bobbythomas on August 30, 2017, 10:42:56 am
Can you try this method?

http://elatov.github.io/2016/12/install-zabbix-on-pfsense/

This worked for me.
Title: Re: Zabbix Agent
Post by: fraenki on August 30, 2017, 12:11:34 pm
There's an official Zabbix Agent plugin available from System -> Firmware -> Plugins.
After installation it can be configured at Services -> Zabbix Agent.

And it properly returns these values for me:

Code: [Select]
root@opnsense:~ # zabbix_get -s XXX -p 10050 -k "net.if.out[vtnet0]"
806723163
root@opnsense:~ # zabbix_get -s XXX -p 10050 -k "net.if.in[vtnet0]"
560202996


Regards
- Frank
Title: Re: Zabbix Agent
Post by: jorgevisentini on August 31, 2017, 07:45:40 pm
In the case of the plugin for OPNSense, I enter IP 10.200.0.254 but it is not recognized as valid IP. This occurs in the "Listen IPs" option and the "Zabbix Servers" option. So I configured without using the Plugin.


I will try the method of bobbythomas
Title: Re: Zabbix Agent
Post by: fraenki on August 31, 2017, 08:18:05 pm
In the case of the plugin for OPNSense, I enter IP 10.200.0.254 but it is not recognized as valid IP. This occurs in the "Listen IPs" option and the "Zabbix Servers" option. So I configured without using the Plugin.

You're talking about a bug that was fixed long ago.
Which version of OPNsense are you using?


Regards
- Frank
Title: Re: Zabbix Agent
Post by: jorgevisentini on August 31, 2017, 08:43:23 pm
Sorry, I use OPNsense 17.1.7-amd64 yet. I have no time for update for now...

But I plan to upgrade as soon as possible.
Title: Re: Zabbix Agent
Post by: jorgevisentini on September 01, 2017, 04:54:31 pm
Hi,

How can I update only this zabbix package?

Thank you!
Title: Re: Zabbix Agent
Post by: fabian on September 01, 2017, 06:53:20 pm
It's risky but you can try to install the pkg for 17.7 on 17.1. I would not recommend that.
Title: Re: Zabbix Agent
Post by: franco on September 01, 2017, 10:49:10 pm
I would not recommend trying to stretch this older install. Either update all or wait for now.


Cheers,
Franco