Monitoring dengan Monitorix

Berikut merupakan langkah-langkah pemasangan monitorix untuk memonitor sumberdaya server myapps. OS yang digunakan adalah CentOS 6, tapi mungkin juga akan berlaku jika menggunakan CentOS versi yang lain.

yum install monitorix
vim /etc/monitorix/monitorix.conf
## baris 6 & 7
title = myapps Monitoring
hostname = myapps.co.id
<httpd_builtin>
        enabled = y
        host =
        port = 8089
        user = nobody
        group = nobody
        log_file = /var/log/monitorix-httpd
        hosts_deny =
        hosts_allow =
        autocheck_responsiveness = y
        <auth>
                enabled = y            ## baris 39 di sini
                msg = Monitorix: Restricted access
                htpasswd = /var/lib/monitorix/htpasswd
        </auth>
</httpd_builtin>
## mulai baris 76 di sini
<graph_enable>
        system          = y
        kern            = y
        proc            = y
        hptemp          = n
        lmsens          = n
        gensens         = n
        ipmi            = n
        ambsens         = n
        nvidia          = n
        disk            = n
        fs              = y
        zfs             = n
        du              = y
        net             = y
        netstat         = y
        tc              = n
        libvirt         = n
        process         = n
        serv            = y
        mail            = n
        port            = n
        user            = y
        ftp             = n
        apache          = y
        nginx           = n
        lighttpd        = n
        mysql           = n
        mongodb         = n
        varnish         = n
        pagespeed       = n
        squid           = n
        nfss            = n
        nfsc            = n
        bind            = n
        unbound         = n
        ntp             = y
        chrony          = n
        fail2ban        = n
        icecast         = n
        raspberrypi     = n
        phpapc          = n
        memcached       = n
        phpfpm          = n
        apcupsd         = n
        nut             = n
        wowza           = n
        int             = n
        verlihub        = n
</graph_enable>
htpasswd -c /var/lib/monitorix/htpasswd myapps
/etc/init.d/monitorix start
chkconfig --list | grep monitorix
chkconfig monitorix on
vim /etc/sysconfig/iptables
-A INPUT -s 10.8.0.0/24 -p tcp -m tcp --dport 8089 -j ACCEPT
/etc/init.d/iptables restart