performance monitoring

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
Post Reply
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

performance monitoring

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Does

Code: Select all

TERM=vt100; top -n1
work?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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.
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Post Reply