<?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: How to troubleshoot REST.py error? in OpenTelemetry/Skyline</title>
    <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174526#M112</link>
    <description>&lt;P&gt;Isn't the correct syntax&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/opt/CPotelcol/REST.py --set_open_telemetry &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;$(cat payload_kf101.json)&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i.e., in inverted commas (") ?&lt;BR /&gt;&lt;BR /&gt;# ./REST.py --set_open_telemetry $(cat payload.json)&lt;BR /&gt;usage: REST.py [-h]&lt;BR /&gt;(--show_open_telemetry | --set_open_telemetry SET_OPEN_TELEMETRY)&lt;BR /&gt;REST.py: error: unrecognized arguments: "enabled": true, "export-targets": {"add": [&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# ./REST.py --set_open_telemetry "$(cat payload.json)"&lt;BR /&gt;{"message": "Operation has finished successfully"}&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 11:00:22 GMT</pubDate>
    <dc:creator>Vincent_Bacher</dc:creator>
    <dc:date>2023-03-13T11:00:22Z</dc:date>
    <item>
      <title>How to troubleshoot REST.py error?</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174357#M109</link>
      <description>&lt;P&gt;Hello again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I've added 1 firewall to my prometheus server, and it worked out. Now when I try to add the 2nd one which should be identical, the python REST-script refuses the JSON-file.&lt;/P&gt;&lt;P&gt;Both are physical appliances running R81.10, take T81.&lt;/P&gt;&lt;P&gt;Error message is "error: unrecognized arguments:"&lt;/P&gt;&lt;P&gt;I even copied the file that enabled the telemetry from FW1 to FW2 and tried it, same problem. No TLS is used, so it's quite simple...&lt;/P&gt;&lt;P&gt;Any hints on where to look?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 13:18:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174357#M109</guid>
      <dc:creator>Albin_Petersson</dc:creator>
      <dc:date>2023-03-10T13:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot REST.py error?</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174388#M110</link>
      <description>&lt;P&gt;Is it a cluster or another single appliance managed by same management? That error is super generic, hard to even guess, specially considering you used same file for the first firewall. Is that the only error message you get?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 15:46:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174388#M110</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-03-10T15:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot REST.py error?</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174510#M111</link>
      <description>&lt;P&gt;it's a cluster.&lt;/P&gt;&lt;P&gt;Here's the full output, i removed the ip-address.&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/CPotelcol/REST.py --set_open_telemetry $(cat payload_kf101.json)&lt;BR /&gt;usage: REST.py [-h] (--show_open_telemetry | --set_open_telemetry SET_OPEN_TELEMETRY)&lt;BR /&gt;REST.py: error: unrecognized arguments: "enabled": true, "export-targets": {"add": [ { "enabled": true, "type": "prometheus-remote-write", "url": "http://&amp;lt;ip&amp;gt;:9090/api/v1/write" } ]} }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any logs anyhere or some other way to troubleshoot? different parameters?&lt;/P&gt;&lt;P&gt;i looked a bit at the rest.py-file, but it wasn't fun for someone that doesn't have much python experience or in-depth knowledge about this project.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 08:41:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174510#M111</guid>
      <dc:creator>Albin_Petersson</dc:creator>
      <dc:date>2023-03-13T08:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot REST.py error?</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174526#M112</link>
      <description>&lt;P&gt;Isn't the correct syntax&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/opt/CPotelcol/REST.py --set_open_telemetry &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;$(cat payload_kf101.json)&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i.e., in inverted commas (") ?&lt;BR /&gt;&lt;BR /&gt;# ./REST.py --set_open_telemetry $(cat payload.json)&lt;BR /&gt;usage: REST.py [-h]&lt;BR /&gt;(--show_open_telemetry | --set_open_telemetry SET_OPEN_TELEMETRY)&lt;BR /&gt;REST.py: error: unrecognized arguments: "enabled": true, "export-targets": {"add": [&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# ./REST.py --set_open_telemetry "$(cat payload.json)"&lt;BR /&gt;{"message": "Operation has finished successfully"}&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 11:00:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174526#M112</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2023-03-13T11:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot REST.py error?</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174592#M113</link>
      <description>&lt;P&gt;It was! that was easy at least. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Human error strikes again.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 14:44:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174592#M113</guid>
      <dc:creator>Albin_Petersson</dc:creator>
      <dc:date>2023-03-13T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot REST.py error?</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174593#M114</link>
      <description>&lt;P&gt;Easy to overlook, glad it works, thanks to&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/16383"&gt;@Vincent_Bacher&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":flexed_biceps:"&gt;💪&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 14:49:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/174593#M114</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-03-13T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot REST.py error?</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/225596#M463</link>
      <description>&lt;P&gt;Hi Checkmates&lt;/P&gt;&lt;P&gt;I've also embarked on this exercise.&lt;/P&gt;&lt;P&gt;Was able to onboard SMS and EVENT server and two Open Servers.&lt;/P&gt;&lt;P&gt;However, when i try to onboard a 5100 cluster both members give this output when I run the script.&lt;/P&gt;&lt;P&gt;[Expert@xxxxxx:0]# /opt/CPotelcol/REST.py --set_open_telemetry "$(cat payload-no-tls.json)"&lt;BR /&gt;File "/opt/CPotelcol/REST.py", line 1200&lt;BR /&gt;"(Server can be default)",file=sys.stderr)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any idea how I can troubleshoot this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 08:46:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/How-to-troubleshoot-REST-py-error/m-p/225596#M463</guid>
      <dc:creator>Corne_Vorster</dc:creator>
      <dc:date>2024-09-04T08:46:20Z</dc:date>
    </item>
  </channel>
</rss>

