Monitorix untuk Memonitor Kinerja Server

Monixtorix adalah sebuah alat untuk memantau kinerja/performa server. Saya menemukan ini ketika mengintip pekerjaan mbah Suro Dhemit saat di BLC Telkom Klaten beberapa waktu lalu, saat saya mengikuti diklat Guru IT/KKPI Ayo Guru Bisa selama seminggu (8-13 Agustus 2016). Menurut saya ini menarik, dan rasanya perlu juga saya pasang di server sekolah. Berikut langkah-langkahnya :

  cd ~
  wget -c -t 0 http://www.monitorix.org/monitorix-3.8.1.tar.gz
  • Ekstrak berkas tersebut:
  tar -xvzf monitorix-3.8.1.tar.gz
  cd monitorix-3.8.1
  • Seperti yang tertulis di berkas README-nya sebagai berikut
......
REQUIREMENTS
===============================================================================
Monitorix requires some others packages to be installed that your GNU/Linux
distribution may or may not have:

- Perl 
- Perl-CGI
- Perl-libwww
- Perl-MailTools
- Perl-MIME-Lite
- Perl-DBI
- Perl-XML-Simple
- Perl-Config-General
- Perl-HTTP-Server-Simple
- perl-IO-Socket-SSL
- RRDtool and its Perl bindings (perl-rrdtool or rrdtool-perl)
- (Optional) a CGI capable Web server (Apache, Nginx, lighttpd, etc.)
.......

Maka kita perlu menginstall ketergantungan tersebut :

  sudo apt-get install rrdtool perl libwww-perl libmailtools-perl\
   libmime-lite-perl librrds-perl libdbi-perl libxml-simple-perl\
   libhttp-server-simple-perl libconfig-general-perl libio-socket-ssl-perl
  • Setelah ketergantungan tersebut terinstall, selanjutnya kita dapat menginstall monitorix. Nah, karena saya menggunakan Ubuntu 14.04 Server yang masih keluarga debian, maka perintah yang saya gunakan untuk menginstall adalah :
  sudo make install-debian-all

Outputnya di mesin saya sebagai berikut :

Run one of the following:
  make install-systemd-all (systemd based systems)
  make install-upstart-all (upstart based systems)
  make install-debian-all (legacy debian sysv based systems)
  make install-redhat-all (legacy redhat sysv based systems)

Default targets may be overridden on the shell so
check out the Makefile for specific rules.
Installing script and modules...
install -p -d "/usr/bin"
install -p -m755 monitorix "/usr/bin/monitorix"
install -p -d "/var/lib/monitorix"
install -p -d "/var/lib/monitorix"
install -p -d "/var/lib/monitorix/www"
install -p -d "/var/lib/monitorix/www/cgi"
install -p -dm777 "/var/lib/monitorix/www/imgs"
install -p -m755 monitorix.cgi "/var/lib/monitorix/www/cgi/monitorix.cgi"
install -p -m644 logo_bot.png "/var/lib/monitorix/www/logo_bot.png"
install -p -m644 logo_top.png "/var/lib/monitorix/www/logo_top.png"
install -p -m644 monitorixico.png "/var/lib/monitorix/www/monitorixico.png"
install -p -d "/etc/monitorix"
install -p -m644 monitorix.conf "/etc/monitorix/monitorix.conf"
install -p -d "/etc/monitorix/conf.d"
install -p -d "/etc/logrotate.d/"
install -p -m644 docs/monitorix.logrotate "/etc/logrotate.d/monitorix"
install -p -d "/etc/sysconfig"
install -p -m644 docs/monitorix.sysconfig "/etc/sysconfig/monitorix"
install -p -d "/usr/lib/monitorix"
install -p -m644 lib/apache.pm "/usr/lib/monitorix/apache.pm"
install -p -m644 lib/apcupsd.pm "/usr/lib/monitorix/apcupsd.pm"
install -p -m644 lib/bind.pm "/usr/lib/monitorix/bind.pm"
install -p -m644 lib/disk.pm "/usr/lib/monitorix/disk.pm"
install -p -m644 lib/du.pm "/usr/lib/monitorix/du.pm"
install -p -m644 lib/emailreports.pm "/usr/lib/monitorix/emailreports.pm"
install -p -m644 lib/fail2ban.pm "/usr/lib/monitorix/fail2ban.pm"
install -p -m644 lib/fs.pm "/usr/lib/monitorix/fs.pm"
install -p -m644 lib/ftp.pm "/usr/lib/monitorix/ftp.pm"
install -p -m644 lib/hptemp.pm "/usr/lib/monitorix/hptemp.pm"
install -p -m644 lib/HTTPServer.pm "/usr/lib/monitorix/HTTPServer.pm"
install -p -m644 lib/icecast.pm "/usr/lib/monitorix/icecast.pm"
install -p -m644 lib/int.pm "/usr/lib/monitorix/int.pm"
install -p -m644 lib/kern.pm "/usr/lib/monitorix/kern.pm"
install -p -m644 lib/libvirt.pm "/usr/lib/monitorix/libvirt.pm"
install -p -m644 lib/lighttpd.pm "/usr/lib/monitorix/lighttpd.pm"
install -p -m644 lib/lmsens.pm "/usr/lib/monitorix/lmsens.pm"
install -p -m644 lib/mail.pm "/usr/lib/monitorix/mail.pm"
install -p -m644 lib/memcached.pm "/usr/lib/monitorix/memcached.pm"
install -p -m644 lib/Monitorix.pm "/usr/lib/monitorix/Monitorix.pm"
install -p -m644 lib/mysql.pm "/usr/lib/monitorix/mysql.pm"
install -p -m644 lib/net.pm "/usr/lib/monitorix/net.pm"
install -p -m644 lib/netstat.pm "/usr/lib/monitorix/netstat.pm"
install -p -m644 lib/nfsc.pm "/usr/lib/monitorix/nfsc.pm"
install -p -m644 lib/nfss.pm "/usr/lib/monitorix/nfss.pm"
install -p -m644 lib/nginx.pm "/usr/lib/monitorix/nginx.pm"
install -p -m644 lib/ntp.pm "/usr/lib/monitorix/ntp.pm"
install -p -m644 lib/nut.pm "/usr/lib/monitorix/nut.pm"
install -p -m644 lib/nvidia.pm "/usr/lib/monitorix/nvidia.pm"
install -p -m644 lib/pagespeed.pm "/usr/lib/monitorix/pagespeed.pm"
install -p -m644 lib/phpapc.pm "/usr/lib/monitorix/phpapc.pm"
install -p -m644 lib/port.pm "/usr/lib/monitorix/port.pm"
install -p -m644 lib/process.pm "/usr/lib/monitorix/process.pm"
install -p -m644 lib/proc.pm "/usr/lib/monitorix/proc.pm"
install -p -m644 lib/raspberrypi.pm "/usr/lib/monitorix/raspberrypi.pm"
install -p -m644 lib/serv.pm "/usr/lib/monitorix/serv.pm"
install -p -m644 lib/squid.pm "/usr/lib/monitorix/squid.pm"
install -p -m644 lib/system.pm "/usr/lib/monitorix/system.pm"
install -p -m644 lib/traffacct.pm "/usr/lib/monitorix/traffacct.pm"
install -p -m644 lib/user.pm "/usr/lib/monitorix/user.pm"
install -p -m644 lib/varnish.pm "/usr/lib/monitorix/varnish.pm"
install -p -m644 lib/verlihub.pm "/usr/lib/monitorix/verlihub.pm"
install -p -m644 lib/wowza.pm "/usr/lib/monitorix/wowza.pm"
install -p -m644 lib/zfs.pm "/usr/lib/monitorix/zfs.pm"
install -p -d "/var/lib/monitorix/reports"
install -p -m644 reports/ca.html "/var/lib/monitorix/reports/ca.html"
install -p -m644 reports/de.html "/var/lib/monitorix/reports/de.html"
install -p -m644 reports/en.html "/var/lib/monitorix/reports/en.html"
install -p -m644 reports/it.html "/var/lib/monitorix/reports/it.html"
install -p -m644 reports/nl_NL.html "/var/lib/monitorix/reports/nl_NL.html"
install -p -m644 reports/pl.html "/var/lib/monitorix/reports/pl.html"
install -p -m644 reports/zh_CN.html "/var/lib/monitorix/reports/zh_CN.html"
install -p -d "/var/lib/monitorix/usage"
Installing manpages...
install -p -d "/usr/share/man/man5"
install -p -m644 man/man5/monitorix.conf.5 "/usr/share/man/man5/monitorix.conf.5"
install -p -d "/usr/share/man/man8"
gzip -9 "/usr/share/man/man5/monitorix.conf.5"
install -p -m644 man/man8/monitorix.8 "/usr/share/man/man8/monitorix.8"
gzip -9 "/usr/share/man/man8/monitorix.8"
Installing docs...
install -p -d "/usr/share/doc/monitorix"
install -p -m755 docs/monitorix-alert.sh "/usr/share/doc/monitorix/monitorix-alert.sh"
install -p -m755 docs/htpasswd.pl "/usr/share/doc/monitorix/htpasswd.pl"
install -p -m644 Changes "/usr/share/doc/monitorix/Changes"
install -p -m644 COPYING "/usr/share/doc/monitorix/COPYING"
install -p -m644 README "/usr/share/doc/monitorix/README"
install -p -m644 README.FreeBSD "/usr/share/doc/monitorix/README.FreeBSD"
install -p -m644 README.nginx "/usr/share/doc/monitorix/README.nginx"
install -p -m644 README.OpenBSD "/usr/share/doc/monitorix/README.OpenBSD"
install -p -m644 README.NetBSD "/usr/share/doc/monitorix/README.NetBSD"
install -p -m644 docs/monitorix-lighttpd.conf "/usr/share/doc/monitorix/monitorix-lighttpd.conf"
install -p -m644 docs/monitorix-apache.conf "/usr/share/doc/monitorix/monitorix-apache.conf"
Installing debian sysv service...
install -p -d "/etc/init.d"
install -p -m755 docs/monitorix-deb.init "/etc/init.d/monitorix"
install -p -d "/etc/monitorix/conf.d"
install -p -m644 docs/debian.conf "/etc/monitorix/conf.d/00-debian.conf"
  • Proses install selesai, sekarang tinggal saya jalankan program monitorix tersebut :
  sudo service monitorix start
  • Selanjutnya monitorix dapat dinikmati melalui http://alamat-ip-server:8080/monitorix
  • Supaya Monitorix berjalan otomatis ketika server direstart atau dinyalakan, maka saya perlu menjalankan perintah berikut :
  sudo update-rc.d -f monitorix defaults
  sudo update-rc.d -f monitorix enable
  • Selesai.

~~DISQUS~~


1)
Saya lebih suka menginstall dari berkas tarballnya.
  • linux/Monitorix.untuk.Memonitor.Kinerja.Server
  • Terakhir diubah: 10 bulan yang lalu
  • (Perubahan eksternal)