<?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: Debugging User Alert Scripts in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Debugging-User-Alert-Scripts/m-p/79892#M56751</link>
    <description>You should specify the full pathname to execute the script in Global Properties.&lt;BR /&gt;And you have to process input from standard input.</description>
    <pubDate>Fri, 27 Mar 2020 00:24:37 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2020-03-27T00:24:37Z</dc:date>
    <item>
      <title>Debugging User Alert Scripts</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Debugging-User-Alert-Scripts/m-p/79554#M56747</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We try to setup a user alert script 1 which is blocking hosts when there is an event for "sweep scan" or "host port scan" in the core protections.&lt;/P&gt;&lt;P&gt;We setup the script in Global Properties -- Log and Alerts -- Alerts -- Run UserDefinded Script (alert no. 1).&lt;BR /&gt;The script is in $CPDIR/bin/scriptname.sh&lt;/P&gt;&lt;P&gt;In the core protections "sweep scan" and "host port scan" we select Logging settings -- Track -- User Alert 1.&lt;/P&gt;&lt;P&gt;The result is that the script is not running.&lt;/P&gt;&lt;P&gt;So how can we debug the starting of the script?&lt;BR /&gt;Is there any logfile which shows when the management system tries to start the script etc.?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 14:09:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Debugging-User-Alert-Scripts/m-p/79554#M56747</guid>
      <dc:creator>Peter_Baumann</dc:creator>
      <dc:date>2020-03-24T14:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging User Alert Scripts</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Debugging-User-Alert-Scripts/m-p/79624#M56748</link>
      <description>What is your precise User Defined script call in Global Properties?</description>
      <pubDate>Tue, 24 Mar 2020 23:11:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Debugging-User-Alert-Scripts/m-p/79624#M56748</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-03-24T23:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging User Alert Scripts</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Debugging-User-Alert-Scripts/m-p/79639#M56749</link>
      <description>scriptname.sh</description>
      <pubDate>Wed, 25 Mar 2020 06:58:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Debugging-User-Alert-Scripts/m-p/79639#M56749</guid>
      <dc:creator>Peter_Baumann</dc:creator>
      <dc:date>2020-03-25T06:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging User Alert Scripts</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Debugging-User-Alert-Scripts/m-p/79831#M56750</link>
      <description>&lt;P&gt;i added a custom debug command do the script.&lt;/P&gt;&lt;P&gt;echo "$(date) ---- " &amp;gt;&amp;gt; /tmp/debug.txt&lt;/P&gt;&lt;P&gt;with that i can now see that the call to the script works.&lt;/P&gt;&lt;P&gt;but the parameter handling in the script does not work.&lt;/P&gt;&lt;P&gt;i saw in another thread in checkmates that i have to read the input with the following command:&lt;/P&gt;&lt;P&gt;read input&lt;/P&gt;&lt;P&gt;and i can output the result to the debug file:&lt;/P&gt;&lt;P&gt;echo $input &amp;gt;&amp;gt; /tmp/debug&lt;/P&gt;&lt;P&gt;i know need to get the source ip from the input. i think i need to do this with an regex.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone knows a better way to read the values from the log entry in my script?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 16:04:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Debugging-User-Alert-Scripts/m-p/79831#M56750</guid>
      <dc:creator>David_T</dc:creator>
      <dc:date>2020-03-26T16:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging User Alert Scripts</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Debugging-User-Alert-Scripts/m-p/79892#M56751</link>
      <description>You should specify the full pathname to execute the script in Global Properties.&lt;BR /&gt;And you have to process input from standard input.</description>
      <pubDate>Fri, 27 Mar 2020 00:24:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Debugging-User-Alert-Scripts/m-p/79892#M56751</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-03-27T00:24:37Z</dc:date>
    </item>
  </channel>
</rss>

