Changes between Version 2 and Version 3 of Cnbp2019/Agenda/MonitoringLab
- Timestamp:
- Feb 4, 2019, 9:56:42 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Cnbp2019/Agenda/MonitoringLab
v2 v3 11 11 === Installation of MariaDB === 12 12 13 LibreNMS is not fully compatible with MySQL strict mode, for now, please disable this after mysql is installed. 13 Add MariaDB repository on to the ubuntu system 14 15 `sudo apt-get install software-properties-common` 16 17 Run the command below to add Repository Key to the system 18 19 `sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8` 20 21 Once the PGP key is imported, proceed to add repository URL to your Ubuntu 18.04 server: 22 23 `sudo add-apt-repository 'deb [arch=amd64] http://mirror.zol.co.zw/mariadb/repo/10.3/ubuntu bionic main` 24 25 then Install MariaDB 26 27 {{{#!bash 28 sudo apt update 29 sudo apt -y install mariadb-server mariadb-client 30 }}} 31 32 You will be prompted to provide MariaDB root password. Enter Class password and Press `<Ok>` and confirm the new password to install MariaDB. 33 34 Confirm MariaDB version and successful connectivity by `mysql –u root -p` 35 36 Next, LibreNMS is not fully compatible with MySQL strict mode, for now, please disable this after mysql is installed. 14 37 15 38 ` sudo vim /etc/mysql/mariadb.cnf ` 16 39 17 40 Within the ` [mysqld]` section please add: 18 {{{#! sh41 {{{#!cfg 19 42 innodb_file_per_table=1 20 43 sql-mode="" … … 27 50 28 51 `mysql –u root –p` 29 {{{#! php52 {{{#!mysql 30 53 MariaDB [(none)]> CREATE DATABASE librenms CHARACTER SET utf8 COLLATE utf8_unicode_ci; 31 54 MariaDB [(none)]> CREATE USER 'librenms'@'localhost' IDENTIFIED BY 'Strongpassword'; … … 49 72 it should give you a similar output as below 50 73 51 {{{#! sh74 {{{#!TXT 52 75 PHP 7.2.8 (cli) (built: Jul 17 2018 09:50:46) ( NTS ) 53 76 Copyright (c) 1997-2018 The PHP Group … … 64 87 65 88 Change date.timezone under `[Date]` section: 66 {{{#! php89 {{{#!cfg 67 90 [Date] 68 91 ; Defines the default timezone used by the date functions … … 96 119 97 120 it will giva an output like, 98 {{{#! sh121 {{{#!TXT 99 122 librenms:x:997:996::/opt/librenms:/bin/sh 100 123 }}} … … 117 140 118 141 output: 119 {{{#! sh142 {{{#!TXT 120 143 Cloning into 'librenms'... 121 144 remote: Counting objects: 130428, done. … … 127 150 }}} 128 151 129 Move the folder librenms to /opt152 Next, move the folder librenms to /opt 130 153 131 154 `sudo mv librenms/ /opt/` … … 176 199 Let’s create the !VirtualHost definition for Nginx to be used by LibreNMS. 177 200 `sudo vim /etc/nginx/conf.d/librenms.conf` 178 {{{#! apache201 {{{#!nginx 179 202 server { 180 203 listen 80; 181 server_name librenms. example.com;204 server_name librenms.instXY.ac.lk; 182 205 root /opt/librenms/html; 183 206 index index.php; … … 209 232 210 233 output: 211 {{{#! sh234 {{{#!TXT 212 235 nginx: the configuration file /etc/nginx/nginx.conf syntax is ok 213 236 nginx: configuration file /etc/nginx/nginx.conf test is successful … … 227 250 Now open your web browser and start the installer: 228 251 229 http://librenms.example.com/install.php 252 http://librenms.instXY.ac.lk/install.php 253 254 Next, LibreNMS WebUI configurations