<html><body>
<p><font size="4">Don't know exactly what you want to monitor - but you could use something like:</font><br>
<font size="4">MEM_REAL=`vmstat | grep System | cut -d" " -f4 | cut -d"=" -f2 | sed -e s/MB//g`</font><br>
<font size="4">MEM_FREE=`vmstat | tail -1 | awk '{print $4}'`</font><br>
<font size="4">MEM_FREE=`echo "$MEM_FREE * 4096" | bc`</font><br>
<font size="4">MEM_REAL=`echo "$MEM_REAL * 1048576" | bc`</font><br>
<br>
<font size="4">to get the mem values....</font><br>
<font size="4">and :</font><br>
<font size="4">MEM_PCTUSED=$(bc -l << EOF</font><br>
<font size="4">scale=2</font><br>
<font size="4">($MEM_FREE / $MEM_REAL) * 100</font><br>
<font size="4">EOF</font><br>
<font size="4">)</font><br>
<br>
<font size="4">to get percentage used...</font><br>
<br>
<font size="4">Howard</font><br>
<br>
<br>
<br>
<tt>"Brian O'Mahony" <brian.omahony@curamsoftware.com> wrote on 06.10.2009 13:54:15:<br>
<br>
> "Brian O'Mahony" <brian.omahony@curamsoftware.com> </tt><br>
<tt>> 06.10.2009 14:42</tt><br>
<tt>> <br>
> An</tt><br>
<tt>> <br>
> Thomas Guyot-Sionnest <dermoth@aei.ca>, nadia kheffache <br>
> <nadiakheffache@yahoo.fr>, "nagios-users@lists.sourceforge.net" <br>
> <nagios-users@lists.sourceforge.net></tt><br>
<tt>> <br>
> Kopie</tt><br>
<tt>> <br>
> Thema</tt><br>
<tt>> <br>
> Re: [Nagios-users] plugin for AIX6</tt><br>
<tt>> <br>
> Sorry this is so late (was on holidays), but has anyone got <br>
> check_aix_ram.pl or check_aix_ram working remotely. <br>
> <br>
> check_aix_ram uses svmon that wont work as the nagios user, and <br>
> check_aix_ram.pl throws parse errors.<br>
> <br>
> Im seeing this on AIX6 and AIX5.3<br>
> <br>
> B<br>
> <br>
> -----Original Message-----<br>
> From: Thomas Guyot-Sionnest [</tt><tt><a href="mailto:dermoth@aei.ca">mailto:dermoth@aei.ca</a></tt><tt>] <br>
> Sent: 28 September 2009 13:27<br>
> To: nadia kheffache; nagios-users@lists.sourceforge.net<br>
> Subject: Re: [Nagios-users] plugin for AIX6<br>
> <br>
> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA1<br>
> <br>
> On 28/09/09 08:09 AM, nadia kheffache wrote:<br>
> > I have successfuly installaled the plugins after install libraryc++-devel.<br>
> <br>
> Was that the fix for the plugin compilation? Is so I might add that to<br>
> the FAQ on nagiosplugins.org.<br>
> <br>
> It would be very nice if you could post details on what you did to<br>
> install the missing dependencies (I have absolutely no knowledge of AIX...)<br>
> <br>
> Thank you<br>
> <br>
> - --<br>
> Thomas<br>
> -----BEGIN PGP SIGNATURE-----<br>
> Version: GnuPG v1.4.6 (GNU/Linux)<br>
> Comment: Using GnuPG with Mozilla - </tt><tt><a href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a></tt><tt><br>
> <br>
> iD8DBQFKwKuS6dZ+Kt5BchYRAgnmAJ9oZxS9PWrvc5D+rltzB6kw0wOazwCg88UZ<br>
> 9/IyrwMHlhkM6JF7WsyTNjQ=<br>
> =Bsl6<br>
> -----END PGP SIGNATURE-----<br>
> <br>
> ------------------------------------------------------------------------------<br>
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA<br>
> is the only developer event you need to attend this year. Jumpstart your<br>
> developing skills, take BlackBerry mobile applications to market and stay <br>
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;<br>
> </tt><tt><a href="http://p.sf.net/sfu/devconf">http://p.sf.net/sfu/devconf</a></tt><tt><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> Nagios-users@lists.sourceforge.net<br>
> </tt><tt><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a></tt><tt><br>
> ::: Please include Nagios version, plugin version (-v) and OS when <br>
> reporting any issue. <br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
> <br>
> <br>
> The information in this email is confidential and may be legally privileged.<br>
> It is intended solely for the addressee. Access to this email by anyone else<br>
> is unauthorized. If you are not the intended recipient, any disclosure,<br>
> copying, distribution or any action taken or omitted to be taken in reliance<br>
> on it, is prohibited and may be unlawful. If you are not the intended<br>
> addressee please contact the sender and dispose of this e-mail. Thank you.<br>
> <br>
> <br>
> ------------------------------------------------------------------------------<br>
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA<br>
> is the only developer event you need to attend this year. Jumpstart your<br>
> developing skills, take BlackBerry mobile applications to market and stay <br>
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;<br>
> </tt><tt><a href="http://p.sf.net/sfu/devconf">http://p.sf.net/sfu/devconf</a></tt><tt><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> Nagios-users@lists.sourceforge.net<br>
> </tt><tt><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a></tt><tt><br>
> ::: Please include Nagios version, plugin version (-v) and OS when <br>
> reporting any issue. <br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
</tt><br>
 <br>
--------------------------<br>
VERTRAULICHKEIT: Diese Nachricht ist ausschließlich für denjenigen bestimmt, an<br>
den sie adressiert ist und kann vertrauliche Informationen enthalten. Falls Sie nicht <br>
der Empfänger dieser Nachricht sind, weisen wir Sie darauf hin, dass die <br>
unberechtigte Weitergabe oder Verwendung sowie das unberechtigte Verteilen oder <br>
Kopieren dieser Nachricht strikt untersagt sind. Falls Sie diese Nachricht irrtümlich <br>
erhalten haben, vernichten Sie sie bitte sofort.<br>
  <br>
CONFIDENTIALITY: This message is intended only for the use of the individuality or <br>
entity to which it is addressed and may contain information that is privileged, <br>
confidential and exempt from disclosure. If you are not the intended recipient you are <br>
notified that any dissemination, distribution, use or copying of this communication is <br>
strictly prohibited. If you received this message in error, please immediately destroy <br>
this message.<br>
--------------------------<br>
</body></html>