Xymon Mailing List Archive search

Procs --> output of a process from ps -ef is too long

10 messages in this thread

list Cayo de Moraes · Mon, 23 Nov 2009 18:11:52 +0100 ·
Hello guys,

im having some problems to monitor processes with a long output (most of
them are java processes). Hobbit seems to cut the output at certain size and
i have to look for a string which appears at the end of the output.

where can i change this length limit?


tia,
Cayo
list Thomas R. Brand · Mon, 23 Nov 2009 13:26:59 -0500 ·
quoted from Cayo de Moraes
From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid] 
Sent: Monday, November 23, 2009 12:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Procs --> output of a process from ps -ef is too long

 
Hello guys,

im having some problems to monitor processes with a long output (most of
them are java processes). Hobbit seems to cut the output at certain size
and i have to look for a string which appears at the end of the output.

where can i change this length limit?

 

I had the same problem, also with java processes.

 
Assuming you are using Linux, look in the
~hobbit/client/bin/hobbitclient-linux.sh, look for the line

echo "[ps]"

 
Change the 'ps ' command which follows according to your systems
requirements.

For example, under SLES, I had to add 'ww' and changee it to:

ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd

 
Tom Brand

Disclaimer:  1) all opinions are my own, 2) I may be completely wrong,
3) my advice is worth at least as much as what you are paying for it, or
your money cheerfully refunded.
list Jerald Sheets · Mon, 23 Nov 2009 13:32:25 -0500 ·
Interesting.
 
I was just checking out the output in Xymon 4.3.0-0.beeta2, and the
process listing under "procs" is not truncated at all for me.  
 
I was about to setup a new check, and see what I could come up with, and
I happened to catch the Xymon command that was run in that process
listing, and it was:
 
ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd

Good catch!

Jerald Sheets 
Sr. Systems Engineer 
CNN News Systems 
? user-dc7b196c5161@xymon.invalid 
* XXX.XXX.XXXX  *XXX.XXX.XXXX  
quoted from Thomas R. Brand


From: Brand, Thomas R. [mailto:user-10a840458972@xymon.invalid] 
Sent: Monday, November 23, 2009 1:27 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too
long


From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid] 
Sent: Monday, November 23, 2009 12:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Procs --> output of a process from ps -ef is too long

 
Hello guys,

im having some problems to monitor processes with a long output (most of
them are java processes). Hobbit seems to cut the output at certain size
and i have to look for a string which appears at the end of the output.

where can i change this length limit?

 
I had the same problem, also with java processes.

 
Assuming you are using Linux, look in the
~hobbit/client/bin/hobbitclient-linux.sh, look for the line

echo "[ps]"

 
Change the 'ps ' command which follows according to your systems
requirements.

For example, under SLES, I had to add 'ww' and changee it to:

ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd

 
Tom Brand

Disclaimer:  1) all opinions are my own, 2) I may be completely wrong,
3) my advice is worth at least as much as what you are paying for it, or
your money cheerfully refunded.
list Galen Johnson · Mon, 23 Nov 2009 15:18:57 -0500 ·
When they said too long, I didn't think they meant a smaller font (those of you who received the previous email in html know what I'm talking about. ;-)

=G=
quoted from Jerald Sheets
From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid]
Sent: Monday, November 23, 2009 1:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

Interesting.

I was just checking out the output in Xymon 4.3.0-0.beeta2, and the process listing under "procs" is not truncated at all for me.

I was about to setup a new check, and see what I could come up with, and I happened to catch the Xymon command that was run in that process listing, and it was:


ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


Good catch!

Jerald Sheets
Sr. Systems Engineer
CNN News Systems
? user-dc7b196c5161@xymon.invalid

• XXX.XXX.XXXX  ÈXXX.XXX.XXXX
quoted from Jerald Sheets

From: Brand, Thomas R. [mailto:user-10a840458972@xymon.invalid]
Sent: Monday, November 23, 2009 1:27 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid]
Sent: Monday, November 23, 2009 12:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Procs --> output of a process from ps -ef is too long

Hello guys,

im having some problems to monitor processes with a long output (most of them are java processes). Hobbit seems to cut the output at certain size and i have to look for a string which appears at the end of the output.

where can i change this length limit?


I had the same problem, also with java processes.

Assuming you are using Linux, look in the ~hobbit/client/bin/hobbitclient-linux.sh, look for the line
echo "[ps]"

Change the ‘ps ‘ command which follows according to your systems requirements.
For example, under SLES, I had to add ‘ww’ and changee it to:
ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


Tom Brand
Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.
list Jerald Sheets · Mon, 23 Nov 2009 15:59:03 -0500 ·
Well, I would've figured that if it was wrapping, it would actually be easier to find the string he's looking for at the end of the Java line.  If it was truncating, he wasn't getting it at all.  

Did I err in that assumption somewhere?

--j 
quoted from Galen Johnson

-----Original Message-----
From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid] 
Sent: Monday, November 23, 2009 3:19 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

When they said too long, I didn't think they meant a smaller font (those of you who received the previous email in html know what I'm talking about. ;-)

=G=
From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid]
Sent: Monday, November 23, 2009 1:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

Interesting.

I was just checking out the output in Xymon 4.3.0-0.beeta2, and the process listing under "procs" is not truncated at all for me.

I was about to setup a new check, and see what I could come up with, and I happened to catch the Xymon command that was run in that process listing, and it was:


ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


Good catch!

Jerald Sheets
Sr. Systems Engineer
CNN News Systems
? user-dc7b196c5161@xymon.invalid
* XXX.XXX.XXXX  ÈXXX.XXX.XXXX

From: Brand, Thomas R. [mailto:user-10a840458972@xymon.invalid]
Sent: Monday, November 23, 2009 1:27 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid]
Sent: Monday, November 23, 2009 12:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Procs --> output of a process from ps -ef is too long

Hello guys,

im having some problems to monitor processes with a long output (most of them are java processes). Hobbit seems to cut the output at certain size and i have to look for a string which appears at the end of the output.

where can i change this length limit?


I had the same problem, also with java processes.

Assuming you are using Linux, look in the ~hobbit/client/bin/hobbitclient-linux.sh, look for the line echo "[ps]"

Change the 'ps ' command which follows according to your systems requirements.
For example, under SLES, I had to add 'ww' and changee it to:
ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


Tom Brand
Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.
list Galen Johnson · Mon, 23 Nov 2009 17:40:46 -0500 ·
no, your ps statement was REALLY tiny in the email I responded to.  In plain text, it looks normal.
quoted from Jerald Sheets

=G=

From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid]
Sent: Monday, November 23, 2009 3:59 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

Well, I would've figured that if it was wrapping, it would actually be easier to find the string he's looking for at the end of the Java line.  If it was truncating, he wasn't getting it at all.

Did I err in that assumption somewhere?

--j

-----Original Message-----
From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid]
Sent: Monday, November 23, 2009 3:19 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

When they said too long, I didn't think they meant a smaller font (those of you who received the previous email in html know what I'm talking about. ;-)

=G=
From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid]
Sent: Monday, November 23, 2009 1:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

Interesting.

I was just checking out the output in Xymon 4.3.0-0.beeta2, and the process listing under "procs" is not truncated at all for me.

I was about to setup a new check, and see what I could come up with, and I happened to catch the Xymon command that was run in that process listing, and it was:


ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


Good catch!

Jerald Sheets
Sr. Systems Engineer
CNN News Systems
? user-dc7b196c5161@xymon.invalid
* XXX.XXX.XXXX  ÈXXX.XXX.XXXX

From: Brand, Thomas R. [mailto:user-10a840458972@xymon.invalid]
Sent: Monday, November 23, 2009 1:27 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid]
Sent: Monday, November 23, 2009 12:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Procs --> output of a process from ps -ef is too long

Hello guys,

im having some problems to monitor processes with a long output (most of them are java processes). Hobbit seems to cut the output at certain size and i have to look for a string which appears at the end of the output.

where can i change this length limit?


I had the same problem, also with java processes.

Assuming you are using Linux, look in the ~hobbit/client/bin/hobbitclient-linux.sh, look for the line echo "[ps]"

Change the 'ps ' command which follows according to your systems requirements.
For example, under SLES, I had to add 'ww' and changee it to:
ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


Tom Brand
Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.
list Cayo de Moraes · Tue, 24 Nov 2009 10:53:11 +0100 ·
thanks for this solution guys... now i have to fight a litle bit with the
syntax under Unix AIX 5.3... its unfortunately not the same as in Linux


2009/11/23 Galen Johnson <user-87f955643e3d@xymon.invalid>
quoted from Galen Johnson
no, your ps statement was REALLY tiny in the email I responded to.  In
plain text, it looks normal.

=G=

From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid]
Sent: Monday, November 23, 2009 3:59 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

Well, I would've figured that if it was wrapping, it would actually be
easier to find the string he's looking for at the end of the Java line.  If
it was truncating, he wasn't getting it at all.

Did I err in that assumption somewhere?

--j

-----Original Message-----
From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid]
Sent: Monday, November 23, 2009 3:19 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

When they said too long, I didn't think they meant a smaller font (those of
you who received the previous email in html know what I'm talking about. ;-)

=G=
From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid]
Sent: Monday, November 23, 2009 1:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

Interesting.

I was just checking out the output in Xymon 4.3.0-0.beeta2, and the process
listing under "procs" is not truncated at all for me.

I was about to setup a new check, and see what I could come up with, and I
happened to catch the Xymon command that was run in that process listing,
and it was:


ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


Good catch!

Jerald Sheets
Sr. Systems Engineer
CNN News Systems
? user-dc7b196c5161@xymon.invalid
* XXX.XXX.XXXX  ÈXXX.XXX.XXXX

From: Brand, Thomas R. [mailto:user-10a840458972@xymon.invalid]
Sent: Monday, November 23, 2009 1:27 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long

From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid]
Sent: Monday, November 23, 2009 12:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Procs --> output of a process from ps -ef is too long

Hello guys,

im having some problems to monitor processes with a long output (most of
them are java processes). Hobbit seems to cut the output at certain size and
i have to look for a string which appears at the end of the output.

where can i change this length limit?


I had the same problem, also with java processes.

Assuming you are using Linux, look in the
~hobbit/client/bin/hobbitclient-linux.sh, look for the line echo "[ps]"

Change the 'ps ' command which follows according to your systems
requirements.
For example, under SLES, I had to add 'ww' and changee it to:
ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


Tom Brand
Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3)
my advice is worth at least as much as what you are paying for it, or your
money cheerfully refunded.

list Jerald Sheets · Tue, 24 Nov 2009 09:32:51 -0500 ·
I recall that there are different options for ps based on whether or not you used the "-".  (it's been a long time!)  
 
good luck!  Let us all know what the options wind up being!
 
--jms
quoted from Cayo de Moraes


From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid] 
Sent: Tuesday, November 24, 2009 4:53 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Procs --> output of a process from ps -ef is too long


thanks for this solution guys... now i have to fight a litle bit with the syntax under Unix AIX 5.3... its unfortunately not the same as in Linux


2009/11/23 Galen Johnson <user-87f955643e3d@xymon.invalid>


	no, your ps statement was REALLY tiny in the email I responded to.  In plain text, it looks normal.
	

	=G=
	
	From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid]
	
	Sent: Monday, November 23, 2009 3:59 PM
	
	To: user-ae9b8668bcde@xymon.invalid
	Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long
	
	Well, I would've figured that if it was wrapping, it would actually be easier to find the string he's looking for at the end of the Java line.  If it was truncating, he wasn't getting it at all.
	
	Did I err in that assumption somewhere?
	
	--j
	
	-----Original Message-----
	From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid]
	Sent: Monday, November 23, 2009 3:19 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long
	
	When they said too long, I didn't think they meant a smaller font (those of you who received the previous email in html know what I'm talking about. ;-)
	
	=G=
	From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid]
	Sent: Monday, November 23, 2009 1:32 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long
	
	Interesting.
	
	I was just checking out the output in Xymon 4.3.0-0.beeta2, and the process listing under "procs" is not truncated at all for me.
	
	I was about to setup a new check, and see what I could come up with, and I happened to catch the Xymon command that was run in that process listing, and it was:
	
	
	ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd
	
	
	Good catch!
	
	Jerald Sheets
	Sr. Systems Engineer
	CNN News Systems
	? user-dc7b196c5161@xymon.invalid
	* XXX.XXX.XXXX  ÈXXX.XXX.XXXX
	
	From: Brand, Thomas R. [mailto:user-10a840458972@xymon.invalid]
	Sent: Monday, November 23, 2009 1:27 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too long
	
	From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid]
	Sent: Monday, November 23, 2009 12:12 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Procs --> output of a process from ps -ef is too long
	
	Hello guys,
	
	im having some problems to monitor processes with a long output (most of them are java processes). Hobbit seems to cut the output at certain size and i have to look for a string which appears at the end of the output.
	
	where can i change this length limit?
	
	
	I had the same problem, also with java processes.
	
	Assuming you are using Linux, look in the ~hobbit/client/bin/hobbitclient-linux.sh, look for the line echo "[ps]"
	
	Change the 'ps ' command which follows according to your systems requirements.
	For example, under SLES, I had to add 'ww' and changee it to:
	ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd
	
	
	Tom Brand
	Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.
list Ryan Novosielski · Tue, 24 Nov 2009 10:13:14 -0500 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Try ps -waxxxx (with the number of X's dependent on how much output you
want). This is the same for the "ps" on Solaris that is in /usr/ucb.

=R
quoted from Cayo de Moraes

Cayo de Moraes wrote:
thanks for this solution guys... now i have to fight a litle bit with
the syntax under Unix AIX 5.3... its unfortunately not the same as in Linux


2009/11/23 Galen Johnson <user-87f955643e3d@xymon.invalid

    no, your ps statement was REALLY tiny in the email I responded to.
     In plain text, it looks normal.

    =G=

    From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid

    <mailto:user-dc7b196c5161@xymon.invalid>]
    Sent: Monday, November 23, 2009 3:59 PM
    To: user-ae9b8668bcde@xymon.invalid <mailto:user-ae9b8668bcde@xymon.invalid>
quoted from Jerald Sheets
    Subject: RE: [hobbit] Procs --> output of a process from ps -ef is
    too long

    Well, I would've figured that if it was wrapping, it would actually
    be easier to find the string he's looking for at the end of the Java
    line.  If it was truncating, he wasn't getting it at all.

    Did I err in that assumption somewhere?

    --j

    -----Original Message-----
    From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid
    <mailto:user-87f955643e3d@xymon.invalid>]
    Sent: Monday, November 23, 2009 3:19 PM

    To: user-ae9b8668bcde@xymon.invalid <mailto:user-ae9b8668bcde@xymon.invalid>
quoted from Jerald Sheets
    Subject: RE: [hobbit] Procs --> output of a process from ps -ef is
    too long

    When they said too long, I didn't think they meant a smaller font
    (those of you who received the previous email in html know what I'm
    talking about. ;-)

    =G=
    From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid

    <mailto:user-dc7b196c5161@xymon.invalid>]
    Sent: Monday, November 23, 2009 1:32 PM
    To: user-ae9b8668bcde@xymon.invalid <mailto:user-ae9b8668bcde@xymon.invalid>
quoted from Jerald Sheets
    Subject: RE: [hobbit] Procs --> output of a process from ps -ef is
    too long

    Interesting.

    I was just checking out the output in Xymon 4.3.0-0.beeta2, and the
    process listing under "procs" is not truncated at all for me.

    I was about to setup a new check, and see what I could come up with,
    and I happened to catch the Xymon command that was run in that
    process listing, and it was:


    ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


    Good catch!

    Jerald Sheets
    Sr. Systems Engineer
    CNN News Systems

    ? user-dc7b196c5161@xymon.invalid <mailto:user-dc7b196c5161@xymon.invalid>
quoted from Jerald Sheets
    * XXX.XXX.XXXX  ÈXXX.XXX.XXXX

    From: Brand, Thomas R. [mailto:user-10a840458972@xymon.invalid <mailto:user-10a840458972@xymon.invalid>]
    Sent: Monday, November 23, 2009 1:27 PM
    To: user-ae9b8668bcde@xymon.invalid <mailto:user-ae9b8668bcde@xymon.invalid>
    Subject: RE: [hobbit] Procs --> output of a process from ps -ef is
    too long

    From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid
    <mailto:user-92aec3b3c467@xymon.invalid>]
    Sent: Monday, November 23, 2009 12:12 PM

    To: user-ae9b8668bcde@xymon.invalid <mailto:user-ae9b8668bcde@xymon.invalid>
quoted from Jerald Sheets
    Subject: [hobbit] Procs --> output of a process from ps -ef is too long

    Hello guys,

    im having some problems to monitor processes with a long output
    (most of them are java processes). Hobbit seems to cut the output at
    certain size and i have to look for a string which appears at the
    end of the output.

    where can i change this length limit?


    I had the same problem, also with java processes.

    Assuming you are using Linux, look in the
    ~hobbit/client/bin/hobbitclient-linux.sh, look for the line echo "[ps]"

    Change the 'ps ' command which follows according to your systems
    requirements.
    For example, under SLES, I had to add 'ww' and changee it to:
    ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


    Tom Brand
    Disclaimer:  1) all opinions are my own, 2) I may be completely
    wrong, 3) my advice is worth at least as much as what you are paying
    for it, or your money cheerfully refunded.

- --
 ---- _  _ _  _ ___  _  _  _

 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/CST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksL+AoACgkQmb+gadEcsb5dCgCg0GWE0oARFPsXPyXgrZOHwFW3
MtgAn0RWugLle0ZNIZ9Us32cQPZpUXPC
=jYKZ
-----END PGP SIGNATURE-----
list Cayo de Moraes · Tue, 24 Nov 2009 17:52:39 +0100 ·
yes,

X/Open Standards are with "-" and Berkeley Standards are without "-"... the
problem is, that i cant use both syntax together.

Im still working on it    =)


2009/11/24 Sheets, Jerald <user-dc7b196c5161@xymon.invalid>
quoted from Ryan Novosielski
 I recall that there are different options for ps based on whether or not
you used the "-".  (it's been a long time!)

good luck!  Let us all know what the options wind up being!

--jms

*From:* Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid]
*Sent:* Tuesday, November 24, 2009 4:53 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] Procs --> output of a process from ps -ef is too
long

thanks for this solution guys... now i have to fight a litle bit with the
syntax under Unix AIX 5.3... its unfortunately not the same as in Linux


2009/11/23 Galen Johnson <user-87f955643e3d@xymon.invalid>
no, your ps statement was REALLY tiny in the email I responded to.  In
plain text, it looks normal.

=G=

From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid]
Sent: Monday, November 23, 2009 3:59 PM
 To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too
long

Well, I would've figured that if it was wrapping, it would actually be
easier to find the string he's looking for at the end of the Java line.  If
it was truncating, he wasn't getting it at all.

Did I err in that assumption somewhere?

--j

-----Original Message-----
From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid]
Sent: Monday, November 23, 2009 3:19 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too
long

When they said too long, I didn't think they meant a smaller font (those
of you who received the previous email in html know what I'm talking about.

;-)
quoted from Ryan Novosielski

=G=
From: Sheets, Jerald [user-dc7b196c5161@xymon.invalid]
Sent: Monday, November 23, 2009 1:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too
long

Interesting.

I was just checking out the output in Xymon 4.3.0-0.beeta2, and the
process listing under "procs" is not truncated at all for me.

I was about to setup a new check, and see what I could come up with, and I
happened to catch the Xymon command that was run in that process listing,
and it was:


ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


Good catch!

Jerald Sheets
Sr. Systems Engineer
CNN News Systems
? user-dc7b196c5161@xymon.invalid
* XXX.XXX.XXXX  ÈXXX.XXX.XXXX

From: Brand, Thomas R. [mailto:user-10a840458972@xymon.invalid]
Sent: Monday, November 23, 2009 1:27 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Procs --> output of a process from ps -ef is too
long

From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid]
Sent: Monday, November 23, 2009 12:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Procs --> output of a process from ps -ef is too long

Hello guys,

im having some problems to monitor processes with a long output (most of
them are java processes). Hobbit seems to cut the output at certain size and
i have to look for a string which appears at the end of the output.

where can i change this length limit?


I had the same problem, also with java processes.

Assuming you are using Linux, look in the
~hobbit/client/bin/hobbitclient-linux.sh, look for the line echo "[ps]"

Change the 'ps ' command which follows according to your systems
requirements.
For example, under SLES, I had to add 'ww' and changee it to:
ps -Aww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd


Tom Brand
Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3)
my advice is worth at least as much as what you are paying for it, or your
money cheerfully refunded.