Monitoring

From Systerserver

Jump to: navigation, search

Contents

smartmontools

hddtemp

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

zabbix

  • on debian/ubuntu use aptitude to install zabbix (zabbix-server-mysql, zabbix-agent, zabbix-frontend-php (for the web gui))
  • however this installed 1.6.4 and not 1.8 which came out in dec 2009
  • it needs apache and mysql
  • the installation includes dependencies, creatings a user and group zabbix and a database plus populating it
  • edit /etc/services and add: zabbix_agent 10050/tcp, (new line) zabbix_trap 10051/tcp
  • timeserver can be handy
  • edit /etc/php5/apache2/php.ini -> max_execution_time = 300 and date.timezone = Europe/Amsterdam
  • the frontend is installed in /usr/share/zabbix
  • you can make a /home/zabbix/public_html or /var/www/zabbix directory
  • into this you cp everything from /usr/share/zabbix
  • then you need to edit /etc/apache2/sites-available and /etc/apache2/sites-enabled sothat the webserver knows where to look for the zabbix web interface
  • http://www.zabbix.com/wiki/howto/install/debian/zabbix18_on_debian_50
  • create database zabbix character set utf8;
  • grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix';
  • flush privileges;
  • exit;
  • cat mysql.sql | mysql -u zabbix -p zabbix
  • cat data.sql | mysql -u<username> -p zabbix
  • have gotten very fed-up with all the problems installing zabbix. if the documentation had been correct and up to date i may have been less feb up. but so many inconsistencies. it gets my thumbes down. back to nagios.

login problem: admin/zabbix and not admin/<blank> as mentioned on the site!!

make gcc

php-net-socket

php5-gd

php5-mysql

libcurl3 libcurl4-openssl-dev libmysqlclient15-dev

jabber libiksemel3 libiksemel-dev libiksemel-utils

libnet-snmp-perl libsnmp-dev