Changes between Version 2 and Version 3 of Cnbp2019/Agenda/MonitoringLab


Ignore:
Timestamp:
Feb 4, 2019, 9:56:42 AM (5 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Cnbp2019/Agenda/MonitoringLab

    v2 v3  
    1111=== Installation of MariaDB ===
    1212
    13 LibreNMS is not fully compatible with MySQL strict mode, for now, please disable this after mysql is installed.
     13Add MariaDB repository on to the ubuntu system
     14
     15`sudo apt-get install software-properties-common`
     16
     17Run 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
     21Once 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
     25then Install MariaDB
     26
     27{{{#!bash
     28sudo apt update
     29sudo apt -y install mariadb-server mariadb-client
     30}}}
     31
     32You will be prompted to provide MariaDB root password. Enter Class password and Press `<Ok>`  and confirm the new password to install MariaDB.
     33
     34Confirm MariaDB version and successful connectivity by `mysql –u root -p`
     35
     36Next, LibreNMS is not fully compatible with MySQL strict mode, for now, please disable this after mysql is installed.
    1437
    1538` sudo vim /etc/mysql/mariadb.cnf `
    1639
    1740Within the ` [mysqld]` section please add:
    18 {{{#!sh
     41{{{#!cfg
    1942innodb_file_per_table=1
    2043sql-mode=""
     
    2750
    2851`mysql –u root –p`
    29 {{{#!php
     52{{{#!mysql
    3053MariaDB [(none)]> CREATE DATABASE librenms CHARACTER SET utf8 COLLATE utf8_unicode_ci;
    3154MariaDB [(none)]> CREATE USER 'librenms'@'localhost' IDENTIFIED BY 'Strongpassword';
     
    4972it should give you a similar output as below
    5073
    51 {{{#!sh
     74{{{#!TXT
    5275PHP 7.2.8 (cli) (built: Jul 17 2018 09:50:46) ( NTS )
    5376Copyright (c) 1997-2018 The PHP Group
     
    6487
    6588Change date.timezone under `[Date]` section:
    66 {{{#!php
     89{{{#!cfg
    6790[Date]
    6891; Defines the default timezone used by the date functions
     
    96119
    97120it will giva an output like,
    98 {{{#!sh
     121{{{#!TXT
    99122librenms:x:997:996::/opt/librenms:/bin/sh
    100123}}}
     
    117140
    118141output:
    119 {{{#!sh
     142{{{#!TXT
    120143Cloning into 'librenms'...
    121144remote: Counting objects: 130428, done.
     
    127150}}}
    128151
    129 Move the folder librenms to /opt
     152Next, move the folder librenms to /opt
    130153
    131154`sudo mv librenms/ /opt/`
     
    176199Let’s create the !VirtualHost definition for Nginx to be used by LibreNMS.
    177200`sudo vim /etc/nginx/conf.d/librenms.conf`
    178 {{{#!apache
     201{{{#!nginx
    179202server {
    180203 listen      80;
    181  server_name librenms.example.com;
     204 server_name librenms.instXY.ac.lk;
    182205 root        /opt/librenms/html;
    183206 index       index.php;
     
    209232
    210233output:
    211 {{{#!sh
     234{{{#!TXT
    212235nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    213236nginx: configuration file /etc/nginx/nginx.conf test is successful
     
    227250Now open your web browser and start the installer:
    228251
    229 http://librenms.example.com/install.php
     252http://librenms.instXY.ac.lk/install.php
     253
     254Next, LibreNMS WebUI configurations