Giter Site home page Giter Site logo

Comments (12)

rbicelli avatar rbicelli commented on May 27, 2024 1

Hello! I released an optional template which monitors the connected clients. Please check it out.

from pfsense-zabbix-template.

rbicelli avatar rbicelli commented on May 27, 2024

Hi!
Are you monitoring a client which authenticaates to another pfsense in remote access/user auth mode or are you monitoring the server configured as user auth?

from pfsense-zabbix-template.

emcgarcia101 avatar emcgarcia101 commented on May 27, 2024

Hello!

Using remote access with user auth and ssl/tls certs, only one PfSense per site, the two production instances is on different companies, and the lab is on my home.

from pfsense-zabbix-template.

rbicelli avatar rbicelli commented on May 27, 2024

Please try running the script without arguments in pfSense shell and post the output. If posting here you should anonymize relevant data or send them to my mail address (is on top header of the script :))

from pfsense-zabbix-template.

emcgarcia101 avatar emcgarcia101 commented on May 27, 2024

Hi!

The return of the script, i used command "php pfsense_zbx.php" to run.
One client connected at the moment with user: suporte.ti

logzabbix.txt

from pfsense-zabbix-template.

rbicelli avatar rbicelli commented on May 27, 2024

What's your expected result? According to the template you should see the value
OpenVPN Server {#NAME} Clients Connected ramping up to 1.

from pfsense-zabbix-template.

emcgarcia101 avatar emcgarcia101 commented on May 27, 2024

The Zabbix are not getting the information, below a screenshot.

print pfsense

Dont show anything about clients, just the server information...

from pfsense-zabbix-template.

rbicelli avatar rbicelli commented on May 27, 2024

Sorry, but I still do not understand.

According to discovery rules the template is showing correctly the number of clients connected (the first value you see - Last Value 1, Change +1).
(BTW There's no implementation about which client is connected because to me is out of the scope of Zabbix. However making a new set of discovery rules for this is possible)

If you put to monitor the pfSense instance which is running as client you'll see a value like this:
image
But you'll se this value only if you are initiating a tunnel as client.

from pfsense-zabbix-template.

emcgarcia101 avatar emcgarcia101 commented on May 27, 2024

exactly this implementation I was looking for, I will try the discovery rules and if successful I let you know

from pfsense-zabbix-template.

kevendoliveira avatar kevendoliveira commented on May 27, 2024

Sorry, but I still do not understand.

According to discovery rules the template is showing correctly the number of clients connected (the first value you see - Last Value 1, Change +1).
(BTW There's no implementation about which client is connected because to me is out of the scope of Zabbix. However making a new set of discovery rules for this is possible)

If you put to monitor the pfSense instance which is running as client you'll see a value like this:
image
But you'll se this value only if you are initiating a tunnel as client.

So as I understand it, the status "None" for the item Tunnel Status is normal, in case of using remote access mode is it better to disable the item?

from pfsense-zabbix-template.

rbicelli avatar rbicelli commented on May 27, 2024

So as I understand it, the status "None" for the item Tunnel Status is normal, in case of using remote access mode is it better to disable the item?

Yes, it is normal. Even in pfSense GUI you won't see the VPN tunnel status when in user auth mode but only clients connected.

AFAIK in Zabbix you can't disable an item on a single element of a discovery rule. The only way I see for having this valued disabled (or hidden) is to split the OpenVPN Server discovery in two parts:

  • OpenVPN Servers P2P
  • OpenVPN Servers User Auth
    But the value itself is excluded from triggers, so I don't see a reason for splitting discovery rules.

from pfsense-zabbix-template.

emcgarcia101 avatar emcgarcia101 commented on May 27, 2024

You're the best!

from pfsense-zabbix-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.