快速設定流程:
-
安裝 EPEL 套件:
#yum install epel-release #yum upgrade epel-release
-
利用 YUM ,安裝 monitorix:
#yum install monitorix
-
啟動 monitorix:
#systemctl start monitorix
- 利用 firefox ,打開 http://localhost:8080 網頁即可!
-
在每一個被監控主機上,安裝 moitorix 套件:
#yum install epel-release #yum upgrade epel-release #yum install monitorix #systemctl start monitorix
-
在監控主機上,設定 multihost 項目參數:
#vim /etc/monitorix/monitorix.conf <multihost> enabled = y footer_url = y graphs_per_row = 2 remotehost_list = Server1, Server2 <remotehost_desc> 0 = http://www.example.com,/monitorix,/monitorix-cgi 1 = http://192.168.0.100:8080,/,/ </remotehost_desc> groups = n remotegroup_list = My Group <remotegroup_desc> 0 = Server1, Server2 </remotegroup_desc> </multihost>
-
在監控主機上,重新啟動 monitorix:
#systemctl restart monitorix
監控多部主機:
參考文獻:
- http://www.monitorix.org/doc-redhat.html