List of useful Linux system monitoring tools

Technical, Technology

c.f. http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html

  1. top
  2. vmstat
  3. w
  4. uptime
  5. ps
  6. free
  7. iostat
  8. sar
  9. mpstat
  10. pmap
  11. netstat
  12. ss
  13. iptraf
  14. tcpdump
  15. strace
  16. Look into /proc
  17. Nagios
  18. Cacti
  19. KDE System Guard
  20. Gnome System Monitor

Quick Resolution – slow network using RTL8111/RTL8168B in Ubuntu 10.04 LTS

Technical

The slowness is due to the use of wrong kernel module (detected by the OS) for RTL8169.  To verify, issue a command:

sudo lsmod

We should be able to see a line starting with r8169.

Alternatively, another command could be used to generate the hardware profile of your machine:

sudo lshw -html > somefile.html

In that case, the resolution is simple.  Go to Realtek download site to get the appropriate Linux driver.  Expand it and follow the README inside.

After reloading the driver, use lsmod to verify if there is a line starting with r8168.

HOWTO: Renew NIC MAC address in Ubuntu Linux for copied VMware guest image

Technical

When a VMware image is copied, VMware server (and other VMware products) will ask if the image is copied or moved.  For any reasons, if you answered “copied”, then the MAC address for the virtual NIC will be changed.

In Ubuntu (I am using 10.04.2 LTS Lucid), look for a file named /etc/udev/rules.d/70-persistent-net.rules and edit the corresponding entries for the “added” NIC (this is because the OS just thought you add a new NIC). e.g.

Look for:

SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0c:29:26:f5:f1″, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1

and change it to:

SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0c:29:26:f5:f1″, ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0