Antwort: Re: plugin for AIX6

Howard Allison howard.allison at pva.sozvers.at
Tue Oct 6 14:58:59 CEST 2009


Don't know exactly what you want to monitor - but you could use something
like:
MEM_REAL=`vmstat | grep System | cut -d" " -f4 | cut -d"=" -f2 | sed -e
s/MB//g`
MEM_FREE=`vmstat | tail -1 | awk '{print $4}'`
MEM_FREE=`echo "$MEM_FREE * 4096" | bc`
MEM_REAL=`echo "$MEM_REAL * 1048576" | bc`

to get the mem values....
and :
MEM_PCTUSED=$(bc -l << EOF
scale=2
($MEM_FREE / $MEM_REAL) * 100
EOF
)

to get percentage used...

Howard



"Brian O'Mahony" <brian.omahony at curamsoftware.com> wrote on 06.10.2009
13:54:15:

> "Brian O'Mahony" <brian.omahony at curamsoftware.com>
> 06.10.2009 14:42
>
> An
>
> Thomas Guyot-Sionnest <dermoth at aei.ca>, nadia kheffache
> <nadiakheffache at yahoo.fr>, "nagios-users at lists.sourceforge.net"
> <nagios-users at lists.sourceforge.net>
>
> Kopie
>
> Thema
>
> Re: [Nagios-users] plugin for AIX6
>
> Sorry this is so late (was on holidays), but has anyone got
> check_aix_ram.pl or check_aix_ram working remotely.
>
> check_aix_ram uses svmon that wont work as the nagios user, and
> check_aix_ram.pl throws parse errors.
>
> Im seeing this on AIX6 and AIX5.3
>
> B
>
> -----Original Message-----
> From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca]
> Sent: 28 September 2009 13:27
> To: nadia kheffache; nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] plugin for AIX6
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 28/09/09 08:09 AM, nadia kheffache wrote:
> > I have successfuly installaled the plugins after install libraryc+
+-devel.
>
> Was that the fix for the plugin compilation? Is so I might add that to
> the FAQ on nagiosplugins.org.
>
> It would be very nice if you could post details on what you did to
> install the missing dependencies (I have absolutely no knowledge of
AIX...)
>
> Thank you
>
> - --
> Thomas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFKwKuS6dZ+Kt5BchYRAgnmAJ9oZxS9PWrvc5D+rltzB6kw0wOazwCg88UZ
> 9/IyrwMHlhkM6JF7WsyTNjQ=
> =Bsl6
> -----END PGP SIGNATURE-----
>
>
------------------------------------------------------------------------------

> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay

> ahead of the curve. Join us from November 9-12, 2009. Register
now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
> The information in this email is confidential and may be legally
privileged.
> It is intended solely for the addressee. Access to this email by anyone
else
> is unauthorized. If you are not the intended recipient, any disclosure,
> copying, distribution or any action taken or omitted to be taken in
reliance
> on it, is prohibited and may be unlawful. If you are not the intended
> addressee please contact the sender and dispose of this e-mail. Thank
you.
>
>
>
------------------------------------------------------------------------------

> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay

> ahead of the curve. Join us from November 9-12, 2009. Register
now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null


--------------------------
VERTRAULICHKEIT: Diese Nachricht ist ausschließlich für denjenigen
bestimmt, an
den sie adressiert ist und kann vertrauliche Informationen enthalten. Falls
Sie nicht
der Empfänger dieser Nachricht sind, weisen wir Sie darauf hin, dass die
unberechtigte Weitergabe oder Verwendung sowie das unberechtigte Verteilen
oder
Kopieren dieser Nachricht strikt untersagt sind. Falls Sie diese Nachricht
irrtümlich
erhalten haben, vernichten Sie sie bitte sofort.

CONFIDENTIALITY: This message is intended only for the use of the
individuality or
entity to which it is addressed and may contain information that is
privileged,
confidential and exempt from disclosure. If you are not the intended
recipient you are
notified that any dissemination, distribution, use or copying of this
communication is
strictly prohibited. If you received this message in error, please
immediately destroy
this message.
--------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091006/7643c627/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list