Page 1 of 1

performance monitoring

Posted: Wed Dec 21, 2005 1:48 am
by jameswilson
I have just fount out that the cammand i use to check my zm server remote (iostat -k) give me 5 of processor usage but an average from last reboot. Ideally i want a top like instant report but i need to be able to run the command from webmin as i dont open ssh upto the internet.

I have tried using top -n1 to give a single snapshot but this wont work in webmin (works fine on ssh)
as you can see below
> top -n1
TERM environment variable not set.
> top -n1 -S
TERM environment variable not set.
> top -n1 -s
TERM environment variable not set.
Anyone else use anything uselful or know a way round this

Posted: Wed Dec 21, 2005 9:31 am
by zoneminder
Does

Code: Select all

TERM=vt100; top -n1
work?

Posted: Wed Dec 21, 2005 12:08 pm
by jameswilson
no,l that works in ssh on y home box but not with webmin same error
> TERM=vt100; top -n1
TERM environment variable not set.

Posted: Wed Dec 21, 2005 1:56 pm
by zoneminder
Have you tried top -b? That shouldn't need a terminal setting, so

Code: Select all

top -b -n 1
should just squirt out a listing without regard to layout.

Phil

Posted: Wed Dec 21, 2005 3:52 pm
by jameswilson
no unfortunatly not that wont do it either
Command history
> top -b -n 1
TERM environment variable not set.

is there another command that will give me the processor state or is top the only one?