Giter Site home page Giter Site logo

Comments (1)

rbicelli avatar rbicelli commented on May 27, 2024

Sorry, I made a mistake with value mappings.
I corrected and added new value mapping for openvpn servers in user/auth mode. Now I think everyhing is correct.
Anyway I think you are not clearly understanding a point: when a OpenVPN service is in user auth mode pfSense can't report the status of the tunnel, because there are multiple tunnels initiated by clients.
TL;DR Update to the latest commit

This is the status report in form of an array of a OpenVPN Server in user auth mode:

    [0] => Array
        (
            [port] => 1194
            [mode] => server_user
            [name] => OpenVPN Contractors UDP4:1194
            [conns] => Array
            [vpnid] => 1
            [mgmt] => server1 
       )

And this is the report of a p2p/Shared key OpenVPN Server

 [1] => Array
        (
            [port] => 1195
            [mode] => p2p_shared_key
            [name] => OpenVPN xxxx UDP4:1195           
            [vpnid] => 2
            [mgmt] => server2
            [status] => up
            [connect_time] => Sat Apr 18 23:17:12 2020
            [virtual_addr] => x.x.x.x
            [remote_host] => x.x.x.x
            [remote_port] => 53034
            [local_host] => 127.0.0.1
            [local_port] => 1195
            [virtual_addr6] => 
            [bytes_recv] => 164783720
            [bytes_sent] => 55986320
        )

As you can see there's no status key in OpenVPN in user auth mode, so i added a "fake" status report of up/listening into value mappings.

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.