<?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 Identifying failed ISP in case of ISP redundancy in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258865#M43756</link>
    <description>&lt;P&gt;So, I always had this issue where customer is having a multiple ISP under their ISP redundancy but checkpoint does not have actual way to monitor ro alert if any of the ISP fails. Hence I quickly wrote a bash script and then created a custom SNMP OID whch I am monitoring and flags if any ISP fails&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;output=$(cpstat fw | grep -E 'Load|Active|Backup' | tr "|" " " | awk '{print $1" "$2}')
status=0
while read -r line; do
    link=$(echo "$line" | awk '{print $1}')   # Extract the link name
    status_val=$(echo "$line" | awk '{print $2}') # Extract the status

    if [[ "$status_val" != "OK" ]]; then
        echo "Down $link"
        status=1
    fi
done &amp;lt;&amp;lt;&amp;lt; "$output"
exit $status
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a directory on firewall&lt;/P&gt;
&lt;P&gt;#&amp;nbsp;mkdir&amp;nbsp;&lt;CODE&gt;/var/log/snmpmon_script&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-sourcepos="11:1-11:30"&gt;Store files in those directory&lt;/P&gt;
&lt;P data-sourcepos="13:1-15:62"&gt;Edit /etc/snmp/userDefinedSettings.conf And add below lines as appropriate&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;extend .1.2.3.4.5.6.7.8.13 process_monitor /bin/sh /var/log/snmpmon_script/linkMon.sh&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;change the permission&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;chmod +x /var/log/snmpmon_script/linkMon.sh&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then restart snmp service&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;set snmp agent off
set snmp agent on
save config
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Oct 2025 03:14:45 GMT</pubDate>
    <dc:creator>Blason_R</dc:creator>
    <dc:date>2025-10-03T03:14:45Z</dc:date>
    <item>
      <title>Identifying failed ISP in case of ISP redundancy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258865#M43756</link>
      <description>&lt;P&gt;So, I always had this issue where customer is having a multiple ISP under their ISP redundancy but checkpoint does not have actual way to monitor ro alert if any of the ISP fails. Hence I quickly wrote a bash script and then created a custom SNMP OID whch I am monitoring and flags if any ISP fails&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;output=$(cpstat fw | grep -E 'Load|Active|Backup' | tr "|" " " | awk '{print $1" "$2}')
status=0
while read -r line; do
    link=$(echo "$line" | awk '{print $1}')   # Extract the link name
    status_val=$(echo "$line" | awk '{print $2}') # Extract the status

    if [[ "$status_val" != "OK" ]]; then
        echo "Down $link"
        status=1
    fi
done &amp;lt;&amp;lt;&amp;lt; "$output"
exit $status
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a directory on firewall&lt;/P&gt;
&lt;P&gt;#&amp;nbsp;mkdir&amp;nbsp;&lt;CODE&gt;/var/log/snmpmon_script&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-sourcepos="11:1-11:30"&gt;Store files in those directory&lt;/P&gt;
&lt;P data-sourcepos="13:1-15:62"&gt;Edit /etc/snmp/userDefinedSettings.conf And add below lines as appropriate&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;extend .1.2.3.4.5.6.7.8.13 process_monitor /bin/sh /var/log/snmpmon_script/linkMon.sh&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;change the permission&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;chmod +x /var/log/snmpmon_script/linkMon.sh&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then restart snmp service&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;set snmp agent off
set snmp agent on
save config
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 03:14:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258865#M43756</guid>
      <dc:creator>Blason_R</dc:creator>
      <dc:date>2025-10-03T03:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying failed ISP in case of ISP redundancy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258866#M43757</link>
      <description>&lt;P&gt;Amazing!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 04:06:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258866#M43757</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-10-03T04:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying failed ISP in case of ISP redundancy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258872#M43758</link>
      <description>&lt;P&gt;Wow cool stuff,&amp;nbsp;&lt;BR /&gt;yes right, with onboard monitoring tools its pretty though to get any visibility what ISP is really doing ...&lt;BR /&gt;recently i started to phase our ISP redundancy setups since many customer reported "Internet slowness" what ever it means.&amp;nbsp;&lt;BR /&gt;but ISP redundancy sends all traffic F2F in SXL which is really not perfect ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 07:36:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258872#M43758</guid>
      <dc:creator>Thomas_Eichelbu</dc:creator>
      <dc:date>2025-10-03T07:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying failed ISP in case of ISP redundancy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258889#M43760</link>
      <description>&lt;P&gt;Will see if I can test this properly in the lab.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 10:26:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258889#M43760</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-10-03T10:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying failed ISP in case of ISP redundancy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258892#M43761</link>
      <description>&lt;P&gt;200% This will work since I have 30 clusters are now being managed and monitored smoothly for any link failure &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 11:48:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258892#M43761</guid>
      <dc:creator>Blason_R</dc:creator>
      <dc:date>2025-10-03T11:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying failed ISP in case of ISP redundancy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258894#M43762</link>
      <description>&lt;P&gt;I like the level of sureness, if thats even a word &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 11:59:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Identifying-failed-ISP-in-case-of-ISP-redundancy/m-p/258894#M43762</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-10-03T11:59:59Z</dc:date>
    </item>
  </channel>
</rss>

