<?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: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83279#M80511</link>
    <description>&lt;P&gt;One more thing. The infrastructure for monitoring was already there, so all I did was code to leverage it. We are indeed doing a lot more things in our work than just administering Checkpoint Firewalls.&lt;/P&gt;&lt;P&gt;Also please check Paul's answer in this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/Compliance-and-SmartEvent/SmartView-VPN-Client-enhanced-view/m-p/79037#M55" target="_blank"&gt;https://community.checkpoint.com/t5/Compliance-and-SmartEvent/SmartView-VPN-Client-enhanced-view/m-p/79037#M55&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Again ty.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2020 11:38:35 GMT</pubDate>
    <dc:creator>mythryll</dc:creator>
    <dc:date>2020-04-27T11:38:35Z</dc:date>
    <item>
      <title>Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Grafana</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83258#M80507</link>
      <description>&lt;P&gt;In case you are interested in monitoring VPN Users on GAIA based firewall check this post out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can answer questions about the code and the integration but not about the infrastructure.&lt;/P&gt;&lt;P&gt;Enjoy reading, some knowledge of Python is assumed. I can provide references to get yourself aquainted with most of the technology in the post.&lt;/P&gt;&lt;P&gt;&lt;A title="Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Grafana" href="http://www.mythryll.com/?p=1004" target="_blank" rel="noopener"&gt;http://www.mythryll.com/?p=1004&lt;/A&gt;&lt;/P&gt;&lt;P&gt;J. T.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 09:04:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83258#M80507</guid>
      <dc:creator>mythryll</dc:creator>
      <dc:date>2020-04-27T09:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83261#M80508</link>
      <description>&lt;P&gt;Welcome to this community.&lt;/P&gt;
&lt;P&gt;So you did a lot of work getting all this done with so many different tools just to get a single graph on RAS-VPN user count. Wow. Check Point &lt;STRONG&gt;SmartEvent&lt;/STRONG&gt; provides you with this graph directly. As you work in a critical infrastructure I'm sure you have a license for it. Here are some examples for RAS-VPN reports:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/Logging-and-Reporting/A-Basic-Remote-Access-Report-for-R80-x/m-p/78322" target="_self"&gt;Basic&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.checkpoint.com/t5/Visibility-Analytics/SmartView-VPN-Client-enhanced-view/m-p/78873" target="_self"&gt;Enhanced&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.checkpoint.com/t5/Remote-Access-Solutions/Monitoring-applications-and-data-volume-related-to-remote-access/m-p/79147" target="_self"&gt;Application Monitoring&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.checkpoint.com/t5/Logging-and-Reporting/Custom-view-for-getting-Remote-Access-User-Stats/m-p/79666" target="_self"&gt;Custom User Stats&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also &lt;STRONG&gt;SmartView Monitor&lt;/STRONG&gt;&amp;nbsp;can easily provide you with that graph on VPN history.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 250px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5809iACCF5047F7A9794E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 10:02:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83261#M80508</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2020-04-27T10:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83264#M80509</link>
      <description>&lt;P&gt;Hello.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure you read the post correctly. Nobody wants to take a look at the user list. In fact noone should. There are legal issues involved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;They just wanted a graph for the user count. That's it.&lt;/P&gt;&lt;P&gt;It may look unimportant but that's what the management wanted. And that wasn't available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whether a license is needed for reports I can't answer that. I don't handle the licenses.&lt;/P&gt;&lt;P&gt;The local vendor didn't have a solution at hand, the support partner didn't have a solution at hand. I am sure they all know more about reports than I do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the code is there. If anyone likes to use it, that's fine. If they don't that's fine as well. I am not making money or gathering fame from it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's working for a while now without issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your remarks.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 09:43:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83264#M80509</guid>
      <dc:creator>mythryll</dc:creator>
      <dc:date>2020-04-27T09:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83271#M80510</link>
      <description>&lt;P&gt;I doubled checked (it's been a month after all and some things one remembers can be wrong).&lt;/P&gt;&lt;P&gt;There is no such graph : VPN user count, not list, remember we are not allowed to look at the list, under GDPR, the list is also available through SNMP, but doing a count on the SNMP entries is not less work, it's actually more, the check point command is a one liner. Also if a graph is requested but none is provided on the system then you have to create a graph somewhere.&lt;/P&gt;&lt;P&gt;We even tried integrating other custom reports (besides the built-in ones) but we didn't find any with VPN user count.&lt;/P&gt;&lt;P&gt;Perhaps you are assuming that if one posts under a new forum user, he must be a newbie. I will not comment on that, I prefer to assume you are acting with the best intentions. I will also not explain why I am posting as a new user. You can choose to ignore me if you like.&lt;/P&gt;&lt;P&gt;If you do find a report about it, please share it and if it does work, I will gladly accept that you are right and even remove this post myself. We will also start using it at work.&lt;/P&gt;&lt;P&gt;If not please acknowledge that there is no report.&lt;/P&gt;&lt;P&gt;If you don't like the post, that's perfectly fine. If you want it taken down, that's also fine. I don't really mind.&lt;/P&gt;&lt;P&gt;3 different people asked me to post it here. So I did.&lt;/P&gt;&lt;P&gt;Thank you again for the interaction.&lt;/P&gt;&lt;P&gt;J.T.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 10:22:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83271#M80510</guid>
      <dc:creator>mythryll</dc:creator>
      <dc:date>2020-04-27T10:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83279#M80511</link>
      <description>&lt;P&gt;One more thing. The infrastructure for monitoring was already there, so all I did was code to leverage it. We are indeed doing a lot more things in our work than just administering Checkpoint Firewalls.&lt;/P&gt;&lt;P&gt;Also please check Paul's answer in this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/Compliance-and-SmartEvent/SmartView-VPN-Client-enhanced-view/m-p/79037#M55" target="_blank"&gt;https://community.checkpoint.com/t5/Compliance-and-SmartEvent/SmartView-VPN-Client-enhanced-view/m-p/79037#M55&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Again ty.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 11:38:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83279#M80511</guid>
      <dc:creator>mythryll</dc:creator>
      <dc:date>2020-04-27T11:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83388#M80512</link>
      <description>While I think we've covered the "count" of VPN users in one of the community-generated reports listed here: &lt;A href="https://community.checkpoint.com/t5/Remote-Access-Solutions/Remote-Access-VPN-Short-List-of-Most-Useful-Resources-and-Tools/m-p/78983#M2935" target="_blank"&gt;https://community.checkpoint.com/t5/Remote-Access-Solutions/Remote-Access-VPN-Short-List-of-Most-Useful-Resources-and-Tools/m-p/78983#M2935&lt;/A&gt;&lt;BR /&gt;I'm all for people coming up with other alternatives.&lt;BR /&gt;Nicely done!&lt;BR /&gt;&lt;BR /&gt;You may not be new with Check Point, but clearly you're new here on CheckMates, so welcome aboard!</description>
      <pubDate>Mon, 27 Apr 2020 20:02:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83388#M80512</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-27T20:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83394#M80513</link>
      <description>&lt;P&gt;Thank you for both the reply and the welcome. About whether I am new, Val Loukine knows exactly why I am posting under this account, please free to ask him. No point in adding to the 'drama' , there are internal reasons for it, nothing to do with Checkpoint or this forum.&lt;/P&gt;&lt;P&gt;I appreciate the work everyone posts here, sharing is important. I can't say I am familiar with all the content here, also I am sure there is more to come.&lt;/P&gt;&lt;P&gt;It's funny how all those important posts were created on the same day, talking mostly about Val Loukine's post and Daniel's one-liner , both carry the same date (March 20th) as when we gave up searching for the answer and started coding.&lt;/P&gt;&lt;P&gt;Our team leader did try Daniel one's liner but that didn't work, I guess due to reasons that have to do with how cron is setup and access rights, he does mention some prereqs in his post . I didn't have the time to troubleshoot that though at the time.&lt;/P&gt;&lt;P&gt;Mazhar's post seems to be what we needed in the first place (the custom report with traffic and the VPN users) but that came a week after we had started using our solution. I am only seeing it for the first time, just like Val's original post. I will try it out however to see how it goes.&lt;/P&gt;&lt;P&gt;It's great how so many people come together to help each other, that's the power of the community.&lt;/P&gt;&lt;P&gt;Btw if anyone has a way to get the vpn throughput (exactly that, not ecrypted/decrypted throughput) on the 15400 platform, that would be great.&lt;/P&gt;&lt;P&gt;Thanks again and good night!&lt;/P&gt;&lt;P&gt;J.T.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 20:30:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83394#M80513</guid>
      <dc:creator>mythryll</dc:creator>
      <dc:date>2020-04-27T20:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83411#M80514</link>
      <description>On your VPN throughput question, might be worth a separate thread to articulate what you're looking for.&lt;BR /&gt;&lt;BR /&gt;Meanwhile, yes, the community has come together quite nicely around Remote Access.&lt;BR /&gt;There were a couple weeks there where pretty much every post in the community was about this topic.&lt;BR /&gt;We were able to collectively come up with some great solutions to the challenges people are facing.</description>
      <pubDate>Tue, 28 Apr 2020 02:04:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83411#M80514</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-28T02:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83444#M80515</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It was I who asked to post. I think this is an interesting example of alternative reporting tools used with Check Point security systems.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 07:30:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/83444#M80515</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2020-04-28T07:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/84228#M80516</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had the same requirement but I took a different approach, this was essentially just to provide a page to illustrate how the remote access service was performing during the early days of lockdown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a jobuser on my gateway to run cron jobs, see sk77300&lt;/P&gt;&lt;P&gt;That allowed me to run a script every 5 minutes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#!/bin/bash -f
source /opt/CPshrd-R80.20/tmp/.CPprofile.sh
fw tab -t userc_users -s | grep userc |  cut -c63-67 | xargs -I {} curl_cli http://REDACTED:1880/checkpoint?now={}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first 2 lines are boiler plate supplied by Check Point, the last line takes the user count and pipes it to curl. The REDACTED internal host is a &lt;A href="https://nodered.org/" target="_self"&gt;node-red&lt;/A&gt; server that just runs a simple output to a dashboard graph node.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 726px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5935i48061641A5562BFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 618px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5937i463830E4946A821D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Bruce&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 14:34:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/84228#M80516</guid>
      <dc:creator>Bruce_R</dc:creator>
      <dc:date>2020-05-05T14:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/84456#M80517</link>
      <description>&lt;P&gt;Would you be able to go into a bit more detail about what you did in the node-red config?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be quite interested in looking at this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 13:29:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/84456#M80517</guid>
      <dc:creator>BSOSec</dc:creator>
      <dc:date>2020-05-07T13:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/84553#M80518</link>
      <description>&lt;P&gt;Another quick 'n' dirty solution based on Prometheus:&lt;/P&gt;&lt;P&gt;1. On the gateway itself, I created a Prometheus metrics template (index.template).&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# HELP cp_vpn_count Number of VPN connected users.
# TYPE cp_vpn_count gauge
cp_vpn_count {{cp_vpn_count}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Still on the gateway, a very simple script (prometheus_metrics.sh) to replace the template variables and write the output to a text file (index.txt). It probably should have been Python/Jinja2/HTML, it was easier to do with bash/sed/txt.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#!/bin/bash

cp_vpn_count=`fw tab -t userc_users -s | grep userc |  tr -s ' ' | cut -d ' ' -f 4`
sed "s/{{cp_vpn_count}}/$cp_vpn_count/g" /tmp/cptest/index.template &amp;gt; /tmp/cptest/index.txt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Create a cronjob on the gateway to run the script every minute or so...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;* * * * *  /tmp/cptest/prometheus_metrics.sh&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. ...and run a simple web server to publish the metrics. Please don't tell our security officer that I'm saying this!&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;python3 -m http.server&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. Finally, configure Prometheus to scrape the published metrics from CP.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  - job_name: 'checkpoint'
    scrape_interval: 60s
    metrics_path: '/index.txt'
    static_configs:
      - targets:
          - 10.25.103.52:8000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prometheus.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5983iFC8FDDFD3403BD5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="prometheus.png" alt="prometheus.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or in Grafana:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafana.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5984iAB9AADACCA9E070B/image-size/large?v=v2&amp;amp;px=999" role="button" title="grafana.png" alt="grafana.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Apart from the security nightmare of running a web server on a firewall (which may be mitigated if we're talking about sane people), I think I prefer this approach because it's easily scalable: just adjust the template and script to add more command outputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Anyway, whichever approach one may choose, great work Mythryll and thanks for sharing it.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 10:43:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/84553#M80518</guid>
      <dc:creator>Nikos_Kallergis</dc:creator>
      <dc:date>2020-05-08T10:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/85160#M80519</link>
      <description>&lt;P&gt;Sure, there's not much to it.&lt;/P&gt;&lt;P&gt;Here's an export, just paste it into node-red, you will need to install the Dashboard nodes.&lt;/P&gt;&lt;P&gt;[edit: more detail] The top 2 nodes just receive the http request and give a response to the sender.&lt;/P&gt;&lt;P&gt;the incoming data is piped to the change node, it is structured data (JSON). In node-red terms this is the message payload. (msg.payload). Because the URL had a variable 'now' in it, the data is in msg.payload.now. But it is text and we need a number, so the change node uses &lt;A href="https://jsonata.org/" target="_self"&gt;JSONata&lt;/A&gt; to swap it to an integer and passes it to the graph node.&amp;nbsp;&lt;/P&gt;&lt;P&gt;there's also a branch that dumps it to a text file with a time stamp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
    {
        "id": "c0004ca4.6f5b2",
        "type": "debug",
        "z": "9f3cc389.ea38e",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "x": 610,
        "y": 220,
        "wires": []
    },
    {
        "id": "bd1c9beb.357ef8",
        "type": "http in",
        "z": "9f3cc389.ea38e",
        "name": "",
        "url": "/checkpoint",
        "method": "get",
        "upload": false,
        "swaggerDoc": "",
        "x": 230,
        "y": 160,
        "wires": [
            [
                "b35addd7.d6f5c",
                "5573f34b.21275c",
                "7842088f.e57ed8"
            ]
        ]
    },
    {
        "id": "b35addd7.d6f5c",
        "type": "http response",
        "z": "9f3cc389.ea38e",
        "name": "",
        "statusCode": "",
        "headers": {},
        "x": 450,
        "y": 160,
        "wires": []
    },
    {
        "id": "8c4bf64c.548218",
        "type": "ui_chart",
        "z": "9f3cc389.ea38e",
        "name": "",
        "group": "42dd6b11.ecf5c4",
        "order": 0,
        "width": 0,
        "height": 0,
        "label": "5 minute snapshots",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "0",
        "ymax": "",
        "removeOlder": "24",
        "removeOlderPoints": "",
        "removeOlderUnit": "3600",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "outputs": 1,
        "x": 650,
        "y": 300,
        "wires": [
            []
        ]
    },
    {
        "id": "5573f34b.21275c",
        "type": "change",
        "z": "9f3cc389.ea38e",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$number(payload.now)",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 360,
        "y": 240,
        "wires": [
            [
                "8c4bf64c.548218",
                "c0004ca4.6f5b2",
                "162b90dc.b0efdf"
            ]
        ]
    },
    {
        "id": "162b90dc.b0efdf",
        "type": "file",
        "z": "9f3cc389.ea38e",
        "name": "",
        "filename": "mobile_count.txt",
        "appendNewline": true,
        "createDir": false,
        "overwriteFile": "false",
        "encoding": "none",
        "x": 560,
        "y": 420,
        "wires": [
            []
        ]
    },
    {
        "id": "7842088f.e57ed8",
        "type": "change",
        "z": "9f3cc389.ea38e",
        "name": "timestamp",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "$now()",
                "tot": "jsonata"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 330,
        "y": 320,
        "wires": [
            [
                "162b90dc.b0efdf"
            ]
        ]
    },
    {
        "id": "42dd6b11.ecf5c4",
        "type": "ui_group",
        "z": "",
        "name": "Default",
        "tab": "f5ba8f9.259237",
        "disp": false,
        "width": "12",
        "collapse": false
    },
    {
        "id": "f5ba8f9.259237",
        "type": "ui_tab",
        "z": "",
        "name": "Check Point Mobile Users",
        "icon": "",
        "disabled": false,
        "hidden": false
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 07:31:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/85160#M80519</guid>
      <dc:creator>Bruce_R</dc:creator>
      <dc:date>2020-05-14T07:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/85404#M80520</link>
      <description>&lt;P&gt;I love Grafana and have made several dashboards for Check Point.&lt;/P&gt;&lt;P&gt;To get your data, I think a cleaner solution would be to extend snmp and poll with v3. I would be fired on the spot if I hosted custom metrics on the firewalls &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;snmp extensions are easily made but to be honest I find it tiresome to maintain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Henrik&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 17:13:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/85404#M80520</guid>
      <dc:creator>Henrik_Noerr1</dc:creator>
      <dc:date>2020-05-15T17:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/85833#M80521</link>
      <description>&lt;P&gt;Speaking of SNMP, here are two OIDs that a colleague unearthed in some obscure forum. They are supposed to return the count of connected VPN users but I haven't had the time to test them myself...&lt;/P&gt;&lt;P&gt;.1.3.6.1.4.1.2620.1.2.5.4.21.0&lt;/P&gt;&lt;P&gt;.1.3.6.1.4.1.2620.1.2.5.4.23.0&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 07:17:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/85833#M80521</guid>
      <dc:creator>Nikos_Kallergis</dc:creator>
      <dc:date>2020-05-20T07:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/86091#M80522</link>
      <description>&lt;P&gt;Those OIDs don't work on our platform. I think you will find that both those and the VPN througput ones only work on large scale platforms.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 21:29:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/86091#M80522</guid>
      <dc:creator>mythryll</dc:creator>
      <dc:date>2020-05-22T21:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/86093#M80523</link>
      <description>&lt;P&gt;I'm on the client side, not on the vendor or the partner side. Something like that would void our support contract.&lt;/P&gt;&lt;P&gt;Besides that we don't want to mess with the machine we are worried about.&lt;/P&gt;&lt;P&gt;SNMP is pretty much dead. Not being developed. It's insecure, bad for resources and poorly maintained. I have been working with it for 20 years but I am moving away from it.&lt;/P&gt;&lt;P&gt;Thank you for your answer though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 21:36:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/86093#M80523</guid>
      <dc:creator>mythryll</dc:creator>
      <dc:date>2020-05-22T21:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor VPN Users on Check Point Firewall with the help of Netmiko and Python, InfluxDB and Graf</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/86095#M80524</link>
      <description>&lt;P&gt;More people have opted for running a from job to get the metrics on the gateway, but yours is a bold move!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I like the tech behind it as it's very simple. I need to know more about Prometheus!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 21:41:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Monitor-VPN-Users-on-Check-Point-Firewall-with-the-help-of/m-p/86095#M80524</guid>
      <dc:creator>mythryll</dc:creator>
      <dc:date>2020-05-22T21:41:52Z</dc:date>
    </item>
  </channel>
</rss>

