<?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: Oracle OCI Script Monitor in Cloud Firewall</title>
    <link>https://community.checkpoint.com/t5/Cloud-Firewall/Oracle-OCI-Script-Monitor/m-p/194077#M5947</link>
    <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/82249"&gt;@Bernardes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, that looks good to me. I was thinking of possibly being able to do cron job, sounds like most feasable thing.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2023 23:23:10 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2023-10-02T23:23:10Z</dc:date>
    <item>
      <title>Oracle OCI Script Monitor</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Oracle-OCI-Script-Monitor/m-p/194059#M5943</link>
      <description>&lt;P&gt;Dear friends,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a customer with a CloudGuard cluster in the Oracle OCI environment, which runs a script to validate the Active/Standby members ($FWDIR/scripts/oracle_had.py), and the log output is located in the $FWDIR/log/oracle_had.elg directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know how I could monitor the correct functioning of this script. Is there any Check Point process or tool that could accomplish this? Can cpwatchdog handle this task? If so, what would be the configuration?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 17:25:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Oracle-OCI-Script-Monitor/m-p/194059#M5943</guid>
      <dc:creator>Bernardes</dc:creator>
      <dc:date>2023-10-02T17:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle OCI Script Monitor</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Oracle-OCI-Script-Monitor/m-p/194061#M5944</link>
      <description>&lt;P&gt;Not aware of any built-in instrumentation to monitor this script.&lt;BR /&gt;A script could theoretically be written to monitor the log file and send alerts based on what's there.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 17:31:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Oracle-OCI-Script-Monitor/m-p/194061#M5944</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-10-02T17:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle OCI Script Monitor</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Oracle-OCI-Script-Monitor/m-p/194064#M5945</link>
      <description>&lt;P&gt;Interesting request...might be worth TAC case.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 18:15:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Oracle-OCI-Script-Monitor/m-p/194064#M5945</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-10-02T18:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle OCI Script Monitor</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Oracle-OCI-Script-Monitor/m-p/194075#M5946</link>
      <description>&lt;P&gt;Dear friends &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/38213"&gt;@the_rock&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been thinking about this specific request, and I believe it could be achieved as follows: The goal is to monitor the output of the log $FWDIR/log/oracle_had.elg, so on the Check Point Gateways, I could create a .sh script with the following content:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;###################################################################&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;#!/bin/bash&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;while true; do&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;tail -f /opt/CPsuite-R81.10/fw1/log/oracle_had.elg | nc -l -p 12345&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;sleep 5&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;done&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;###################################################################&lt;/P&gt;
&lt;P&gt;and schedule this task in cron. This will make the Gateway create a server listening on port 12345 and sending the content of the specific log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that, in some monitoring tool, I can use netcat with the 'nc gateway_ip 12345' command to allow the tool to view the log's output and then create some kind of alert if the log's output contains any unexpected values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure yet which tool could be used or how to configure this alert within it, but this could be a way to go.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 22:41:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Oracle-OCI-Script-Monitor/m-p/194075#M5946</guid>
      <dc:creator>Bernardes</dc:creator>
      <dc:date>2023-10-02T22:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle OCI Script Monitor</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Oracle-OCI-Script-Monitor/m-p/194077#M5947</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/82249"&gt;@Bernardes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, that looks good to me. I was thinking of possibly being able to do cron job, sounds like most feasable thing.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 23:23:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Oracle-OCI-Script-Monitor/m-p/194077#M5947</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-10-02T23:23:10Z</dc:date>
    </item>
  </channel>
</rss>

