You could run the check from cron every minute and keep a count of the number of times the CPU is high in a dat file then you can warn via email if the CPU is high for more than x checks and also notify when it normalises again.
I run something like this myself:
Edit:
In a similar way you can use sar -r 5 6 (5 readings averaged over 6 seconds each) to monitor memory usage - Look at column #4 for pct memory used.
The counts for number of readings exceeding limit could be stored in the same data file.
Last edited by Chubler_XL; 01-22-2017 at 04:21 PM..
how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries
through a c program or java program
i want to store that data into database so i can show it graphically
thanks in advance (2 Replies)
Please tell me solaris functions/api for getting following information
1- Function that tells how much memory used by current process
2- Function that tells how much memory used by all running processes
3- Function that tells how much CPU is used by current process
4- Function that tells how... (1 Reply)
Is there a way for me to record cpu and memory usage over time without buying and installing new software? I know I can use top to see the current state, but can I record that data somehow? (2 Replies)
Hi All,
Does anyone know what the best commands in the UNIX command line are for obtaining this info:
current CPU usage
memory usage
virtual memory usage
preferably with date and time parameters too?
thanks
ocelot (4 Replies)
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Hi all,
When you monitor the CPU and memory usage, how often do you do it ? Do it too often or too rarely will both cause the problem. So does anyone have hand-on experience ?
And for my case, the requirement says that when CPU usage is above X% or memory usage is above Y%, I should reject... (5 Replies)
what is the best way to get the memory and cpu usage of a process on any system?
this is relatively simple. however, i'm looking for a unified method that would work on linux, sunos, hpux, aix.
ps -ef | egrep myprocess | awk '{print $4}' ---> there could be several instances of 'myprocess'... (3 Replies)
Discussion started by: SkySmart
3 Replies
LEARN ABOUT SUNOS
idle
IDLE(1) General Commands Manual IDLE(1)NAME
IDLE - An Integrated DeveLopment Environment for Python
SYNTAX
idle [ -dins ] [ -t title ] [ file ...]
idle [ -dins ] [ -t title ] ( -c cmd | -r file ) [ arg ...]
idle [ -dins ] [ -t title ] - [ arg ...]
DESCRIPTION
This manual page documents briefly the idle command. This manual page was written for Debian because the original program does not have a
manual page. For more information, refer to IDLE's help menu.
IDLE is an Integrated DeveLopment Environment for Python. IDLE is based on Tkinter, Python's bindings to the Tk widget set. Features are
100% pure Python, multi-windows with multiple undo and Python colorizing, a Python shell window subclass, a debugger. IDLE is cross-plat-
form, i.e. it works on all platforms where Tk is installed.
OPTIONS -h Print this help message and exit.
-n Run IDLE without a subprocess (see Help/IDLE Help for details).
The following options will override the IDLE 'settings' configuration:
-e Open an edit window.
-i Open a shell window.
The following options imply -i and will open a shell:
-c cmd Run the command in a shell, or
-r file
Run script from file.
-d Enable the debugger.
-s Run $IDLESTARTUP or $PYTHONSTARTUP before anything else.
-t title
Set title of shell window.
A default edit window will be bypassed when -c, -r, or - are used.
[arg]* and [file]* are passed to the command (-c) or script (-r) in sys.argv[1:].
EXAMPLES
idle Open an edit window or shell depending on IDLE's configuration.
idle foo.py foobar.py
Edit the files, also open a shell if configured to start with shell.
idle -est "Baz" foo.py
Run $IDLESTARTUP or $PYTHONSTARTUP, edit foo.py, and open a shell window with the title "Baz".
idle -c "import sys; print sys.argv" "foo"
Open a shell window and run the command, passing "-c" in sys.argv[0] and "foo" in sys.argv[1].
idle -d -s -r foo.py "Hello World"
Open a shell window, run a startup script, enable the debugger, and run foo.py, passing "foo.py" in sys.argv[0] and "Hello World" in
sys.argv[1].
echo "import sys; print sys.argv" | idle - "foobar"
Open a shell window, run the script piped in, passing '' in sys.argv[0] and "foobar" in sys.argv[1].
SEE ALSO python(1).
AUTHORS
Various.
21 September 2004 IDLE(1)