<?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: IPS Update Monitoring in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40210#M2648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;From Upgrade to R80.20 the Reply of API changed, so, i´ll rewrite the script to be able to monitor R80.20 installations too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2018 13:01:31 GMT</pubDate>
    <dc:creator>Nüüül</dc:creator>
    <dc:date>2018-11-06T13:01:31Z</dc:date>
    <item>
      <title>IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40205#M2643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a small script, using the SDK from Checkpoint (&lt;A class="link-titled" href="https://github.com/CheckPointSW/cp_mgmt_api_python_sdk" title="https://github.com/CheckPointSW/cp_mgmt_api_python_sdk"&gt;GitHub - CheckPointSW/cp_mgmt_api_python_sdk: Check Point API Python Development Kit&lt;/A&gt; ) for checking IPS Updates with my Monitoring Server (Centreon, based on Nagios, more or less &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the login, the SDK is used (i changed one option in Login part of mgmt_api.py: (unsafe_auto_accept --&amp;gt; true) should work with the default - false - too, but was easier for me.&lt;/P&gt;&lt;P&gt;After successful logging in, we are parsing the API output from show-ip-status and comparing it with i.e actual date or "update available".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some calculating and comparing the script gives output, understandable for Nagios based systems.&lt;/P&gt;&lt;P&gt;UNKNOWN = -1 - OK = 0 - WARNING = 1 - CRITICAL = 2&lt;/P&gt;&lt;P&gt;Good&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" height="236" src="https://community.checkpoint.com/legacyfs/online/checkpoint/67702_pastedImage_3.png" width="675" /&gt;&lt;/P&gt;&lt;P&gt;Bad:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" height="245" src="https://community.checkpoint.com/legacyfs/online/checkpoint/67701_pastedImage_2.png" width="668" /&gt;&lt;/P&gt;&lt;P&gt;And there is a state WARNING for 1 - 3 Days Delta from IPS Update&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" height="231" src="https://community.checkpoint.com/legacyfs/online/checkpoint/67703_pastedImage_8.png" width="660" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Thresholds are freely configurable (on daily base).&lt;/P&gt;&lt;P&gt;What would be good, is a possibility to get the current IPS Database version from Checkpoint, so, one might want to check the version against checkpoint, not, what the managment server found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started working on this with the question of &lt;A href="https://community.checkpoint.com/migrated-users/45296"&gt;Sven Glock&lt;/A&gt; (&lt;A href="https://community.checkpoint.com/thread/8559"&gt;IPS Monitoring&lt;/A&gt; )&amp;nbsp; in mind - maybe that kind of helps... and for my own of course &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use it on Nagios Server you need:&lt;/P&gt;&lt;P&gt;python installed (script worked with 2.7 and 3.7&lt;/P&gt;&lt;P&gt;in the plugin folder i created an own "checkpoint" folder, containing the SDK and my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feel free to have a look, I´m sure, there is space for improvements.... &lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2018 00:21:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40205#M2643</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2018-07-29T00:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40206#M2644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great work! What is the benefit of using this over signing up for email alerts on IPS updates from Check Point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 14:29:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40206#M2644</guid>
      <dc:creator>Ryan_St__Germai</dc:creator>
      <dc:date>2018-07-31T14:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40207#M2645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the email gives you the information, that there is a new version.&lt;/P&gt;&lt;P&gt;The script checks the installed version and whether your appliance did find an updated version but i.e. is not yet applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perfect would be a possibility for the monitoring server to fetch the last recent version number, to avoid, that Checkpoint Management Server cannot connect to checkpoint for any reason&lt;/P&gt;&lt;P&gt;And, you have this visible for Monitoring Systems like Nagios and so, which leads into a traffic light like (red, yellow, green) - good for Management &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 14:50:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40207#M2645</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2018-07-31T14:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40208#M2646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, cool integration!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I ask what are your reasons to not scheduling your Management Server to automatically run IPS Updates and install them? R80.10 Gateways install IPS as part of Threat Prevention policy, not Access Control, which means they're not susceptible to install changes made in policy rules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 07:01:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40208#M2646</guid>
      <dc:creator>Tomer_Sole</dc:creator>
      <dc:date>2018-08-01T07:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40209#M2647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here it is more because of "having an eye" on this. And i.e. being able to monitor and report that you have the last recent version installed, without letting others logging into the SmartConsole.&lt;/P&gt;&lt;P&gt;And, if it would be possible to obtain the last recent version number from kind of a feed or so, this check would send alarms, when there are new versions, but management was not able to download it for any reason (DNS, firewall infront of it - what ever)&lt;/P&gt;&lt;P&gt;I have customers (managed service), who want to see from time to time, whether they are OK on that and other topics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 10:27:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40209#M2647</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2018-08-01T10:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40210#M2648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;From Upgrade to R80.20 the Reply of API changed, so, i´ll rewrite the script to be able to monitor R80.20 installations too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 13:01:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40210#M2648</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2018-11-06T13:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40211#M2649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ohhh - what a nice post, Daniel! I found it accidently today.&lt;/P&gt;&lt;P&gt;Thanks for sharing your script!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 06:58:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40211#M2649</guid>
      <dc:creator>Sven_Glock</dc:creator>
      <dc:date>2018-11-07T06:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40212#M2650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;brilliant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 08:19:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/40212#M2650</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2018-11-07T08:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/56118#M3621</link>
      <description>&lt;P&gt;finally did it. running with R80.30 too...&lt;/P&gt;&lt;P&gt;basically had to update the calls for cpapi(SDK)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 18:26:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/56118#M3621</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2019-06-18T18:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/63238#M3954</link>
      <description>Nice Post Daniel, thanks</description>
      <pubDate>Fri, 20 Sep 2019 09:28:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/63238#M3954</guid>
      <dc:creator>Oscar_Figueruel</dc:creator>
      <dc:date>2019-09-20T09:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/95582#M5146</link>
      <description>&lt;P&gt;Was finally able to update the script. should work for R8040 too and is now able to talk to Smart1 Cloud instances (basically added another argument for setting a value to "context"). Also I did some smaller changes. Updated script and more informations here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/leinadred/CP_IPS-Update-Monitoring4Nagios" target="_blank" rel="noopener"&gt;https://github.com/leinadred/CP_IPS-Update-Monitoring4Nagios&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Currently I am working on fetching all managed gateways from management and collecting the installed IPS versions from them for comparison against management installed IPS version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don‘t know if this is useful. more for learning and expanding my python „skills“.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Edit 20200906&lt;/P&gt;&lt;P&gt;Added argument "-M" for checking Managements IPS Version only.&lt;BR /&gt;if not set, the script will fetch a list of managed gateways ("show-simple-gateways") and check their IPS version tooo ("run-script" -&amp;gt; "clish -c \"show security-gateway ips status\"")&lt;BR /&gt;Also kind of reorganised the script into functions.&lt;/P&gt;&lt;P&gt;(have in mind that the API calls take some time so it night be necessary to change the timeout for the check/service)&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2020 12:10:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/95582#M5146</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2020-09-06T12:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/100098#M5261</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;script is updated again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;20201024&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;added and improved error handling&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;when SMS did not get an IPS version update or was not able to fetch recent version&lt;/LI&gt;&lt;LI&gt;when SMS cannot reach a gateway&lt;/LI&gt;&lt;LI&gt;added more logging outputs at verbose executing (-v)&lt;/LI&gt;&lt;LI&gt;for checking on "On Premise" SMS, no argument "-C" needed&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;more Information like how to use is at the GitHub Readme - i updated it too &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/leinadred/CP_IPS-Update-Monitoring4Nagios" target="_blank"&gt;https://github.com/leinadred/CP_IPS-Update-Monitoring4Nagios&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 20:08:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/100098#M5261</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2020-10-25T20:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/120780#M5902</link>
      <description>&lt;P&gt;This is fantastic!&amp;nbsp; Any chance someone has modified the script for MDS yet?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 17:36:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/120780#M5902</guid>
      <dc:creator>Ian</dc:creator>
      <dc:date>2021-06-09T17:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/120781#M5903</link>
      <description>&lt;P&gt;Hi Ian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at least I did not, sorry. As I don’t have an mds at hands. But it should be possible with reasonable effort like the ‚-c‘ for context (Smart1-Cloud).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 02:36:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/120781#M5903</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2021-06-10T02:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update Monitoring</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/127602#M6162</link>
      <description>&lt;P&gt;20210821&lt;/P&gt;&lt;P&gt;updated the Script by adding -i and -s&lt;/P&gt;&lt;P&gt;for „ignore gateway“ / „select gateway“&amp;nbsp;&lt;BR /&gt;also changed a Minor thing at gateway check…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 07:42:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/IPS-Update-Monitoring/m-p/127602#M6162</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2021-08-21T07:42:36Z</dc:date>
    </item>
  </channel>
</rss>

