AIX Running Processes

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

pizzaman
Posts: 7
Joined: Wed Feb 23, 2005 11:37 pm

AIX Running Processes

Post by pizzaman »

I got cacti+AIX template running nicely. I'd like to extend that a little bit to get the running processes report too. For instance, is Process_A, etc... running and how many of them. Thanks in advance to AIX guru. :)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ooooh....

Um......

Let me ponder on this....
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
pizzaman
Posts: 7
Joined: Wed Feb 23, 2005 11:37 pm

Post by pizzaman »

:roll:

It'd be very interesting to get this thing done. Google all the way to Hade but couldn't find any reference on this.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Well, the hostmib on AIX agent it supported, but I don't remember what metrics it has.

So, I don't know yet, but have ideas.. ;)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Seems the AIX specific mib has a process table that has the following metrics:

Code: Select all

TTY - Indicates the controlling terminal name of the process. 
Status - For processes:
         (1)O Nonexistent 
         (2)A Active
         (3)W Swapped 
         (4)I Idle (waiting for startup) :
         (5)Z Canceled 
         (6)T Stopped
Start - The start time of the process.
CPU - CPU utilization of process or thread, incremented 
      each time the system clock ticks and the process 
      or thread is found to be running. 
      Large values indicate a CPU intensive process and results
      in lower process priority whereas small values indicate 
      an I/O intensive process and result in a more favorable 
      priority. 
CMD - The command name of the process. 
Priority - The priority of the process or kernel thread, 
      higher numbers mean lower priority.
Group - Indicates the effective group ID of the process.
PPID - The process ID of the parent process.
UID - The user ID of the process owner.
What are you looking todo, please describe.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
pizzaman
Posts: 7
Joined: Wed Feb 23, 2005 11:37 pm

Post by pizzaman »

What I'd like to do is to get the result from AIX as I could do from Linux. In Linux, you could configure net-snmpd to monitor specific process(es), for instance if mysql processes (and how many of them) are running. That comes with this OID .1.3.6.1.4.1.2021.2.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You know, there really is nothing stopping you from compiling NET-SNMP and running it on AIX.. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
pizzaman
Posts: 7
Joined: Wed Feb 23, 2005 11:37 pm

Post by pizzaman »

Thanks! BUT the owner of this AIX iron is the person who doesn't like me to install anything _new_ into it. :(
pizzaman
Posts: 7
Joined: Wed Feb 23, 2005 11:37 pm

Post by pizzaman »

Installing net-snmp will be the last resource.. Thanks in advance for any suggestion.
skantner
Posts: 5
Joined: Thu Jun 09, 2005 12:58 pm

Post by skantner »

rony wrote:You know, there really is nothing stopping you from compiling NET-SNMP and running it on AIX.. :)
Except that it appears there are few mortals who can get Net-SNMP 5.2.1 to compile and work on AIX 5.2 :roll: I'm struggling with that right now. The NET-SNMP lists are very quiet on this issue
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Everyone is quiet about AIX. I would swear it never existed if I didn't have 10 windows open to many different AIX boxes... :(

Are you using GCC or XLC to compile? You might have better luck with GCC.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
skantner
Posts: 5
Joined: Thu Jun 09, 2005 12:58 pm

Post by skantner »

As I type this, a compile is running under the gcc that IBM publishes in it's Linux tool box for AIX 5L. I just found a link for that by dumb luck after I posted my previous message (viva la Google). I had previously tried xlc V7 and a binary of gcc I found on the old Bull shareware site.

//Scott
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

It should work under GCC, I have my doubts it works under XLC.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
skantner
Posts: 5
Joined: Thu Jun 09, 2005 12:58 pm

Post by skantner »

<sigh> same problem as under xlc. When i start up snmpd, it immediately ends. In smpd.log I get one line:
nlist: No such file or directory.
I have no idea what it's looking for.
pizzaman
Posts: 7
Joined: Wed Feb 23, 2005 11:37 pm

Post by pizzaman »

skantner, thanks for the update and please keep us posted about your experiments (gcc, net-snmp, AIX).
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest