Xymon Mailing List Archive search

Multiple ps commands

3 messages in this thread

list Rich Smrcina · Sun, 31 Jul 2005 16:59:03 -0500 ·
Would is be possible for the Hobbit client to issue the ps command once? It looks as if it is done twice now, to populate the 'Client data' page and to populate the 'procs' page.  I can remove the ps command from the script that populates the 'Client data' page, but then I lose the processes count and graph data.

This could be better, since processes could come and go between the time the two commands are issued.  Using one command could provide a more consistent view of what is going on.
-- 
Rich Smrcina
VM Assist, Inc.
Main: (262)392-2026
Cell: (XXX)XXX-XXXX
Ans Service:  (360)715-2467
user-61add9955ef9@xymon.invalid

Catch the WAVV!  http://www.wavv.org
WAVV 2006 - Chattanooga, TN - April 7-11, 2006
list Henrik Størner · Mon, 1 Aug 2005 07:48:34 +0200 ·
quoted from Rich Smrcina
On Sun, Jul 31, 2005 at 04:59:03PM -0500, Rich Smrcina wrote:
Would is be possible for the Hobbit client to issue the ps command once? 
It looks as if it is done twice now, to populate the 'Client data' page 
and to populate the 'procs' page.
If you look at the client side script, you'll see that it only runs "ps"
once. The data obtained is then used in several places.


Henrik
list Rich Smrcina · Mon, 01 Aug 2005 11:03:37 -0500 ·
Of course you are absolutely right.  I see it now.

Thanks.
quoted from Henrik Størner

Henrik Stoerner wrote:
On Sun, Jul 31, 2005 at 04:59:03PM -0500, Rich Smrcina wrote:
Would is be possible for the Hobbit client to issue the ps command once? It looks as if it is done twice now, to populate the 'Client data' page and to populate the 'procs' page.

If you look at the client side script, you'll see that it only runs "ps"
once. The data obtained is then used in several places.


Henrik

-- 
Rich Smrcina
VM Assist, Inc.
Main: (262)392-2026
Cell: (XXX)XXX-XXXX
Ans Service:  (360)715-2467
user-61add9955ef9@xymon.invalid

Catch the WAVV!  http://www.wavv.org
WAVV 2006 - Chattanooga, TN - April 7-11, 2006