[Nagiosplug-help] Memory usage on an AIX Server
Christian Vanguers
wangee at linuxbe.org
Thu Nov 28 15:04:01 CET 2002
On Wed, Nov 27, 2002 at 11:28:06AM -0800, Tyson Harker wrote:
> What plugin can I use to check memory usage on an AIX machine?
>
Hi Tyson,
It's a long time i need such a script :-)
That's why i made some minor changes to the check_mem.pl
script that you can find in nagiosplug contribs.
I'll give my changes to nagiosplug project, but you will find it in
file-attachment so that you will have it immediately.
I fixed some minor bugs in Linux version, and added AIX support.
Note if you want to use it under AIX :
you *MUST* give execute rights to nagiosuser for the '/usr/sbin/bootinfo'
binary (needed to get total memory under AIX)
You can do it 2 different ways, choose your prefered one. Personally
and for security reasons, i prefer the second one.
1) you can chmod '/usr/sbin/bootinfo' to 555
OR
2) you can add nagiosuser to 'bin' group in '/etc/group' file
I hope it will help you and you will use it :-)
Chris
--
+----------------------------------+-----------------------------------------+
| ____ _____ _ __ | |
| / __ \____ / ___/__ _| |/ / | Christian Vanguers |
| / / / / __ \\__ \/ / / / / | ================== |
| / /_/ / /_/ /__/ / /_/ / | | mailto: christian.vanguers at opsyx.com |
| \____/ .___/____/\__, /_/|_| | www: http://www.opsyx.com |
| /_/ /____/ | |
| OPen SYstems eXpertise | |
+----------------------------------------------------------------------------+
| GnuPG keyID == 0xF814CC3A <christian.vanguers at opsyx.com> |
| Key Fingerprint == 76D7 8E94 440F E430 3981 D922 73E1 76DF F814 CC3A |
+----------------------------------+-----------------------------------------+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_mem.pl
Type: application/x-perl
Size: 5180 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20021128/efda4502/attachment.bin>
More information about the Help
mailing list