1

If I want to capture performance log of a Ubuntu (or any other Linux Distro) Server/Workstation for a period of time, how would I do that?

In Windows, I use something called PERFMON.MSC (LOGMAN.EXE), but not sure about Linux.

I want to run it in background during production hours on everyday from Monday to Friday and as per usage, I will decide allocation of resources.

I would like to monitor following counters:

LOGICAL DISK, PHISICAL DISK, MEMORY, NETWORK INTERFACE, SWAP USAGE, PROCESSES, PROCESSOR, SYSTEM.

How it would be possible to get a graphical view as well. it would be best if I can get in on html pages. thus I can represent the same to my clients if needed.

(

In case of command line, please provide me the command and the way to extract it view/analyze the log data.

Just give to a idea; I use following command line in Windows computers:

"Logman.exe create counter PerfMon.1Min -o "C:\PerfLogs\PerfMon.1Min.blg" -f bincirc -v mmddhhmm -max 512 -c "\Memory*" "\Network Interface()*" "\Paging File()*" "\PhysicalDisk()*" "\Processor()*" "\Process(*)*" "\Server*" "\System*" -si 00:01:00"

"Logman.exe start PerfMon.1Min"

)

Thanks in advance.

1
  • Just to add I would like to monitor: LOGICAL DISK, PHISICAL DISK, MEMORY, NETWORK INTERFACE, SWAP USAGE, PROCESSES, PROCESSOR, SYSTEM, Jul 18, 2014 at 14:01

3 Answers 3

2

Sysstat is your friend, assuming you are fine with using the command line. Have a look for examples here for memory usage, and here for cpu usage.

2
  • thank you. however how it would be possible to get a graphical view as well. it would be best if i can get in on html pages. thus i can represent the same to my clients as well. Jul 18, 2014 at 20:08
  • Sysstat can log to XML as far as I know, then you just have to write a small script to translate to html.
    – noleti
    Jul 19, 2014 at 13:38
1

Have you tried Glances ? Refer this link, it has some thing in common.

System Monitoring Tools For Ubuntu

Best of luck !!

1

top has a batch mode (-b) that generates output without the screen control codes. By adding some other switches and options, you may be able to focus in on the stats you need and redirect it to a file or other program for processing.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .