<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.campisano.org/wiki/HiMemoryMonitor/history?feed=atom</id>
	<title>HiMemoryMonitor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.campisano.org/wiki/HiMemoryMonitor/history?feed=atom"/>
	<link rel="alternate" type="text/html" href="https://www.campisano.org/wiki/HiMemoryMonitor/history"/>
	<updated>2026-05-20T21:59:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://www.campisano.org/mediawiki/index.php?title=HiMemoryMonitor&amp;diff=1167&amp;oldid=prev</id>
		<title>imported&gt;T1t0 at 12:59, 3 October 2012</title>
		<link rel="alternate" type="text/html" href="https://www.campisano.org/mediawiki/index.php?title=HiMemoryMonitor&amp;diff=1167&amp;oldid=prev"/>
		<updated>2012-10-03T12:59:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:59, 3 October 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l31&quot;&gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    echo &amp;quot;Command sed not found, exit.&amp;quot; | mail -s &amp;quot;${SUBJECT} error.&amp;quot; &amp;quot;${EMAIL}&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    echo &amp;quot;Command sed not found, exit.&amp;quot; | mail -s &amp;quot;${SUBJECT} error.&amp;quot; &amp;quot;${EMAIL}&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;   exit 1;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;fi;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;if test ! `which top`&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;then&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;   echo &quot;Command top not found, exit.&quot; | mail -s &quot;${SUBJECT} error.&quot; &quot;${EMAIL}&quot;;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    exit 1;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    exit 1;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;fi;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;fi;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;T1t0</name></author>
	</entry>
	<entry>
		<id>https://www.campisano.org/mediawiki/index.php?title=HiMemoryMonitor&amp;diff=1168&amp;oldid=prev</id>
		<title>imported&gt;T1t0: Created page with &quot;&lt;pre&gt; #!/bin/sh # # hiMemoryMonitor    # Var  EMAIL=&quot;email@server.whr&quot;; SUBJECT=&quot;domain.whr hiMemoryMonitor&quot;; MAXLOAD=80;    # Test  if test ! `which mail` then    echo &quot;Comma...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.campisano.org/mediawiki/index.php?title=HiMemoryMonitor&amp;diff=1168&amp;oldid=prev"/>
		<updated>2012-10-03T12:54:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; #!/bin/sh # # hiMemoryMonitor    # Var  EMAIL=&amp;quot;email@server.whr&amp;quot;; SUBJECT=&amp;quot;domain.whr hiMemoryMonitor&amp;quot;; MAXLOAD=80;    # Test  if test ! `which mail` then    echo &amp;quot;Comma...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
#&lt;br /&gt;
# hiMemoryMonitor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Var&lt;br /&gt;
&lt;br /&gt;
EMAIL=&amp;quot;email@server.whr&amp;quot;;&lt;br /&gt;
SUBJECT=&amp;quot;domain.whr hiMemoryMonitor&amp;quot;;&lt;br /&gt;
MAXLOAD=80;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Test&lt;br /&gt;
&lt;br /&gt;
if test ! `which mail`&lt;br /&gt;
then&lt;br /&gt;
   echo &amp;quot;Command mail not found, exit.&amp;quot;;&lt;br /&gt;
   exit 1;&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
if test ! `which bc`&lt;br /&gt;
then&lt;br /&gt;
   echo &amp;quot;Command bc not found, exit.&amp;quot; | mail -s &amp;quot;${SUBJECT} error.&amp;quot; &amp;quot;${EMAIL}&amp;quot;;&lt;br /&gt;
   exit 1;&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
if test ! `which sed`&lt;br /&gt;
then&lt;br /&gt;
   echo &amp;quot;Command sed not found, exit.&amp;quot; | mail -s &amp;quot;${SUBJECT} error.&amp;quot; &amp;quot;${EMAIL}&amp;quot;;&lt;br /&gt;
   exit 1;&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Monitor&lt;br /&gt;
&lt;br /&gt;
MEMTOTAL=$(sed -n &amp;quot;s/^MemTotal:\s\+\([0-9]\+\) kB/\1/p&amp;quot; /proc/meminfo);&lt;br /&gt;
MEMFREE=$(sed -n &amp;quot;s/^MemFree:\s\+\([0-9]\+\) kB/\1/p&amp;quot; /proc/meminfo);&lt;br /&gt;
BUFFERS=$(sed -n &amp;quot;s/^Buffers:\s\+\([0-9]\+\) kB/\1/p&amp;quot; /proc/meminfo);&lt;br /&gt;
CACHED=$(sed -n &amp;quot;s/^Cached:\s\+\([0-9]\+\) kB/\1/p&amp;quot; /proc/meminfo);&lt;br /&gt;
&lt;br /&gt;
LOAD=$(((MEMTOTAL-(MEMFREE + BUFFERS + CACHED))*100 / MEMTOTAL));&lt;br /&gt;
&lt;br /&gt;
if test $(echo &amp;quot;${LOAD} &amp;gt; ${MAXLOAD}&amp;quot; | bc) -eq 1;&lt;br /&gt;
then&lt;br /&gt;
    top -b -n 1 | head -25 | mail -s &amp;quot;${SUBJECT} Alert! MEMORY load high: ${LOAD}&amp;quot; &amp;quot;${EMAIL}&amp;quot;;&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# End&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;T1t0</name></author>
	</entry>
</feed>