iT邦幫忙

1

librenms 安裝請教

ds7859 2018-05-17 17:40:2112108 瀏覽
  • 分享至 

  • xImage

各位好,
最近在測試librenms這套監控系統,出現了一些問題,想請有經驗的大大能幫忙,
我是照官方說明安裝 : https://docs.librenms.org/#Installation/Installation-Ubuntu-1604-Nginx/

但最後連線至web時出現
Error: Missing dependencies! Run the following command to fix:
./scripts/composer_wrapper.php install --no-dev

我照著下指令後卻出現
Do not run Composer as root/super user! See https://getcomposer.org/root for details

LibreNMS\ComposerHelper::preInstall
Loading composer repositories with package information
Installing dependencies from lock file
Your requirements could not be resolved to an installable set of packages.

最後我執行./validate.php
錯誤如下,

Component Version
LibreNMS 1.39-67-gedab606
DB Schema ?
PHP 7.0.30-0ubuntu0.16.04.1
MySQL ?
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3
====================================

[FAIL] config.php does not exist, please copy config.php.default to config.php

已卡關很久,請各位大大幫幫忙,感激不盡。

2018/5/21更新
已經照底下的影片重新安裝已排除上面問題,供各位參考
https://www.youtube.com/watch?v=Fc9dGUiDCe0

但現在又發生連到網頁時變成以下情形
https://ithelp.ithome.com.tw/upload/images/20180521/20042899Gf1Dcf2VGG.png

請問有先進大大有遇過嗎?

Component Version
LibreNMS 1.39-69-g70857e5
DB Schema 250
PHP 7.0.30-0ubuntu0.16.04.1
MySQL 10.0.34-MariaDB-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3
====================================

[OK] Composer Version: 1.6.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] You have not added any devices yet.
[FIX] You can add a device in the webui or with ./addhost.php
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX] You can fix this with ./scripts/github-remove
Modified Files:
rrd/.gitignore

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
zivtor
iT邦新手 4 級 ‧ 2018-05-18 10:36:10

新增config.php

nano /opt/librenms/config.php

把下面的內容複製貼上至config.php

<?php

$config['db_host'] = 'localhost';
$config['db_port'] = '3306';
$config['db_user'] = 'librenmsuser';
$config['db_pass'] = 'librenmspassword';
$config['db_name'] = 'librenmsdb';
$config['db_socket'] = '';
$config['user'] = 'librenms';
$config['snmp']['community'] = array("public");
$config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth
$config['fping'] = "/usr/sbin/fping";

重跑一次

./scripts/composer_wrapper.php install --no-dev
./validate.php

我要發表回答

立即登入回答