06-27-2005
Monitoring CPU usage on AIX 5.3 with SNMP
Hi
I would like to monitor CPU usage ( %) , memory utilization and such on an AIX 5.3 with snmp.
How would I do that ?
If I do "snmpwalk -c public -v1 hosttomonitor" I get nothing about the CPU.
I've done this on Linux ( not much trouble doing it on linux ) but I'm having a hard time doing this on AIX.
I've been google-ing this and think I need a special MIB to do this, but how do I use it ?
any help would be great !
![Smilie Smilie](https://www.unix.com/images/smilies/smile.gif)
10 More Discussions You Might Find Interesting
1. AIX
Does anyone had an issue with AIX reporting huge CPU Usage Times for jobs? I am seeing process using ps that are reporting billions for the CPU Times. This only seems to happen once in awhile. (0 Replies)
Discussion started by: vigsgb
0 Replies
2. Shell Programming and Scripting
I have written a script that will calculate CPU usage and Memory usage of a particular process on AIX Unix. I know the PID and I am using the command --
# for CPU Usage
MSG_CPU_USG=`ps uax | grep ${PID} | awk {'print $3'}`
#for Memory Usage
MSG_MEM_USG=`ps uax | grep ${PID} | awk {'print... (0 Replies)
Discussion started by: asutoshch
0 Replies
3. AIX
If somebody knows there are some tools can show how many CPU, memory useage on AIX and can automatically send email?
Such as when setup if CPU is used over 80%, send alert by email automatically.
Maybe BMC has this tool? (6 Replies)
Discussion started by: rainbow_bean
6 Replies
4. HP-UX
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)
Discussion started by: alert0919
3 Replies
5. Solaris
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)
Discussion started by: S_venkatesh
2 Replies
6. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
7. UNIX for Advanced & Expert Users
hi all,
i want to monitor mysql processes/threads/queries with respect to cpu usage.how can i do it?
show processlist is of no use as no information abt cpu usage is given.
plz help (7 Replies)
Discussion started by: rohitmahambre
7 Replies
8. Infrastructure Monitoring
Can someone please tell me how to calculate the CPU usage from what one gets back from snmpwalk?
I have searched and dug through the internet and apparently, no one has the answer to this?
i can use snmpwalk to pull out relevant information about cpu. but i have no clue what values are to be... (1 Reply)
Discussion started by: SkySmart
1 Replies
9. Shell Programming and Scripting
OS: AIX
so we frequently receive a lot of cpu related alerts. all types of checks have been created to keep an eye on the cpu but a lot of these checks make too much noise as the CPU is always being seen as high. the system and application owners say there's no issue with the cpu.
so now,... (6 Replies)
Discussion started by: SkySmart
6 Replies
10. AIX
hi,
We have two LPARs, both have same capacity and believe same configuration. ulimit settings for oracle user is unlimited for both LPARs. Installed oracle databases with same configurations on both LPARs, both databases sync every second so volume is same. Both LPARs/databases have identical... (10 Replies)
Discussion started by: baladelaware73
10 Replies
os_mon(7) Erlang Application Definition os_mon(7)
NAME
os_mon - OS Monitoring Application
DESCRIPTION
The operating system monitor, OS_Mon, provides the following services:
* cpu_sup CPU load and utilization supervision (Unix)
* disksup Disk supervision(Unix, Windows)
* memsup Memory supervision (Unix, Windows, VxWorks)
* os_sup Interface to OS system messages (Solaris, Windows)
To simplify usage of OS_Mon on distributed Erlang systems, it is not considered an error trying to use a service at a node where it is not
available (either because OS_Mon is not running, or because the service is not available for that OS, or because the service is not
started). Instead, a warning message is issued via error_logger and a dummy value is returned, which one is specified in the man pages for
the respective services.
CONFIGURATION
When OS_Mon is started, by default all services available for the OS, except os_sup , are automatically started. This configuration can be
changed using the following application configuration parameters:
start_cpu_sup = bool() :
Specifies if cpu_sup should be started. Defaults to true .
start_disksup = bool() :
Specifies if disksup should be started. Defaults to true .
start_memsup = bool() :
Specifies if memsup should be started. Defaults to true .
start_os_sup = bool() :
Specifies if os_sup should be started. Defaults to false .
Configuration parameters effecting the different OS_Mon services are described in the respective man pages.
See config(5) for information about how to change the value of configuration parameters.
SNMP MIBS
The following MIBs are defined in OS_Mon:
OTP-OS-MON-MIB :
This MIB contains objects for instrumentation of disk, memory and CPU usage of the nodes in the system.
The MIB is stored in the mibs directory. It is defined in SNMPv2 SMI syntax. An SNMPv1 version of the MIB is delivered in the mibs/v1
directory.
The compiled MIB is located under priv/mibs , and the generated .hrl file under the include directory. To compile a MIB that IMPORTS the
OTP-OS-MON-MIB , give the option {il, ["os_mon/priv/mibs"]} to the MIB compiler.
If the MIB should be used in a system, it should be loaded into an agent with a call to os_mon_mib:load(Agent) , where Agent is the pid or
registered name of an SNMP agent. Use os_mon_mib:unload(Agent) to unload the MIB. The implementation of this MIB uses Mnesia to store a
cache with data needed, which implicates that Mnesia must be up and running. The MIB also use functions defined for the OTP-MIB , thus that
MIB must be loaded as well.
SEE ALSO
cpu_sup(3erl) , disksup(3erl) , memsup(3erl) , os_sup(3erl) , nteventlog(3erl) , snmp(3erl) .
Ericsson AB os_mon 2.2.5 os_mon(7)