Hi Ben,<br><br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The rabbit_memsup_linux module parses these values out of /proc/meminfo:<br>

&#39;MemTotal&#39;, &#39;MemFree&#39;, &#39;Buffers&#39;, &#39;Cached&#39;<br>
such that<br>
MemUsed = MemTotal - MemFree - Buffers - Cached<br></blockquote></div><br>Thanks for that..<br><br>Hacked up the following script for Nagios so I could keep an eye on memory approaching threshold..<br><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">#!/bin/bash</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">STATE_OK=0</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">STATE_WARNING=1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">STATE_CRITICAL=2</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">STATE_UNKNOWN=3</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">STATE_DEPENDENT=4</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">MEMTOTAL=&quot;`grep &quot;^MemTotal: &quot; /proc/meminfo |\</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">������� awk &#39;{print $2}&#39;`&quot;</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">MEMFREEEQN=&quot;`egrep &quot;^(MemTotal|MemFree|Buffers|Cached):&quot; /proc/meminfo |\</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">������� awk &#39;{print $1 &quot; &quot; $2}&#39; |\</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">������� sed -r &#39;s/^MemTotal:/+/g</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">��������������� s/^(MemFree|Buffers|Cached):/-/g&#39;`&quot;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">MEMFREE=&quot;$(( ${MEMFREEEQN} ))&quot;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">MEMPCFREE=&quot;$(( ( ${MEMFREE} * 100 ) / ${MEMTOTAL} ))&quot;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">MEMPCFREECRIT=5</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">MEMPCFREEWARN=10</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">if [ ${MEMPCFREE} -gt ${MEMPCFREEWARN} ]; then</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">������� echo &quot;OK: ${MEMFREE} (${MEMPCFREE}%) &gt; ${MEMPCFREEWARN}% free&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">������� exit $STATE_OK</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">elif [ ${MEMPCFREE} -gt ${MEMPCFREECRIT} ]; then</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">������� echo &quot;WARNING: ${MEMPCFREECRIT}% &lt; ${MEMFREE} (${MEMPCFREE}%) &lt; ${MEMPCFREEWARN}%&quot;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">������� exit $STATE_WARNING</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">elif [ ${MEMPCFREE} -le ${MEMPCFREECRIT} ]; then</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">������� echo &quot;CRITICAL: ${MEMFREE} (${MEMPCFREE}%) &lt;= ${MEMPCFREECRIT}%&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">������� exit $STATE_CRITICAL</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">fi</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">echo &quot;UNKNOWN: Something went awry!&quot;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">exit $STATE_UNKNOWN</span><br><br>This&#39;ll let me go hunt down issues before they start causing throttle problems. In the event others are interested, this is the quick check I use to see if AMQP daemon is contactable in Nagios...<br>
<br><span style="font-family: courier new,monospace;">define command{</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">������� command_name��� check_amqp</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">������� command_line��� $USER1$/check_tcp -H $HOSTADDRESS$ -p 5672 -d 1 -E -s &#39;AMQP\r\n\r\n\r\n&#39; -e &#39;AMQP&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">������� }</span><br><br>(Wait 1 second, send &quot;AMQP&quot; followed by three EOL sequences and expect the string &quot;AMQP&quot; returned)<br><br>