Monitoring

From Systerserver

Jump to: navigation, search

Contents

various

  • vmstat 10 10
  • cpufrequtils
  • ps auxf | sort -nr -k 4 | head -10 (top 10 memory consuming processes)
  • ps auxf | sort -nr -k 3 | head -10 (top 10 processor consuming processes)

smartmontools

hdparm

  • hdparm -Tt /dev/sda

iotop

  • iostat -o
  • iostat -Co (to not clear the screen)

temperature

  • of the disks: hddtemp, ie hddtemp /dev/sda
  • of the motherboard: cat /proc/acpi/thermal_zone/TZ*/temperature
  • of the processor: same as above.
  • first run "sensors-detect", then run "sensors"
  • installed hddtemp, lm-sensors, mbmon and xsensors (gui for lm-sensors)

sysstat

  • user sar (system activity reporter) to view collected stats
      sar -u 2 5
             Report  CPU  utilization  for  each  2 seconds. 5 lines are dis-
             played.
      sar -r -n DEV -f /var/log/sysstat/sa16
             Display memory, swap space and network statistics saved in daily
             data file 'sa16'.
      sar -A
             Display all the statistics saved in current daily data file.
  • install isag (interactive system activity grapher) to view stats in a graph
  • iostat (comes with sysstat install)

acct

  • process accounting
  • lastcomm

networking

  • ethtool - has replace mii-tool
  • mii-tool - for setting the speed and duplex of your NIC card
  • nethogs

monit en munin

  • monit for monitoring and triggering; munin for the graphs

intrusion deetection

  • AIDE
  • afick

network

  • netstat
  • ss
  • ngrep
  • iptraf
  • ethtool -t eth0 (test)
  • ethtool -i eth0 (driver information)
  • ethtool -S eth0 (gather statistics)
  • ethtool -p eth0 15 (makes your nic blink for 15 seconds, usefull if you have two or more nics and don know which is which)
  • arp -n

diagnostic tools

  • cpuburn, is a stress test
  • to see if you have a faulty CPU, power supply, or cooling system
  • scan a windows pc for malware:
  • boot a linux live cd and install avast4workstation, or clamav
  • make a kavrescue boot disk

our Axis 210 network camera

  • 00:40:8C:79:91
  • default ip 192.168.0.90