OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Zabbix Agent
« previous next »
  • Print
Pages: [1]

Author Topic: Zabbix Agent  (Read 6358 times)

jorgevisentini

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 5
    • View Profile
Zabbix Agent
« 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.
Logged

jorgevisentini

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 5
    • View Profile
Re: Zabbix Agent
« Reply #1 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?
Logged

bobbythomas

  • Full Member
  • ***
  • Posts: 134
  • Karma: 5
    • View Profile
Re: Zabbix Agent
« Reply #2 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.
Logged

fraenki

  • Full Member
  • ***
  • Posts: 171
  • Karma: 28
    • View Profile
    • GitHub
Re: Zabbix Agent
« Reply #3 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
« Last Edit: August 30, 2017, 04:16:53 pm by fraenki »
Logged

jorgevisentini

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 5
    • View Profile
Re: Zabbix Agent
« Reply #4 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
Logged

fraenki

  • Full Member
  • ***
  • Posts: 171
  • Karma: 28
    • View Profile
    • GitHub
Re: Zabbix Agent
« Reply #5 on: August 31, 2017, 08:18:05 pm »
Quote from: 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.

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


Regards
- Frank
Logged

jorgevisentini

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 5
    • View Profile
Re: Zabbix Agent
« Reply #6 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.
Logged

jorgevisentini

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 5
    • View Profile
Re: Zabbix Agent
« Reply #7 on: September 01, 2017, 04:54:31 pm »
Hi,

How can I update only this zabbix package?

Thank you!
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Zabbix Agent
« Reply #8 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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13624
  • Karma: 1172
    • View Profile
Re: Zabbix Agent
« Reply #9 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Zabbix Agent
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2