Monitor System Performance with Monitorix on Alibaba Cloud

Prerequisites

For this tutorial, you will need the following items:

  • A newly created Alibaba Cloud ECS instance installed with Ubuntu 16.04.
  • A static IP address 192.168.0.102 that is set up on your instance.
  • A root password that is set up to your instance.

Install Monitorix

By default, Monitorix is not available in the Ubuntu 16.04 default repository. So you will need to add the Monitorix repository to your system. Do so by following these steps:

wget http://apt.izzysoft.de/izzysoft.asc
apt-key add izzysoft.asc
echo "deb http://apt.izzysoft.de/ubuntu generic universe" | tee -a /etc/apt/sources.list
apt-get update -y
apt-get install monitorix apache2-utils -y

Configure Monitorix

First, you will need to enable authentication for Monitorix. You can do this by editing Monitorix default configuration file.

nano /etc/monitorix/monitorix.conf
title = Monitorix Server
hostname = Node1
<auth>
enabled = Y
msg = Monitorix: Restricted access
htpasswd = /var/lib/monitorix/htpasswd
</auth>
● monitorix.service - LSB: Start Monitorix daemon
Loaded: loaded (/etc/init.d/monitorix; bad; vendor preset: enabled)
Active: active (running) since Sun 2018-12-09 20:15:30 IST; 4s ago
Docs: man:systemd-sysv-generator(8)
Process: 16566 ExecStop=/etc/init.d/monitorix stop (code=exited, status=0/SUCCESS)
Process: 16577 ExecStart=/etc/init.d/monitorix start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/monitorix.service
├─16617 /usr/bin/monitorix -c /etc/monitorix/monitorix.conf -p /var/run/monitorix.pi
└─16668 monitorix-httpd listening on 808
Dec 09 20:15:29 Node1 systemd[1]: Stopped LSB: Start Monitorix daemon.
Dec 09 20:15:29 Node1 systemd[1]: Starting LSB: Start Monitorix daemon...
Dec 09 20:15:30 Node1 monitorix[16577]: ...done.
Dec 09 20:15:30 Node1 systemd[1]: Started LSB: Start Monitorix daemon.
htpasswd -d -c /var/lib/monitorix/htpasswd admin
Enter password for admin user:
New password:
Re-type new password:
Adding password for user admin

Access Monitorix Web Interface

By now, Monitorix is installed and listening on port 8080, and so now it’s time to access it through a web browser. Do this by following these steps:

Original Source

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com