Fortigate SSL VPN statistics monitoring & graphs

Tags: #<Tag:0x00007fec75d70f78>

I would like to see support for graphs counts of clients connecting to a Fortigate SSL VPN; other statistics would also be useful (unique users; average time connected per session; average bytes in/out per session). Client count information similar to the graphs produced in the latest LibreNMS wireless code update would be ideal.

Sanitised snmpbulkwalk output below (from a Fortigate 1500D) showing three concurrently connected users with MIB objects as per

 /usr/bin/snmpbulkwalk -OsqnU  -M /opt/librenms/mibs device .
. 2                         ! fgVpnSslState
. 3                         ! fgVpnSslStatsLoginUsers
. 6                         ! fgVpnSslStatsMaxUsers
. 4                         ! fgVpnSslStatsActiveWebSessions
. 9                         ! fgVpnSslStatsMaxWebSessions
. 3                         ! fgVpnSslStatsActiveTunnels
. 3                         ! fgVpnSslStatsMaxTunnels

 /usr/bin/snmpbulkwalk -OsqnU  -M /opt/librenms/mibs device .
. 1                         ! fgVpnSslTunnelIndex
. 2
. 3
. 1                         ! fgVpnSslTunnelVdom
. 1
. 1
. "user1"                   ! fgVpnSslTunnelUserName (Username)
. "user2"
. "user3"
.           ! fgVpnSslTunnelSrcIp (Client source IP)
.              ! fgVpnSslTunnelIp (Client SSL VPN allocated IP)
. 593                       ! fgVpnSslTunnelUpTime (Seconds connected to SSL VPN)
. 92
. 15
. 521220                    ! fgVpnSslTunnelBytesIn (bytes out from client)
. 24421
. 953
. 1151950                   ! fgVpnSslTunnelBytesOut (bytes in to client)
. 22216
. 2870


1 Like

Should be pretty simple. I’ll work on this as I get time. I’ve got some use for it as well.


@alanbboyd I started working on this, but it’s a bit more complicated than I originally thought. The Fortigate reports the SSL stats per VDOM, so I need to figure out a way to create a graph per VDOM, or a single graph that shows all VDOMs. I’ll link the pull request when it’s ready.

1 Like

No problem, thanks for the update.

Hi @network-guy.

Was this ever implemented?

Best wishes
Frey Alfredsson

I’m looking for this too.
Any update?

Thanks for the hard work!
Just find out that there are COUNT for SSLVPN now and wondering how to add to the widget.
I did find [Device Count] ing Graph and this will display all of the COUNT items of that device.
But I just want [SSL VPN Logged users]
Is it possible?

1 Like

Yip thanks for the Devs, this is a great feature

And a big thankyou from me - VPN usage graphs are building up nicely. Lovely! :grinning: