<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Monitor Concurrent VPN users connected to a Gateway (OID) in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/85302#M6576</link>
    <description>&lt;P&gt;Learning SNMP, bare with me:&amp;nbsp; I was wondering why the OID .1.2.3.4.5.6.7.8.15 was used? Is that just an example? I’m trying to poll using What’s Up Gold but it defaults to 1.3.6.1 when setting up a poll due to the Checkpoint mib that is loaded. Any assistance would be appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 15:54:30 GMT</pubDate>
    <dc:creator>Troy_Yeske</dc:creator>
    <dc:date>2020-05-14T15:54:30Z</dc:date>
    <item>
      <title>How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/79897#M6153</link>
      <description>&lt;P&gt;Dear Checkmates,&lt;/P&gt;&lt;P&gt;If a customer have asked to you how to monitor the concurrent VPN sessions per user with a specific SNMP tool you will have to follow the following procedure:&lt;/P&gt;&lt;P&gt;1. Login to the Gateway via SSH&lt;BR /&gt;2. From clish run the command "show configuration snmp" to check which is your community&lt;/P&gt;&lt;P&gt;The Output should be something like this:&lt;BR /&gt;CPSG&amp;gt; show configuration snmp&lt;BR /&gt;set snmp mode default&lt;BR /&gt;set snmp agent on&lt;BR /&gt;set snmp agent-version any&lt;BR /&gt;set snmp community labtest read-only&lt;BR /&gt;add snmp interface eth2.4&lt;BR /&gt;add snmp interface lo&lt;/P&gt;&lt;P&gt;Note: The community in this case is "labtest"&lt;/P&gt;&lt;P&gt;3. Go again to expert mode and create a directory:&lt;BR /&gt;CPSG# mkdir /var/log/snmpmon_script&lt;/P&gt;&lt;P&gt;4. Navigate to the directory you created in the previous step&lt;BR /&gt;CPSG# cd /var/log/snmpmon_script&lt;/P&gt;&lt;P&gt;5. Create a script in which you will put the following command:&lt;/P&gt;&lt;P&gt;CPSG# vi vpnconcurrentmon.sh&lt;/P&gt;&lt;P&gt;fw tab -t userc_users -s | awk '{print $4}' | grep -v -e "#VALS"&lt;/P&gt;&lt;P&gt;Notes: If you want to insert press "i" then paste the command and to save the changes and exit type&lt;BR /&gt;5.1. ":"&lt;BR /&gt;5.2. "wq!"&lt;BR /&gt;5.3. "Enter"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;6. Then we have to make sure that the script that we have created works "sh vpnconcurrentmon.sh"&lt;BR /&gt;-It should give you the number of concurrent VPN users&lt;/P&gt;&lt;P&gt;7. Then you have to use snmpwalk to make sure your firewall is not using the OID you are about to configure:&lt;BR /&gt;CPSG# snmpwalk -v 2c -c labtest localhost .1.2.3.4.5.6.7.8.15&lt;/P&gt;&lt;P&gt;Note: The OID that we want to use in this case is: .1.2.3.4.5.6.7.8.15&lt;/P&gt;&lt;P&gt;8. Then we will create a copy of the original file, to have a copy and modify the original:&lt;BR /&gt;CPSG# cd /etc/snmp&lt;BR /&gt;CPSG# cp userDefinedSettings.conf userDefinedSettings.conf_original&lt;/P&gt;&lt;P&gt;9. Then to modify the original file we have to make a new "vi" to the file named: "userDefinedSettings.conf"&lt;BR /&gt;CPSG# vi userDefinedSettings.conf&lt;/P&gt;&lt;P&gt;9.1 In the editor add the line at the end of the comments "#":&lt;BR /&gt;extend .1.2.3.4.5.6.7.8.15 process_monitor /bin/sh /var/log/snmpmon_script/vpnconcurrentmon.sh&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;10. In clish mode restart snmp services:&lt;BR /&gt;CAT-EP&amp;gt; set snmp agent off&lt;BR /&gt;CAT-EP&amp;gt; set snmp agent on&lt;BR /&gt;CAT-EP&amp;gt; save config&lt;BR /&gt;CAT-EP&amp;gt; exit&lt;/P&gt;&lt;P&gt;11. In expert mode validate your OID:&lt;/P&gt;&lt;P&gt;CPSG# snmpwalk -v2c -c labtest localhost .1.2.3.4.5.6.7.8.15&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.1.0 = INTEGER: 1&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.2.1.2.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = STRING: "/bin/sh"&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.2.1.3.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = STRING: "/var/log/snmpmon_script/concurrentvpn.sh"&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.2.1.4.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = ""&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.2.1.5.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = INTEGER: 5&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.2.1.6.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = INTEGER: 1&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.2.1.7.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = INTEGER: 1&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.2.1.20.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = INTEGER: 4&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.2.1.21.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = INTEGER: 1&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.3.1.1.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = STRING: "2"&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.3.1.2.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = STRING: "2"&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.3.1.3.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = INTEGER: 1&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.3.1.4.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114 = INTEGER: 0&lt;BR /&gt;iso.2.3.4.5.6.7.8.15.4.1.2.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114.1 = STRING: "2"&lt;BR /&gt;CPSG#&lt;BR /&gt;CPSG# fw tab -t userc_users -s | awk '{print $4}' | grep -v -e "#VALS"&lt;BR /&gt;2&lt;/P&gt;&lt;P&gt;11.1 Then use again the snmpwalk command to navigate to the correct OID:&lt;BR /&gt;CPSG# snmpwalk -v2c -c labtest localhost .1.2.3.4.5.6.7.8.15.4.1.2.15.112.114.111.99.101.115.115.95.109.111.110.105.116.111.114.1&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 01:49:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/79897#M6153</guid>
      <dc:creator>WillGonzalez</dc:creator>
      <dc:date>2020-03-27T01:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80209#M6159</link>
      <description>&lt;P&gt;Good morning everyone. We're doing this currently with SolarWinds NPM, and we went about it slightly different. We currently have our entire organization working from home, connected to two separate VPN gateway clusters. This is what we did;&lt;/P&gt;&lt;P&gt;1.) Enable SNMP in Gaia, and make sure your poller has SNMP access to it via the rulebase on the gateway.&lt;/P&gt;&lt;P&gt;2.) Make sure SolarWinds NPM has discovered the gateway, and is actively monitoring it.&lt;/P&gt;&lt;P&gt;3.) From the SolarWinds server, open the Universal Device Poller tool, and create a new Universal Device Poller;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-03-30_115858.jpg" style="width: 513px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5230i0D5C29A3A7A50B64/image-dimensions/513x352?v=v2" width="513" height="352" role="button" title="2020-03-30_115858.jpg" alt="2020-03-30_115858.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4.) Setup the OID, give it a name, and set the polling interval;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-03-30_114502.jpg" style="width: 588px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5231i48A0201E84E58781/image-dimensions/588x534?v=v2" width="588" height="534" role="button" title="2020-03-30_114502.jpg" alt="2020-03-30_114502.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5,) Assign it to the nodes you want to monitor;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-03-30_120338.jpg" style="width: 466px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5232i94EC1AC8F5AA970C/image-dimensions/466x338?v=v2" width="466" height="338" role="button" title="2020-03-30_120338.jpg" alt="2020-03-30_120338.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That's pretty much it. Here's an example of what the graphs look like;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-03-30_120605.jpg" style="width: 711px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5233iE81D9592178FCC77/image-dimensions/711x312?v=v2" width="711" height="312" role="button" title="2020-03-30_120605.jpg" alt="2020-03-30_120605.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 16:09:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80209#M6159</guid>
      <dc:creator>cdooer</dc:creator>
      <dc:date>2020-03-30T16:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80212#M6160</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;wow this is a cool thing, but can you explain, why i see too little users when i run the same stuff on a R80.20SP plattform?&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Expert@NWATSBGFWCL01-ch01-04(active)# g_fw tab -t userc_rules -s&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1_01:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;HOST NAME ID #VALS #PEAK #SLINKS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;localhost userc_rules 164 98 877 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1_02:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;HOST NAME ID #VALS #PEAK #SLINKS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;localhost userc_rules 164 98 876 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1_03:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;HOST NAME ID #VALS #PEAK #SLINKS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;localhost userc_rules 164 98 877 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1_04:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;HOST NAME ID #VALS #PEAK #SLINKS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;localhost userc_rules 164 98 877 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Expert@NWATSBGFWCL01-ch01-04(active)# ./vpnconcurrentmon.sh&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;94&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;i see 98 connected to the Maestro, but the script shows me 94?&lt;BR /&gt;&lt;BR /&gt;is there a logical explanation?&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Thomas.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 16:53:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80212#M6160</guid>
      <dc:creator>Thomas_Eichelbu</dc:creator>
      <dc:date>2020-03-30T16:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80249#M6168</link>
      <description>&lt;P&gt;This is exactly the information I was looking for.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am getting really strange results:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;[Expert@auc01-fw-ext01-a:0]# snmpget -c public -v 1 172.18.160.2 .1.3.6.1.4.1.2620.1.2.5.4.23.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SNMPv2-SMI::enterprises.2620.1.2.5.4.23.0 = STRING: "&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;163&lt;/FONT&gt;&lt;/STRONG&gt;"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[Expert@auc01-fw-ext01-a:0]# fw tab -t userc_users -s&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;HOST NAME ID #VALS #PEAK #SLINKS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;localhost userc_users 147 &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;72&lt;/FONT&gt;&lt;/STRONG&gt; 87 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;As you can see, 72 vs 163.&lt;/P&gt;&lt;P&gt;Did you encounter anything like this?&lt;/P&gt;&lt;P&gt;On another gateway, I am getting &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;6 vs 279&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 22:52:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80249#M6168</guid>
      <dc:creator>Egenity</dc:creator>
      <dc:date>2020-03-30T22:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80250#M6169</link>
      <description>Hi there. It took some trial and error on our part as well, but what I noticed is that is you drop the '0' (zero), you get the proper result. It seems as though adding that final zero gives you the high water mark for the most connected clients the gateway has seen at one time.&lt;BR /&gt;&lt;BR /&gt;Try 1.3.6.1.4.1.2620.1.2.5.4.23, and see if you get the desired results.</description>
      <pubDate>Mon, 30 Mar 2020 22:57:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80250#M6169</guid>
      <dc:creator>cdooer</dc:creator>
      <dc:date>2020-03-30T22:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80285#M6171</link>
      <description>&lt;P&gt;I use on R80.20 the MIB iso.3.6.1.4.1.2620.500.9000.1.2 and get all current Users via SNMPv3.&lt;/P&gt;&lt;P&gt;Then we wrote a own check-plugin additional to the standard Checkpoint Plugins to have a overview on our "Check MK" monitoring server with counter and usernames.&lt;/P&gt;&lt;P&gt;The check is a little bit rudimentary (not much configurable now) but perhaps it´s useful for someone else here:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;#!/usr/bin/python&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# -*- encoding: utf-8; py-indent-offset: 4 -*-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# +------------------------------------------------------------------+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# | ____ _ _ __ __ _ __ |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# | / ___| |__ ___ ___| | __ | \/ | |/ / |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# | | |___| | | | __/ (__| &amp;lt; | | | | . \ |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# | |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# | Copyright Mathias Kettner 2014 mk@mathias-kettner.de |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# +------------------------------------------------------------------+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;#&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# This file is part of Check_MK.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# The official homepage is at &lt;A href="http://mathias-kettner.de/check_mk" target="_blank"&gt;http://mathias-kettner.de/check_mk&lt;/A&gt;.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;#&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# check_mk is free software; you can redistribute it and/or modify it&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# under the terms of the GNU General Public License as published by&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# the Free Software Foundation in version 2. check_mk is distributed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# PARTICULAR PURPOSE. See the GNU General Public License for more de-&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# tails. You should have received a copy of the GNU General Public&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# License along with GNU Make; see the file COPYING. If not, write&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# Boston, MA 02110-1301 USA.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;# .1.3.6.1.2.1.1.1.0 Linux gateway1 2.6.18-92cp #1 SMP Tue Dec 4 21:44:22 IST 2012 i686&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;# .1.3.6.1.4.1.2620.1.1.25.3.0 19190&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;#checkpoint_connections_default_levels = (40000, 50000)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;import datetime&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vpn_states = {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "3": "Active",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "4": "Destroy",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "129": "Idle",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "130": "Phase1",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "131": "Down",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "132": "Init",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;def inventory_checkpoint_vpnconnections(info):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; pprint.pprint(info)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return [(None, None)]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;def check_checkpoint_vpnconnections(item, params, info):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; state = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infotext1 = ""&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for lauf in info:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print (lauf[2])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user = lauf[0].split("@")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; starttime = saveint(lauf[2])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timea = datetime.datetime.fromtimestamp(starttime)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timeb = timea.strftime("%m/%d/%Y, %H:%M:%S")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print (timea)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infotext1 += user[0] + " Status: " + vpn_states[lauf[1]] + " Since: " + timeb + "\n"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter =+ counter +1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + vpn_states[lauf[1]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + " since : " + datetime.fromtimestamp(lauf[2]) + "\n"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infotext=("%d VPN Connections\n" % counter )&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return state, infotext + infotext1, [("vpnconnctions", counter)]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;check_info["checkpoint_vpnconnections"] = {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "check_function": check_checkpoint_vpnconnections,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "inventory_function": inventory_checkpoint_vpnconnections,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "service_description": "VPNConnections",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "has_perfdata": True,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "group": "checkpoint_connections",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "snmp_scan_function": scan_checkpoint,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "snmp_info": (".1.3.6.1.4.1.2620.500.9000.1" , [ "2", "4", "29" ]),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "includes": ["checkpoint.include"],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andi&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 07:33:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80285#M6171</guid>
      <dc:creator>Andreas_Schreib</dc:creator>
      <dc:date>2020-03-31T07:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80291#M6173</link>
      <description>&lt;P&gt;Results from fw tab -t userc_users -s differ greatly from OID 1.3.6.1.4.1.2620.1.2.5.4.23.0, SmartConsole and SmartView Monitor in our environment (R80.30 Take 111).&amp;nbsp; I raised a support call about it and a fix was provided in Take 155 &lt;SPAN class="test-id__field-value slds-form-element__static slds-grow  is-read-only"&gt;&lt;SPAN class="uiOutputTextArea"&gt;(see PRJ-3404, PRJ-5954, VPNS2S-417 SmartView Monitor VPN tunnel status may show incorrect or missing tunnels status for a cluster object.)&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp; However, when I installed this in production it made the problem worse with the figures wildly different to fw tab.&amp;nbsp; I have raised a new call now and been provided with another hotfix.&amp;nbsp; I'm not going to be able to deploy that in production for a while as it involves a simultaneous reboot of both cluster members so have gone down the SNMP extend script route now for our monitoring.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 08:50:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80291#M6173</guid>
      <dc:creator>MattG</dc:creator>
      <dc:date>2020-03-31T08:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80293#M6174</link>
      <description>&lt;P&gt;Are you sure&amp;nbsp;1.3.6.1.4.1.2620.1.2.5.4.23 is the right OID?&lt;/P&gt;&lt;P&gt;I have checked against our 5800 firewalls and that OID is for&amp;nbsp;cpvIpsecUdpEspDecPkts ("IPsec UDP ESP decrypted packets"), not VPNConnectedUsers.&lt;/P&gt;&lt;P&gt;We are running R80.30.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 09:12:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80293#M6174</guid>
      <dc:creator>ascoyne</dc:creator>
      <dc:date>2020-03-31T09:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80326#M6177</link>
      <description>I did try without the .0 on the end and got an SNMP error. The environment I tested on is R80.10, which is slated for upgrade soon anyway. Obviously from all the discussion here, the various releases produce different results, and there also appears to be bugs surrounding this. Looks like I will have to fallback on a script to get the data, like original solution at the top of this thread.</description>
      <pubDate>Tue, 31 Mar 2020 14:25:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80326#M6177</guid>
      <dc:creator>Egenity</dc:creator>
      <dc:date>2020-03-31T14:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80355#M6178</link>
      <description>&lt;P&gt;Hello Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure you are using a specific OID that is not being used by something else, remember that you have to navigate to the specific number of OID that has the number of your current vpn sessions,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 17:41:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80355#M6178</guid>
      <dc:creator>WillGonzalez</dc:creator>
      <dc:date>2020-03-31T17:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80430#M6197</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in this case I should see the RA Users by Endpoint Security client . Are there any method to see the Mobile Access Users via SNMP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Jacopo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 08:59:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80430#M6197</guid>
      <dc:creator>Jacopo_Vigano</dc:creator>
      <dc:date>2020-04-01T08:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80472#M6204</link>
      <description>May need a patch from TAC to resolve this on R80.10.</description>
      <pubDate>Wed, 01 Apr 2020 13:16:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80472#M6204</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-01T13:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80777#M6245</link>
      <description>&lt;P&gt;Thank you very much, it has been very useful to me!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 18:56:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/80777#M6245</guid>
      <dc:creator>Diego_Carreno</dc:creator>
      <dc:date>2020-04-03T18:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/81021#M6273</link>
      <description>&lt;P&gt;Well, even after upgrade to R80.30 T155, same results. So, I gave up and did the original SNMP script solution described at the beginning of this thread. Works great, but a custom mod that must be tracked between major upgrades.&lt;/P&gt;&lt;P&gt;My client is happy with solution.&amp;nbsp; I do wish there was a reliable OID that truly returned the same result as "fw tab -t userc_users -s"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 17:33:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/81021#M6273</guid>
      <dc:creator>Egenity</dc:creator>
      <dc:date>2020-04-06T17:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/85302#M6576</link>
      <description>&lt;P&gt;Learning SNMP, bare with me:&amp;nbsp; I was wondering why the OID .1.2.3.4.5.6.7.8.15 was used? Is that just an example? I’m trying to poll using What’s Up Gold but it defaults to 1.3.6.1 when setting up a poll due to the Checkpoint mib that is loaded. Any assistance would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 15:54:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/85302#M6576</guid>
      <dc:creator>Troy_Yeske</dc:creator>
      <dc:date>2020-05-14T15:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/85305#M6577</link>
      <description>&lt;P&gt;Thanks for the step by step. I am not finding the 1.3.6.1.4.1.2620.1.2.5.4.23 oid in the Universal Device Poller. I even did a MIB update. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 16:28:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/85305#M6577</guid>
      <dc:creator>cowboyx2</dc:creator>
      <dc:date>2020-05-14T16:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/115113#M16148</link>
      <description>&lt;P&gt;I think it is one OID pre defined on GAIA OS to add your own commands.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 15:08:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/115113#M16148</guid>
      <dc:creator>Americo_two</dc:creator>
      <dc:date>2021-04-01T15:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/240655#M46690</link>
      <description>&lt;P&gt;Always return 0&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 19:18:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/240655#M46690</guid>
      <dc:creator>marcio_ota</dc:creator>
      <dc:date>2025-02-06T19:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Monitor Concurrent VPN users connected to a Gateway (OID)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/240656#M46691</link>
      <description>&lt;P&gt;How to set virtual system 1 ?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 19:22:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-Monitor-Concurrent-VPN-users-connected-to-a-Gateway-OID/m-p/240656#M46691</guid>
      <dc:creator>marcio_ota</dc:creator>
      <dc:date>2025-02-06T19:22:21Z</dc:date>
    </item>
  </channel>
</rss>

