<?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: Syslog alert for power supply failure in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/10164#M1422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice One-Liner.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Mar 2019 17:43:38 GMT</pubDate>
    <dc:creator>HeikoAnkenbrand</dc:creator>
    <dc:date>2019-03-10T17:43:38Z</dc:date>
    <item>
      <title>Syslog alert for power supply failure</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/10161#M1419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to find the file or parameter responsible for monitoring of power supply status on Check Point firewalls.&lt;/P&gt;&lt;P&gt;In F5 products, it can be modifies using&amp;nbsp;/etc/alertd/alert.conf file, However, I cannot find any option for Check Point.&lt;/P&gt;&lt;P&gt;Purpose is generate syslog message and not to use cp_monitor or snmp monitoring for power supply failure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 10:17:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/10161#M1419</guid>
      <dc:creator>Vivek_Singh1</dc:creator>
      <dc:date>2018-11-28T10:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog alert for power supply failure</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/10162#M1420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afaik such a feature is based on hardware sensor information, e.g. see&amp;nbsp;sk111273&lt;SPAN&gt;&amp;nbsp;for using SNMP where&amp;nbsp;&lt;/SPAN&gt;Smart-1 25, 50 and 150&amp;nbsp;hardware&amp;nbsp;does not support sensors for power supply and RAID failure. So please specify where you need that!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 11:54:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/10162#M1420</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2018-11-28T11:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog alert for power supply failure</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/10163#M1421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use GAiA's job scheduler to monitor it via a simple One-Liner like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;clish -c 'show sysenv all' | grep Power | awk '{print $3": "$4}' | sed 's/#//' | tr '\n' ' ' | sed 's/Up /Up&amp;nbsp; /'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and have it sending a message to syslog if the status is not Up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 12:05:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/10163#M1421</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2018-11-28T12:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog alert for power supply failure</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/10164#M1422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice One-Liner.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Mar 2019 17:43:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/10164#M1422</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-03-10T17:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog alert for power supply failure</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/47249#M9205</link>
      <description>&lt;P&gt;More elegant one-Liner:&lt;/P&gt;
&lt;PRE&gt;if cpstat os -f power_supply | grep -qi "down"; then logger -s -p kern.crit -t kernel 'PSU is down !!! Please replace faulty PSU.'; fi&lt;/PRE&gt;
&lt;P&gt;This command will check if output of "cpstat os -f power_supply" contains string "down" (not case sensitive) and in case yes, issue command logger with facility kern and priority crit to print desired text in /var/log/messages in order to be caught by any Syslog server as critical message (or check it some other way within logs).&lt;/P&gt;
&lt;P&gt;Just schedule this one line using cron job every day and you have monitoring of PSU in place &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please note that there are some exceptions where PSU is considered as down, but not really:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk107199" target="_blank" rel="noopener"&gt;sk107199 - Power Supply sensors are shown as "Up" or "Down" when using one Power Supply and one Power Supply Filler on 4800 / 12200 / 12400 / 12600 appliance&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another solution is to use snmpwalk to get status of PSUs, or create trap for it:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 659px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/129i061C03D625DBE538/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OID Name:&amp;nbsp;&lt;STRONG&gt;powerSupplyStatus&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;OID Number:&amp;nbsp;&lt;STRONG&gt;1.3.6.1.4.1.2620.1.6.7.9.1.1.2&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 10:04:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/47249#M9205</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2019-03-17T10:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog alert for power supply failure</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/176256#M29335</link>
      <description>&lt;P&gt;Relying on &lt;A href="https://community.checkpoint.com/t5/SmartConsole-Extensions/LOM-Info/td-p/96054" target="_self"&gt;ipmitool&lt;/A&gt; would be more reliable to make sure to get power_supply data even from open servers. Instead of snmpwalk better use &lt;A href="https://sc1.checkpoint.com/documents/R81.10/WebAdminGuides/EN/CP_R81.10_SecurityManagement_AdminGuide/Topics-SECMG/CLI/stattest.htm" target="_self"&gt;stattest&lt;/A&gt; which also works with more secure SNMP versions, such as SNMPv3.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 08:54:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/176256#M29335</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2023-03-27T08:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog alert for power supply failure</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/176359#M29360</link>
      <description>&lt;P&gt;Interesting "stattest" command which I was not aware about. But since it still uses SNMP OIDs, which is mandatory to be configured, not sure if there can be different result from snmpwalk vs. stattest.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 20:29:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Syslog-alert-for-power-supply-failure/m-p/176359#M29360</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2023-03-27T20:29:10Z</dc:date>
    </item>
  </channel>
</rss>

