06-05-2017
System memory measurement is different on each OS.
If you want to measure virtual memory (RAM + swap, where alert thresholds make sense, in contrast to RAM alone and swap alone) then you can use the vmem.sh from my
Nagios plugins for all LUnix.
If you don't have Nagios then you'll want to tweak the script output for your needs.
9 More Discussions You Might Find Interesting
1. HP-UX
Hi,
We have HP-UX 11.23 and i want to use glance utility to monitor the memory usuage. Can someone tell me how to sort by memory usuage in glance utility?
Thx (1 Reply)
Discussion started by: rockcapri
1 Replies
2. Solaris
I am going to upgrade RAM in V240, I updated the ALOM with
version 1.6 and have will update PROM on boot of server, but
RAM needs Solaris 9 8/03 or later and from uname -a I get:
SunOS name1 5.9 Generic_117171-05 sun4u sparc SUNW,Sun-Fire-V240
not sure what version of Solaris... (3 Replies)
Discussion started by: photon
3 Replies
3. Solaris
Hi,
Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:-
1. Total Physical Memory in the system(total RAM).
2. Available Physical Memory(i.e. RAM Usage)
3. Total (Logical) Memory in the system
4. Available (Logical) Memory.
I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies
4. Solaris
Hello all,
How can i find the memory usuage per zone in solaris. (5 Replies)
Discussion started by: sophos
5 Replies
5. UNIX and Linux Applications
I'm looking for a script or some other application that will use up a lot of memory on a Solaris or Linux server, in order to test a monitoring application. So far I have found a script that's good for CPU usage but it does nothing for memory. I have also tried the application called 'stress'... (0 Replies)
Discussion started by: Kraas
0 Replies
6. Shell Programming and Scripting
Dear all,
Is there any generic command working on all Unix listing the CPU of a server?
I found different command line per OS but I am looking for a more generic one.
Thanks for your answer. (5 Replies)
Discussion started by: sgoiffon
5 Replies
7. Shell Programming and Scripting
Given this directory /web
I need to get the current usage (in %) on Linux and Unix both using the same command on bash shell ?
The command i tried was working on Unix (solaris) but does not filter the desired same value when run of Linux.
My command df -h /web | awk '{print $5}' | sed -n... (5 Replies)
Discussion started by: mohtashims
5 Replies
8. Shell Programming and Scripting
I am on SunOS and Linux
I need generic command to get complete process details from which i will eventually extract socket details (listen address and port)
ps -ef | ggrep -i server | ggrep -i mydomaindoes not yield a process that should have both the grep entries along with the listen... (8 Replies)
Discussion started by: mohtashims
8 Replies
9. Shell Programming and Scripting
I wish to get the process start time on AiX and Linux using the same command / script.
I'm able to get the process start time in Linux using the below command:
cat /proc/<pid>/stat | grep Modify
The same does not work for AiX 6.1 systems.
Can you please let me know the command to get... (4 Replies)
Discussion started by: mohtashims
4 Replies
LEARN ABOUT DEBIAN
nagios::plugin::threshold
Nagios::Plugin::Threshold(3pm) User Contributed Perl Documentation Nagios::Plugin::Threshold(3pm)
NAME
Nagios::Plugin::Threshold - class for handling Nagios::Plugin thresholds.
SYNOPSIS
# NB: This is an internal Nagios::Plugin class.
# See Nagios::Plugin itself for public interfaces.
# Constructor
$t = Nagios::Plugin::Threshold->set_thresholds(
warning => $warning_range_string,
critical => $critical_range_string,
);
# Value checking - returns CRITICAL if in the critical range,
# WARNING if in the warning range, and OK otherwise
$status = $t->get_status($value);
# Accessors - return the associated N::P::Range object
$warning_range = $t->warning;
$critical_range = $t->critical;
DESCRIPTION
Internal Nagios::Plugin class for handling threshold data. See Nagios::Plugin for public interfaces.
A threshold object contains (typically) a pair of ranges, associated with a particular severity e.g.
warning => range1
critical => range2
AUTHOR
This code is maintained by the Nagios Plugin Development Team: see http://nagiosplug.sourceforge.net.
COPYRIGHT AND LICENSE
Copyright (C) 2006-2007 Nagios Plugin Development Team
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-12-22 Nagios::Plugin::Threshold(3pm)