Sponsored Content
Special Forums UNIX and Linux Applications Infrastructure Monitoring AIX monitoring tools for graphical output Post 302472059 by bakunin on Tuesday 16th of November 2010 07:00:54 AM
Old 11-16-2010
Probably your simplest option would be to write a small script.

To monitor the processes use the "ps" command, like in the following script sketch:

Code:
while : ; do
     if [ $(ps -fe | grep "<processname>" | wc -l) -le <minimum_nr_plus_1> ] ; then
          show_error "Not all processes seem to run."
     fi
     sleep <nr_of_seconds>
done

To monitor the memory is more tricky: (almost) all otherwise unused memory is used by the OS for caching purposes, so monitoring "free memory" is completely useless - you get constantly "nearly all memory used" as a result, regardless of how much memory is in fact used by applications.


If you are not interested in exact memory consumption, but only in avoiding paging you could monitor the utilization of the paging space(s) by "lsps -a":

Code:
while : ; do
     if [ $(lsps -s | sed '1d;s/^.*\([0-9][0-9]*\)%.*$/\1/') -gt <threshold_value>] ; then
          show_error "Paging space utilization exceeded."
     sleep <nr_of_seconds>
done

Tomcat is an application and could be monitored like any other process (see above)

Monitoring network connectivity is relatively easy, but with a catch: if the network connection goes down the machine has usually no way of advertising this fact. The best solution is to monitor the system from another host, like in the following sketch:

Code:
while : ; do
     if [ $(ping -c1 <host_to_monitor1>; echo $?) -gt 0 ] ; then
          show_error "Cannot reach <host_to_monitor1>"
     fi
     if [ $(ping -c1 <host_to_monitor2>; echo $?) -gt 0 ] ; then
          show_error "Cannot reach <host_to_monitor2>"
     fi
     [ ...]
     sleep <nr_of_seconds>
done

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. IP Networking

Networking Monitoring Tools

Any idea where can I get a freware to monitor the network traffic in my department? The best is this tool can store the log files. Thanks! (5 Replies)
Discussion started by: zheng_soon
5 Replies

2. Infrastructure Monitoring

UNIX Monitoring tools

I need some monitoring tools for SCO 7.1.4 Does anybody reccomend some software that I can install to monitor mem leaks and odd SAR values etc (2 Replies)
Discussion started by: trebor1
2 Replies

3. UNIX for Advanced & Expert Users

UNIX monitoring tools

Guys, I would like to know who are using monitoring tools? I use Nagios before but it seems is more on Linux and Windows platform. - Nagios - BigBrother - BigSister - Cacti - MRTG - JFFNMS - anymore? Please give comment too I would like to have some comment on UNIX monitoring tools.... (2 Replies)
Discussion started by: dwarf007
2 Replies

4. Red Hat

Monitoring tools

Hi, In HPUX there is a grate monitor tools named GLANCE, which give you information on the disks load, memory usage, cpu ... What is the equivalent tool in LINUX Redhat 4. Thanks (3 Replies)
Discussion started by: yoavbe
3 Replies

5. AIX

AIX 4.2 temperature monitoring tools included ?

Are there any AIX 4.2 commands that would give me the ability to monitor the hardware temperature ? I did a forum search and found nothing about AIX. I checked the 'diag' command but it does not say anywhere that it has this feature. I tried the 'prtdiag' command but it does not exist on the... (6 Replies)
Discussion started by: Browser_ice
6 Replies

6. Solaris

Recommend graphical monitoring tool for sun

Hi folks I am looking for tool which have graphical presentation for cpu and disk characteristics. Cpu is the least of the concern, disk is the most. We use san devices and i know which id's correspond to it. But the problem is that at least one of the tool I tried to use - Quest Sportlight does... (6 Replies)
Discussion started by: ggolub
6 Replies

7. Infrastructure Monitoring

Monitoring tools

I am interested whitch tools are the best by monitoring the UNIX processes and network interfaces ? and whitch tools for management UNIX ? I know that the nagios very good monitoring tools, but interested me and others who have ? (4 Replies)
Discussion started by: danyy
4 Replies

8. UNIX for Dummies Questions & Answers

UNIX user monitoring tools

Hello mates.. i need help with these things *Users should be allowed to login only once, i.e Multiple logins from single user should be restricted and should issue an alert if any user tries . *statistics of everyday log in time ,duration of login,and the commands executed by the user *Alert... (6 Replies)
Discussion started by: safijunaid
6 Replies

9. Red Hat

Recommendations on GRAPHICAL Monitoring Tool

Need assistance in finding a Graphical Monitoring tool open source for Centos , REDHAT linux which doesnt require "root" to compile the tool. Tool that does performance monitoring for Disk usage, CPU, Memory ,Network stats Need install and configure steps as well . (2 Replies)
Discussion started by: ajayram_arya
2 Replies

10. AIX

Monitoring tools

The monitoring tools what we have not able to see historical information about the process name or pid number for the process that consumed high CPU or memory or paging space. Can you please suggest some of the best monitoring tools available in the market that monitors primarily AIX and other Unix... (0 Replies)
Discussion started by: baladelaware73
0 Replies
desfree_pct(5)							File Formats Manual						    desfree_pct(5)

NAME
desfree_pct - sets the lower bound before paging daemon starts stealing pages, specified as a percentage of available physical memory VALUES
Failsafe Default Allowed values Must not be greater than (see lotsfree_pct(5)). DESCRIPTION
is a tunable parameter to set the lower bound before the paging daemon start stealing pages. It is specified as a percentage of physical memory available after boot. must be a positive integer between 0 and 30 and must be equal to or less than (see lotsfree_pct(5)). Trying to set higher than results in The paging daemon in HP-UX acts on a "two hand" model. The daemon runs at least once a second, with one part marking pages of virtual address space as "unused". If the page is referenced before this "aging" hand returns, it will be marked as "used" again. Another section of the daemon, the "steal" hand follows the age hand (the distance between them varies in a well bounded range) and processes pages which are still marked "unused", since needed or frequently accessed pages would have a high likelihood of being referenced in the gap between the hands. Exactly how the steal hand treats the pages still marked as "unused" depends on the comparison of free system physical memory and three paging parameters: and Between and is a periodically re-calculated and, hence floating, threshold known as Thus and are the upper and lower bounds between which moves. is an expression of how much the system maintains, expressed in percentage terms (percentage of physical memory available after boot). o If is greater than the system's memory availability is in good shape. The steal hand does nothing as a lot of memory is still available on the system, so there is no need to "steal' a page that might be needed soon. o In the more common case, when is lower than (but higher than the steal hand will begin to steal pages that have remained unreferenced from when the age hand last marked them. "Stealing" a page refers to the process of freeing the page from being allocated for a partic- ular virtual page and making it available for general allocation again. If falls below but is still more than memory availability is still in reasonable shape, but the paging daemon begins stealing pages more aggressively, including putting lower priority processes to sleep to free up their memory. o When is less than free memory in the system is getting more critical; the paging daemon begin deactivating low priority processes, in other words, swapping out pages to the swap device. Since the exact memory topography varies widely across supported platforms, the paging parameters and are tunable to allow for cases where the default values are insufficient, or where the system administrator requires more control over the actions of the paging daemon. In general, however, the automatic calculation performed by default should suffice for most systems. is a system calculated value. Who Is Expected to Change This Tunable? Anyone with super-user privileges. Restrictions on Changing Changes to this tunable take effect immediately. When Should the Value of This Tunable Be Raised? This tunable should be raised on systems where system memory is critical for short-term, high priority processes, but is being held by low- priority, long running processes. For example, when one web server is forking off per-connection threads while 50 RCS clients run in the background. Increasing (and hence would raise the likelihood of the low-priority processes being put to sleep, allowing the high-priority processes a chance to acquire the pages that were previously allocated to the former. What are the Side Effects of Raising the Value? As increases, more low priority processes might be forced to sleep. Depending on what these processes are actually doing, this may not be the right approach. When Should the Value of This Tunable Be Lowered? Raising too high can impair performance of lower priority processes as previously described. In addition, raising and increases system overhead (it takes time to swap a page to disk), and should be weighed carefully against the need or desire to keep a large pool of physical memory unused. Some free memory is essential, a moderate amount is probably good, a lot of free memory just sitting idle is a waste. If the available physical memory on the machine seems generous and heavy swapping is occurring, lowering and/or will increase memory usage but decrease swapping overhead. What are the Side Effects of Lowering the Value? More physical memory will be in use before processes are put to sleep to try to reclaim their frames. What Other Tunable Values Should Be Changed at the Same Time? should be considered when modifying for reasons previously described above. acts as a firm upper bound to so attempting to set above is meaningless and will result in an error. See lotsfree_pct(5). Notes Starting with HP-UX 11i Version 2, HP recommends the use of to specify the lower bound for the paging daemon. ERRORS
Memory resource management infrastructure is busy. Please try later. Attempting to set above An invalid value is entered that is not an integer between 0 and 30, such as an negative number. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
lotsfree_pct(5). Tunable Kernel Parameters desfree_pct(5)
All times are GMT -4. The time now is 02:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy