Xymon Mailing List Archive search

HPUX and procs column

4 messages in this thread

list Doug Linder · Mon, 2 Jun 2008 16:20:57 -0400 ·
I just started doing some process monitoring in Hobbit.  It's working
fine on all platforms except HP/UX.  On HP/UX systems the status goes to
Warning immediately, and when you get the details it says:
 
yellow Expected string COMMAND not found in ps output header
 
UID        PID  PPID  C    STIME TTY          TIME CMD
root         0     0  0  Jul  5  ?           04:10 swapper
root         1     0  0  Jul  5  ?           35:35 init
 
I checked and sure enough, HP/UX seems to use "CMD" as the header for
the ps column that the other operating systems call "COMMAND", so it
isn't checking the processes right.
 
Is that string somewhere in hobbit that I can change, like a script, or
would it be compiled into the binary?
 
 
---
Doug Linder
UNIX Systems Administrator
CompuCom Systems, Inc.
 
SABIC Innovative Plastics
T: XXX XXX XXXX
D: *838 7563
E: user-c834f078a0a6@xymon.invalid
list Robert Manocchia · Mon, 2 Jun 2008 16:27:45 -0400 ·
Try the following in the client/bin/hobbitclient-hp-ux.sh file

 
echo "[ps]"

UNIX95=1 ps -Ax -o pid,ppid,user,stime,state,pri,pcpu,time,vsz,args

 
It should return the expected string command instead of cmd.

 
-----Original Message-----
From: Linder, Doug (SABIC Innovative Plastics, consultant)
[mailto:user-c834f078a0a6@xymon.invalid] 
Sent: Monday, June 02, 2008 4:21 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] HPUX and procs column
quoted from Doug Linder

 
I just started doing some process monitoring in Hobbit.  It's working
fine on all platforms except HP/UX.  On HP/UX systems the status goes to
Warning immediately, and when you get the details it says:

 
yellow Expected string COMMAND not found in ps output header

 
UID        PID  PPID  C    STIME TTY          TIME CMD
root         0     0  0  Jul  5  ?           04:10 swapper
root         1     0  0  Jul  5  ?           35:35 init

 
I checked and sure enough, HP/UX seems to use "CMD" as the header for
the ps column that the other operating systems call "COMMAND", so it
isn't checking the processes right.

 
Is that string somewhere in hobbit that I can change, like a script, or
would it be compiled into the binary?

 
---

Doug Linder

UNIX Systems Administrator

CompuCom Systems, Inc.

 
SABIC Innovative Plastics

T: XXX XXX XXXX

D: *838 7563

E: user-c834f078a0a6@xymon.invalid
list Lars Ebeling · Tue, 3 Jun 2008 06:06:17 +0200 ·
What version of HP-UX are you running? I am running 11.11 and here it works.

Lars
quoted from Robert Manocchia
  ----- Original Message ----- 
  From: Linder, Doug (SABIC Innovative Plastics, consultant) 
  To: user-ae9b8668bcde@xymon.invalid 
  Sent: Monday, June 02, 2008 10:20 PM
  Subject: [hobbit] HPUX and procs column


  I just started doing some process monitoring in Hobbit.  It's working fine on all platforms except HP/UX.  On HP/UX systems the status goes to Warning immediately, and when you get the details it says:

  yellow Expected string COMMAND not found in ps output header

  UID        PID  PPID  C    STIME TTY          TIME CMD
  root         0     0  0  Jul  5  ?           04:10 swapper
  root         1     0  0  Jul  5  ?           35:35 init

  I checked and sure enough, HP/UX seems to use "CMD" as the header for the ps column that the other operating systems call "COMMAND", so it isn't checking the processes right.

  Is that string somewhere in hobbit that I can change, like a script, or would it be compiled into the binary?


  ---
  Doug Linder
  UNIX Systems Administrator
  CompuCom Systems, Inc.

  SABIC Innovative Plastics
  T: XXX XXX XXXX
  D: *838 7563
  E: user-c834f078a0a6@xymon.invalid
list Doug Linder · Tue, 3 Jun 2008 11:19:40 -0400 ·
 
I was seeing this on both hp/ux 11.00 and 11.23.  I fixed it by changing
the line in hobbitclient-hp-ux.sh to:
 
UNIX95=1 ps -ef -o uid,pid,ppid,cpu,stime,tty=TTY -o time,comm
 
I guess you could use ps -A instead of -ef but both work.  You can leave
out the =TTY and second "-o" if you don't care if the TTY column is not
named TTY.
 
 
DL
quoted from Lars Ebeling
 

	From: Lars Ebeling [mailto:user-1fecd3eafd52@xymon.invalid] 
	Sent: Tuesday, June 03, 2008 12:06 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: Re: [hobbit] HPUX and procs column
	
	
	What version of HP-UX are you running? I am running 11.11 and
here it works.
	 
	Lars

		----- Original Message ----- 
		From: Linder, Doug (SABIC Innovative Plastics,
consultant) <mailto:user-c834f078a0a6@xymon.invalid>  
		To: user-ae9b8668bcde@xymon.invalid 
		Sent: Monday, June 02, 2008 10:20 PM
		Subject: [hobbit] HPUX and procs column
		
		
		I just started doing some process monitoring in Hobbit.
It's working fine on all platforms except HP/UX.  On HP/UX systems the
status goes to Warning immediately, and when you get the details it
says:
		 
		yellow Expected string COMMAND not found in ps output
header
		 
		UID        PID  PPID  C    STIME TTY          TIME CMD
		root         0     0  0  Jul  5  ?           04:10
swapper
		root         1     0  0  Jul  5  ?           35:35 init
		 
		I checked and sure enough, HP/UX seems to use "CMD" as
the header for the ps column that the other operating systems call
"COMMAND", so it isn't checking the processes right.
		 
		Is that string somewhere in hobbit that I can change,
like a script, or would it be compiled into the binary?
		 
		 
		---
		Doug Linder
		UNIX Systems Administrator
		
		CompuCom Systems, Inc.
		
		 
		SABIC Innovative Plastics
		T: XXX XXX XXXX
		D: *838 7563
		E: user-c834f078a0a6@xymon.invalid