libreNMS install for Ubuntu 20.04

libreNMS install for Ubuntu 20.04

728x90

https://docs.librenms.org/Installation/Install-LibreNMS/

위에 잘 나와 있다 자신의 환경에 맞춰 설정 하면 된다.(ubuntu 20.04, Centos8, Debian 10)

모든 작업 다 마추고 설정 화면으로 들어가자.

http://localhost

접속하면 위와 같이 화면을 볼수 있다.

mysql 아까 암호 입력 했던걸 입력 하고 다음

build database 눌러서 다음

계정 생성 ~

계정 생성

문제 해결 페이지 들어가서 나머지 문제 해결

오류가 좀 있긴 한데.. 디바이스 추가 하면

http://localhost/addhqst

디바이스 추가

정상 작동 된다.

정상적으로 데이터들이 올라온다.

장비 상태 점검은

sudo su - librenms

root 권한으로 안된다.

/opt/librenms

$ ./validate.php

====================================

Component | Version

--------- | -------

LibreNMS | 21.9.0-79-g436487f5f

DB Schema | 2021_25_01_0129_isis_adjacencies_nullable (221)

PHP | 7.4.3

Python | 3.8.10

MySQL | 10.3.31-MariaDB-0ubuntu0.20.04.1

RRDTool | 1.7.2

SNMP | NET-SNMP 5.8

====================================

[OK] Composer Version: 2.1.9

[OK] Dependencies up-to-date.

[OK] Database connection successful

[FAIL] Database: incorrect column (notifications/datetime)

[FAIL] Database: incorrect column (users/created_at)

[FAIL] We have detected that your database schema may be wrong

[FIX]:

Run the following SQL statements to fix it

SQL Statements:

SET TIME_ZONE='+00:00';

ALTER TABLE `notifications` CHANGE `datetime` `datetime` timestamp NOT NULL DEFAULT '1970-01-02 00:00:00' ;

ALTER TABLE `users` CHANGE `created_at` `created_at` timestamp NOT NULL DEFAULT '1970-01-02 00:00:01' ;

에러 난것 처럼 mysql 들어가서 위 명령어 쳐주면 정상적으로 작동 된다.

MariaDB [librenms]> SET TIME_ZONE='+00:00';

Query OK, 0 rows affected (0.000 sec)

MariaDB [librenms]> ALTER TABLE `notifications` CHANGE `datetime` `datetime` timestamp NOT NULL DEFAULT '1970-01-02 00:00:00' ;

Query OK, 0 rows affected (0.001 sec)

Records: 0 Duplicates: 0 Warnings: 0

MariaDB [librenms]> ALTER TABLE `users` CHANGE `created_at` `created_at` timestamp NOT NULL DEFAULT '1970-01-02 00:00:01' ;

Query OK, 0 rows affected (0.001 sec)

Records: 0 Duplicates: 0 Warnings: 0

MariaDB [librenms]> FLUSH PRIVILEGES;

Query OK, 0 rows affected (0.000 sec)

MariaDB [librenms]> quit

Bye

$ cd /opt/librenms/

librenms@librenms-virtual-machine:/opt/librenms$ ./validate.php

====================================

Component | Version

--------- | -------

LibreNMS | 21.9.0-79-g436487f5f

DB Schema | 2021_25_01_0129_isis_adjacencies_nullable (221)

PHP | 7.4.3

Python | 3.8.10

MySQL | 10.3.31-MariaDB-0ubuntu0.20.04.1

RRDTool | 1.7.2

SNMP | NET-SNMP 5.8

====================================

[OK] Composer Version: 2.1.9

[OK] Dependencies up-to-date.

[OK] Database connection successful

[OK] Database schema correct

모든 작업이 끝!~

728x90

from http://algo79.tistory.com/848 by ccl(A) rewrite - 2021-10-15 12:00:40