<?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: Filling var/log space due /opt/CPsuite-R80/fw1/tmp/dlp in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Filling-var-log-space-due-opt-CPsuite-R80-fw1-tmp-dlp/m-p/51808#M13524</link>
    <description>&lt;P&gt;Okey, you have a point. I will accept this solution and add the script according to SK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 07:16:51 GMT</pubDate>
    <dc:creator>Filip_Wennerhul</dc:creator>
    <dc:date>2019-04-25T07:16:51Z</dc:date>
    <item>
      <title>Filling var/log space due /opt/CPsuite-R80/fw1/tmp/dlp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Filling-var-log-space-due-opt-CPsuite-R80-fw1-tmp-dlp/m-p/51227#M13521</link>
      <description>&lt;P&gt;Hi, anyone had an issue with not /var/log/opt/CPsuite-R80/fw1/CTX/CTX00001/tmp/dlp not being cleaned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The customer are running MTA and Sandblast remote emulation and this is filling up on the gateway. No sandblast agent. There is this &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk117634" rel="nofollow noopener noreferrer" target="_blank"&gt;sk117634&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is an improved script that probably will help but i would like to know why the orignal script is failing. How long does it take between cleaning the directory (1 month or longer?). Can i see some logs regarding the execution of this script, if its failing to execute?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this script teCleanupOldFiles.elg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thu Apr 18 10:17:32 CEST 2019: FINISHED cleanup on directory /opt/CPsuite-R80/fw1/CTX/CTX00001/tmp/te_files/ ...&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: Above threshold (27%) - Aggressive mode not required&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: Aquired lock, calling cleanupDirectory /tmp/ 4320 0 /tmp/(\{[A-F0-9]{8}-([A-F0-9]{4}-){3}[A-F0-9]{12}\}-?)+[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}\.tar\.gz&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: FINISHED cleanup on directory /opt/CPsuite-R80/fw1/CTX/CTX00001/tmp/te/te_tmp_files/ ...&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: cleanupDirectory _filesPattern is /tmp/(\{[A-F0-9]{8}-([A-F0-9]{4}-){3}[A-F0-9]{12}\}-?)+[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}\.tar\.gz&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: STARTING cleanup...&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: Above threshold (27%) - Aggressive mode not required&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: running command: find /tmp/ -mindepth 1 -maxdepth 1 -cmin +4320 -print | grep -P "/tmp/(\{[A-F0-9]{8}-([A-F0-9]{4}-){3}[A-F0-9]{12}\}-?)+[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}\.tar\.gz" | xargs -d '\n' rm -rf&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: Try acquire lock, on directory /var/log/py/jail/raw_files&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: FINISHED cleanup on directory /var/log/mal_files/ ...&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: Aquired lock, calling cleanupDirectory /var/log/py/jail/raw_files 1440 0&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: cleanupDirectory _filesPattern is&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: Above threshold (16%) - Aggressive mode not required&lt;BR /&gt;Thu Apr 18 10:17:32 CEST 2019: FINISHED cleanup on directory /tmp/ ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but this does not seem to include this directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me find out why the original script is failing. This started happen recently without&amp;nbsp; any noticable change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 08:32:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Filling-var-log-space-due-opt-CPsuite-R80-fw1-tmp-dlp/m-p/51227#M13521</guid>
      <dc:creator>Filip_Wennerhul</dc:creator>
      <dc:date>2019-04-18T08:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filling var/log space due /opt/CPsuite-R80/fw1/tmp/dlp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Filling-var-log-space-due-opt-CPsuite-R80-fw1-tmp-dlp/m-p/51270#M13522</link>
      <description>&lt;P&gt;Hi Filip,&lt;/P&gt;&lt;P&gt;I'm afraid that the sk you mention is only visible to customers...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 12:54:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Filling-var-log-space-due-opt-CPsuite-R80-fw1-tmp-dlp/m-p/51270#M13522</guid>
      <dc:creator>Nick_Doropoulos</dc:creator>
      <dc:date>2019-04-18T12:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filling var/log space due /opt/CPsuite-R80/fw1/tmp/dlp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Filling-var-log-space-due-opt-CPsuite-R80-fw1-tmp-dlp/m-p/51271#M13523</link>
      <description>&lt;P&gt;sk117634 is only one sk about such issues:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk110555" target="_blank" rel="noopener"&gt;sk110555 - "Used disk space percent" counter in the $FWDIR/log/emaild.mta.elg log file shows unrealistic large value&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A class="cp_link sc_ellipsis" style="max-width: 840px;" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk92907&amp;amp;partition=General&amp;amp;product=Threat" target="_blank" rel="noopener"&gt;sk92907: Threat Emulation inspection failure due to disk space shortage&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk101149" target="_blank" rel="noopener"&gt;sk101149 - "Error: Disk space usage is above allowed value" is displayed in SmartView Monitor for Threat Emulation blade&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk106040" target="_blank" rel="noopener"&gt;sk106040 - False alerts in SmartEvent GUI / SmartView Monitor about low disk space on Security Gateway &lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;But what i do not understand is why you would like to know why the orignal script is failing. I am sure there is a reason, some people will even call it a bug, but for me it is most valuable to get a solution to the customers issue. An explanation may be fine, but how could it help you in this case ?&lt;/P&gt;
&lt;P&gt;In sk117634, we read: There is a Python script on Security Gateway that runs periodically and is responsible for removing old temporary files that were not cleaned by the regular e-mail flow. However, in case the list of temporary files is getting too long until the next call to this script, it would fail to delete them, and the list of files would get bigger over time.&lt;/P&gt;
&lt;P&gt;Does that not explain enough ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 13:34:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Filling-var-log-space-due-opt-CPsuite-R80-fw1-tmp-dlp/m-p/51271#M13523</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2019-04-18T13:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filling var/log space due /opt/CPsuite-R80/fw1/tmp/dlp</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Filling-var-log-space-due-opt-CPsuite-R80-fw1-tmp-dlp/m-p/51808#M13524</link>
      <description>&lt;P&gt;Okey, you have a point. I will accept this solution and add the script according to SK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 07:16:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Filling-var-log-space-due-opt-CPsuite-R80-fw1-tmp-dlp/m-p/51808#M13524</guid>
      <dc:creator>Filip_Wennerhul</dc:creator>
      <dc:date>2019-04-25T07:16:51Z</dc:date>
    </item>
  </channel>
</rss>

