Open dcec opened 3 years ago
or with get_snmp_table:
my $oid_ActiveSSL = ".1.3.6.1.4.1.12356.101.12.2.3.1.2"; # Location of Fortinet firewall SSL VPN Tunnel connection count
my $oid_ActiveSSLTunnel = ".1.3.6.1.4.1.12356.101.12.2.3.1.6"; # Location of Fortinet firewall SSL VPN Tunnel connection count
my %ActiveSSL_table = %{get_snmp_table($session, $oid_ActiveSSL)};
my %ActiveSSLTunnel_table = %{get_snmp_table($session, $oid_ActiveSSLTunnel)};
my $k;
foreach $k (keys(%ActiveSSL_table)) {
$ActiveSSL += $ActiveSSL_table{$k};
}
foreach $k (keys(%ActiveSSLTunnel_table)) {
$ActiveSSLTunnel += $ActiveSSLTunnel_table{$k};
}`
Would you mind to create a pull request?
with multiple vdom this code calculate only the vpn on first, example: SNMPv2-SMI::enterprises.12356.101.12.2.3.1.2.1 = Gauge32: 0 SNMPv2-SMI::enterprises.12356.101.12.2.3.1.2.2 = Gauge32: 0 SNMPv2-SMI::enterprises.12356.101.12.2.3.1.2.3 = Gauge32: 2
with this change working fine for me: