<?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 Script to check health on SMB in Spark Firewall (SMB)</title>
    <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Script-to-check-health-on-SMB/m-p/10306#M231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SMB Admins!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a script that is checking some key SMB sensors and sending e-mail should any of them goes outside pre-define thresholds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is currently evaluating:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Cooling fan speed&lt;BR /&gt;- CPU temperature&lt;BR /&gt;- Motherboard temperature&lt;BR /&gt;- Amount of free OS memory&lt;BR /&gt;- Free disk space on /storage, /logs and /pfrm2.0 volumes&lt;BR /&gt;- Load average (1 min)&lt;/P&gt;&lt;P&gt;- Voltage readings&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Core dump&amp;nbsp;&lt;/P&gt;&lt;P&gt;- ICMP probes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is written in LUA which is very light and fast embedded script language. You can review it with any text editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It currently works on 14x0 appliances only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to try it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Copy the attached two files to the appliance. You may put them in &lt;EM&gt;/logs/smb_health_check/&lt;/EM&gt; so that they are not deleted on firmware upgrade. Or anywhere else, doesn't matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Using vi, edit &lt;EM&gt;smb_health_check.cfg&lt;/EM&gt;. Set as a minimum, e-mail sender and recipient and IP of your mail server (which must be accessible from the appliance of course).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You may check pre-defined thresholds for the different sensors and adjust them as needed for your environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Test-run the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;expert# chmod 700 smb_check_health.lua&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;expert# ./smb_health_check.lua&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;5. If you like, run it as a cron job every 5 minutes or so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Careful with the comma's in the config file or script will fail &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions or suggestions are welcome. Mind that I am still working on it so not everything is polished yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Mar 2019 17:31:03 GMT</pubDate>
    <dc:creator>HristoGrigorov</dc:creator>
    <dc:date>2019-03-05T17:31:03Z</dc:date>
    <item>
      <title>Script to check health on SMB</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Script-to-check-health-on-SMB/m-p/10306#M231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SMB Admins!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a script that is checking some key SMB sensors and sending e-mail should any of them goes outside pre-define thresholds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is currently evaluating:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Cooling fan speed&lt;BR /&gt;- CPU temperature&lt;BR /&gt;- Motherboard temperature&lt;BR /&gt;- Amount of free OS memory&lt;BR /&gt;- Free disk space on /storage, /logs and /pfrm2.0 volumes&lt;BR /&gt;- Load average (1 min)&lt;/P&gt;&lt;P&gt;- Voltage readings&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Core dump&amp;nbsp;&lt;/P&gt;&lt;P&gt;- ICMP probes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is written in LUA which is very light and fast embedded script language. You can review it with any text editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It currently works on 14x0 appliances only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to try it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Copy the attached two files to the appliance. You may put them in &lt;EM&gt;/logs/smb_health_check/&lt;/EM&gt; so that they are not deleted on firmware upgrade. Or anywhere else, doesn't matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Using vi, edit &lt;EM&gt;smb_health_check.cfg&lt;/EM&gt;. Set as a minimum, e-mail sender and recipient and IP of your mail server (which must be accessible from the appliance of course).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You may check pre-defined thresholds for the different sensors and adjust them as needed for your environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Test-run the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;expert# chmod 700 smb_check_health.lua&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;expert# ./smb_health_check.lua&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;5. If you like, run it as a cron job every 5 minutes or so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Careful with the comma's in the config file or script will fail &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions or suggestions are welcome. Mind that I am still working on it so not everything is polished yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 17:31:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Script-to-check-health-on-SMB/m-p/10306#M231</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2019-03-05T17:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check health on SMB</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Script-to-check-health-on-SMB/m-p/48077#M1869</link>
      <description>&lt;P&gt;If you are going to place that script in crontab you will need to do it again after firmware upgrade because crontab will be reset. Keep that in mind.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 09:23:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Script-to-check-health-on-SMB/m-p/48077#M1869</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2019-03-21T09:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check health on SMB</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Script-to-check-health-on-SMB/m-p/106350#M4586</link>
      <description>&lt;P&gt;Hello Hristo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for sharing the script. We were testing it and had a doubt about the tresholds used, did you take them from some CheckPoint doc/sk or any other reference? I was searching something similar to&amp;nbsp; sk119232 for SMB appliances to adjust tresholds but no luck.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 13:38:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Script-to-check-health-on-SMB/m-p/106350#M4586</guid>
      <dc:creator>RS_Daniel</dc:creator>
      <dc:date>2020-12-24T13:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check health on SMB</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Script-to-check-health-on-SMB/m-p/106379#M4589</link>
      <description>&lt;P&gt;Hello Daniel,&lt;/P&gt;
&lt;P&gt;If you are talking about temperature and voltage thresholds then I took them from 'show diag' cli command:&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;On board temperature: 50.0C (valid: -5C ~ 85C)&lt;BR /&gt;CPU temperature: 55.0C (valid: 0C ~ 105C)&lt;BR /&gt;Voltage VDD_3P3V: 3.3880V (valid: 3.1255V ~ 3.4755V)&lt;BR /&gt;Voltage VDD_1P05V: 1.064V (valid: 0.988V ~ 1.113V)&lt;BR /&gt;Voltage VDD_5V: 5.135V (valid: 4.722V ~ 5.282V)&lt;BR /&gt;Voltage DDR_VTT_0P75V: 0.756V (valid: 0.703V ~ 0.798V)&lt;BR /&gt;Voltage VDD_DDR_1P5V: 1.5140V (valid: 1.4155V ~ 1.5855V)&lt;BR /&gt;Voltage VDD_1P03V: 1.028V (valid: 0.969V ~ 1.092V)&lt;BR /&gt;Voltage VDD_CPU: 1.080V (valid: 0.855V ~ 1.128V)&lt;BR /&gt;Voltage VDD_0P9V: 0.9100V (valid: 0.8455V ~ 0.9555V)&lt;BR /&gt;Voltage VDD_1P8V: 1.8220V (valid: 1.7005V ~ 1.9005V)&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2020 06:39:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Script-to-check-health-on-SMB/m-p/106379#M4589</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2020-12-25T06:39:47Z</dc:date>
    </item>
  </channel>
</rss>

