差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
tech:librenms [2021/01/17 16:54] – 命令改用 cli jonathan | tech:librenms [2024/02/20 12:13] (目前版本) – [設定告警通知] jonathan | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== CentOS7 安裝 LibreNMS ====== | + | ====== |
+ | <note tip> | ||
+ | 如果要以 Docker 方式進行安裝, | ||
+ | </ | ||
+ | |||
+ | * Ubuntu 20.04 LTS | ||
* CentOS Linux release 7.5.1804 (Core) | * CentOS Linux release 7.5.1804 (Core) | ||
- | ===== 安裝程序 ===== | + | {{tabinclude>tech:librenms:ubuntu20_04, tech:librenms:centos7}} |
- | - 安裝需要的套件 < | + | |
- | yum install epel-release | + | |
- | rpm -Uvh https:// | + | |
- | yum install composer cronie fping git ImageMagick jwhois mariadb mariadb-server mtr python36 MySQL-python net-snmp net-snmp-utils nginx nmap php72w php72w-cli php72w-common php72w-curl php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-process php72w-snmp php72w-xml php72w-zip python-memcached rrdtool | + | |
- | </ | + | |
- | - 建立 librenms 用戶< | + | |
- | useradd librenms -d / | + | |
- | usermod -a -G librenms nginx | + | |
- | </ | + | |
- | sync; | + | |
- | </ | + | |
- | - 下載 LibreNMS < | + | |
- | cd /opt | + | |
- | composer create-project --no-dev --keep-vcs librenms/ | + | |
- | </ | + | |
- | - 出現異常與警告訊息, | + | |
- | cd / | + | |
- | ./ | + | |
- | </ | + | |
- | - 建立 DB Server< | + | |
- | systemctl start mariadb | + | |
- | mysql -u root | + | |
- | </ | + | |
- | CREATE DATABASE librenms CHARACTER SET utf8 COLLATE utf8_unicode_ci; | + | |
- | CREATE USER ' | + | |
- | GRANT ALL PRIVILEGES ON librenms.* TO ' | + | |
- | FLUSH PRIVILEGES; | + | |
- | exit | + | |
- | </ | + | |
- | vi / | + | |
- | </ | + | |
- | [mysqld] | + | |
- | datadir=/ | + | |
- | : | + | |
- | : | + | |
- | # instructions in http:// | + | |
- | innodb_file_per_table=1 | + | |
- | sql-mode="" | + | |
- | lower_case_table_names=0 | + | |
- | : | + | |
- | </ | + | |
- | systemctl enable mariadb | + | |
- | systemctl restart mariadb | + | |
- | </ | + | |
- | - 建立 Web Server < | + | |
- | vi / | + | |
- | </ | + | |
- | : | + | |
- | ;user = apache | + | |
- | user = nginx | + | |
- | ; RPM: Keep a group allowed to write in log dir. | + | |
- | group = apache | + | |
- | + | ||
- | ; The address on which to accept FastCGI requests. | + | |
- | ; Valid syntaxes are: | + | |
- | ; ' | + | |
- | ; a specific port; | + | |
- | ; ' | + | |
- | ; a specific port; | + | |
- | ; ' | + | |
- | ; (IPv6 and IPv4-mapped) on a specific port; | + | |
- | ; '/ | + | |
- | ; Note: This value is mandatory. | + | |
- | ;listen = 127.0.0.1: | + | |
- | listen = / | + | |
- | + | ||
- | ; Set listen(2) backlog. | + | |
- | ; Default Value: 511 (-1 on FreeBSD and OpenBSD) | + | |
- | ; | + | |
- | + | ||
- | ; Set permissions for unix socket, if one is used. In Linux, read/ | + | |
- | ; permissions must be set in order to allow connections from a web server. Many | + | |
- | ; BSD-derived systems allow connections regardless of permissions. | + | |
- | ; Default Values: user and group are set as the running user | + | |
- | ; mode is set to 0660 | + | |
- | ; | + | |
- | ; | + | |
- | ; | + | |
- | listen.owner = nginx | + | |
- | listen.group = nginx | + | |
- | listen.mode = 0660 | + | |
- | + | ||
- | ; When POSIX Access Control Lists are supported you can set them using | + | |
- | ; these options, value is a comma separated list of user/group names. | + | |
- | : | + | |
- | </ | + | |
- | systemctl enable php-fpm | + | |
- | systemctl restart php-fpm | + | |
- | </ | + | |
- | - 設定 nginx < | + | |
- | vi / | + | |
- | </ | + | |
- | server | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | + | ||
- | | + | |
- | gzip on; | + | |
- | | + | |
- | | + | |
- | try_files $uri $uri/ / | + | |
- | } | + | |
- | | + | |
- | try_files $uri $uri/ / | + | |
- | } | + | |
- | | + | |
- | include fastcgi.conf; | + | |
- | fastcgi_split_path_info ^(.+\.php)(/ | + | |
- | fastcgi_pass unix:/ | + | |
- | } | + | |
- | | + | |
- | deny all; | + | |
- | } | + | |
- | } | + | |
- | </file>< | + | |
- | systemctl enable nginx | + | |
- | systemctl restart nginx | + | |
- | </ | + | |
- | - 建立 SELinux 與 Allow fping< | + | |
- | yum install policycoreutils-python | + | |
- | + | ||
- | semanage fcontext -a -t httpd_sys_content_t '/ | + | |
- | semanage fcontext -a -t httpd_sys_rw_content_t '/ | + | |
- | restorecon -RFvv / | + | |
- | semanage fcontext -a -t httpd_sys_content_t '/ | + | |
- | semanage fcontext -a -t httpd_sys_rw_content_t '/ | + | |
- | restorecon -RFvv / | + | |
- | semanage fcontext -a -t httpd_sys_content_t '/ | + | |
- | semanage fcontext -a -t httpd_sys_rw_content_t '/ | + | |
- | restorecon -RFvv / | + | |
- | semanage fcontext -a -t httpd_sys_content_t '/ | + | |
- | semanage fcontext -a -t httpd_sys_rw_content_t '/ | + | |
- | restorecon -RFvv / | + | |
- | setsebool -P httpd_can_sendmail=1 | + | |
- | setsebool -P httpd_execmem 1 | + | |
- | + | ||
- | vi / | + | |
- | </ | + | |
- | module http_fping 1.0; | + | |
- | + | ||
- | require { | + | |
- | type httpd_t; | + | |
- | class capability net_raw; | + | |
- | class rawip_socket { getopt create setopt write read }; | + | |
- | } | + | |
- | + | ||
- | # | + | |
- | allow httpd_t self:capability net_raw; | + | |
- | allow httpd_t self: | + | |
- | </ | + | |
- | checkmodule -M -m -o http_fping.mod / | + | |
- | semodule_package -o / | + | |
- | semodule -i / | + | |
- | </ | + | |
- | - 設定 firewall< | + | |
- | firewall-cmd --zone public --add-service http | + | |
- | firewall-cmd --permanent --zone public --add-service http | + | |
- | firewall-cmd --zone public --add-service https | + | |
- | firewall-cmd --permanent --zone public --add-service https | + | |
- | < | + | |
- | - 設定 snmpd < | + | |
- | cp /opt/librenms/ | + | |
- | + | ||
- | vi / | + | |
- | </ | + | |
- | # Change RANDOMSTRINGGOESHERE to your preferred SNMP community string | + | |
- | #com2sec readonly | + | |
- | com2sec readonly | + | |
- | : | + | |
- | # | + | |
- | syslocation Taipei, Taiwan | + | |
- | #syscontact Your Name < | + | |
- | syscontact Jonathan Tsai < | + | |
- | : | + | |
- | </ | + | |
- | curl -o / | + | |
- | chmod +x / | + | |
- | systemctl enable snmpd | + | |
- | systemctl restart snmpd | + | |
- | </ | + | |
- | - 定義 cron table < | + | |
- | cp / | + | |
- | </ | + | |
- | - 設定定時清 log < | + | |
- | cp / | + | |
- | </ | + | |
- | - 設定權限 < | + | |
- | chown -R librenms:librenms / | + | |
- | setfacl -d -m g::rwx / | + | |
- | setfacl -R -m g::rwx / | + | |
- | </ | + | |
- | - 至網頁介面進行安裝 網址 Exp. http:// | + | |
- | - 如果這時候無法出現安裝畫面, | + | |
- | vi / | + | |
- | </ | + | |
- | : | + | |
- | include | + | |
- | default_type | + | |
- | + | ||
- | # Load modular configuration files from the / | + | |
- | # See http:// | + | |
- | # for more information. | + | |
- | include / | + | |
- | + | ||
- | # server { | + | |
- | # listen | + | |
- | # listen | + | |
- | # server_name | + | |
- | # root / | + | |
- | # | + | |
- | # # Load configuration files for the default server block. | + | |
- | # include / | + | |
- | # | + | |
- | # location / { | + | |
- | # | + | |
- | # | + | |
- | # error_page 404 / | + | |
- | # location = /40x.html { | + | |
- | # | + | |
- | # | + | |
- | # error_page 500 502 503 504 / | + | |
- | # location = /50x.html { | + | |
- | # } | + | |
- | # } | + | |
- | + | ||
- | # Settings for a TLS enabled server. | + | |
- | # | + | |
- | # server { | + | |
- | : | + | |
- | </ | + | |
- | systemctl restart nginx | + | |
- | </ | + | |
- | - 依照網頁出現的 6 個 Stage 執行 | + | |
- | - Stage 5 將產生的設定參數資料手動寫入 / | + | |
- | vi / | + | |
- | </ | + | |
- | - 調整參數檔案權限< | + | |
- | chown librenms: | + | |
- | </ | + | |
- | - 再來應該就可以透過網頁依照上一步驟建立的帳號登入 | + | |
===== 設定自動找尋區域網路內可納管設備 ===== | ===== 設定自動找尋區域網路內可納管設備 ===== | ||
行 276: | 行 39: | ||
Scanned 253 IPs: 0 known devices, added 10 devices, failed to add 5 devices, 1 ips excluded by config | Scanned 253 IPs: 0 known devices, added 10 devices, failed to add 5 devices, 1 ips excluded by config | ||
Runtime: 104.31 seconds | Runtime: 104.31 seconds | ||
+ | </ | ||
+ | - 設定 default_poller_group = 1 <cli> | ||
+ | lnms config:set default_poller_group 1 | ||
</ | </ | ||
- 之後在區域網路內的新設備如果有啟用 snmp v1 / v2c communty 符合設定的值, | - 之後在區域網路內的新設備如果有啟用 snmp v1 / v2c communty 符合設定的值, | ||
+ | <WRAP center round tip 60%> | ||
+ | * 前一陣子發現設定都正確, | ||
+ | </ | ||
===== 設定告警通知 ===== | ===== 設定告警通知 ===== | ||
* 設定 E-Mail 通知 | * 設定 E-Mail 通知 | ||
* Global Settings -> Alerting Settings | * Global Settings -> Alerting Settings | ||
- | * General alert settings : Default contact <- 填上要接收通知的 E-Mail | + | * General alert settings : Default contact <- 填上要接收通知的 E-Mail |
- | * Exp. {{: | + | * Email options 依照實際寄送的 Mail Server 方式設定 |
- | * Email options 依照實際寄送的 Mail Server 方式設定 | + | |
- | * Exp. {{: | + | |
* 設定告警通知規則 | * 設定告警通知規則 | ||
* Alerts -> Alert Rules | * Alerts -> Alert Rules | ||
- | * 當監控的設備無法連線就通知 | + | * 當監控的設備無法連線就通知 |
- | * {{:tech:2018121003.png? | + | * 將預設網路流量超過 90% 告警排除 lo 介面++設定畫面參考| \\ {{:tech:image_100.png?600}}++ |
- | * {{:tech:2018121004.png?800}} | + | * 針對特定設備特定掛載硬碟剩餘空間進行設定 Exp. 172.16.0.230 排除 /mnt/ext 使用超過 90% 的通知 |
+ | * 進入 172.16.0.230 的 Alert Rules 設定頁面 ++設定畫面參考| \\ {{:tech:2022-08-01_15_25_47.png? | ||
+ | * 修改 硬碟空間已使用 90% 規則, 增加排除 /mnt/ext 規則 ++設定畫面參考| \\ {{: | ||
+ | * 針對特定群組主機設定實體記憶體使用超過 7G 就發出 Critical 通知 ++設定畫面參考| \\ {{: | ||
行 305: | 行 75: | ||
===== 安裝 Agent 監看應用程式 ===== | ===== 安裝 Agent 監看應用程式 ===== | ||
- | * {{indexmenu>: | ||
+ | {{tabinclude> | ||
===== 常見 LibreNMS 異常問題排除 ===== | ===== 常見 LibreNMS 異常問題排除 ===== | ||
行 382: | 行 152: | ||
* 參考 - https:// | * 參考 - https:// | ||
- | ===== 升級 php 至 7.4 ===== | + | ===== CentOS 7 升級 php 至 7.4 ===== |
* 2020/11/04 收到訊息會 2020/11 起, LibreNMS 必須使用 php 7.3 以上(建議 7.4)版本才會自動更新 | * 2020/11/04 收到訊息會 2020/11 起, LibreNMS 必須使用 php 7.3 以上(建議 7.4)版本才會自動更新 | ||
* 先移除原本 PHP 7.2 <cli> | * 先移除原本 PHP 7.2 <cli> | ||
行 507: | 行 277: | ||
</ | </ | ||
+ | ===== CentOS 7 升級 MariaDB 10 ===== | ||
+ | * 2021/06/13 發現 Librenms 無法運作, | ||
+ | * 將舊資料匯出, | ||
+ | su - librenms | ||
+ | head .env | ||
+ | </ | ||
+ | mysqldump -u librenms -p librenms -h 192.168.11.21> | ||
+ | </ | ||
+ | * 執行[[tech/ | ||
+ | * 在新資料庫建立 LibreNMS 的使用者與資料庫 <cli> | ||
+ | mysql -u root -p | ||
+ | create database librenms; | ||
+ | create user ' | ||
+ | grant all on librenms.* to ' | ||
+ | flush privileges; | ||
+ | quit | ||
+ | </ | ||
+ | * 將舊資料匯入新資料庫 Exp. 192.168.11.22< | ||
+ | cat / | ||
+ | </ | ||
+ | * 修改 .env 內 DB 的連線設定< | ||
+ | su - librenms | ||
+ | vi .env | ||
+ | </ | ||
+ | ===== ./lnms migrate 出現 SQLSTATE[42S01] 異常 | ||
+ | * 出現錯誤訊息如下< | ||
+ | In Connection.php line 678: | ||
+ | |||
+ | SQLSTATE[42S01]: | ||
+ | me` varchar(255) not null, `desc` varchar(255) null) default character set utf8mb4 collate ' | ||
+ | </ | ||
+ | * 解決方式 <cli> | ||
+ | mysql -u librenms -p librenms | ||
+ | drop table port_groups; | ||
+ | </ | ||
+ | * 再次執行 ./lnms migrate 出現找不到 librenms.port_group_port 這 table <cli> | ||
+ | In Connection.php line 678: | ||
+ | |||
+ | SQLSTATE[42S02]: | ||
+ | eign` foreign key (`port_group_id`) references `port_groups` (`id`) on delete CASCADE) | ||
+ | </ | ||
+ | * 參考網址 - https:// | ||
+ | * 解決方式 : <cli> | ||
+ | mysql -u librenms -p librenms | ||
+ | CREATE TABLE port_group_port ( | ||
+ | port_group_id int(10) unsigned NOT NULL, | ||
+ | port_id int(10) unsigned NOT NULL, | ||
+ | PRIMARY KEY (port_group_id, | ||
+ | KEY port_group_port_port_group_id_index (port_group_id), | ||
+ | KEY port_group_port_port_id_index (port_id), | ||
+ | CONSTRAINT port_group_port_port_group_id_foreign FOREIGN KEY (port_group_id) REFERENCES port_groups (id) ON DELETE CASCADE, | ||
+ | CONSTRAINT port_group_port_port_id_foreign FOREIGN KEY (port_id) REFERENCES ports (port_id) ON DELETE CASCADE | ||
+ | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | ||
+ | </ | ||
+ | * 再次執行 ./lnms migrate 就可以修正成功 | ||
+ | * 再執行 ./ | ||
+ | su - root | ||
+ | setcap cap_net_raw+ep / | ||
+ | sudo ln -s / | ||
+ | sudo cp / | ||
+ | sudo chown -R librenms: | ||
+ | sudo setfacl -d -m g::rwx / | ||
+ | sudo chmod -R ug=rwX / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 由 CentOS 7 移轉至 Ubuntu 20.04 ===== | ||
+ | * 參考 [[https:// | ||
+ | - 依照正常程序安裝 [[tech/ | ||
+ | - 修改 CentOs 7 與 Ubuntu 20.04 新舊主機內的 / | ||
+ | : | ||
+ | #33 | ||
+ | #*/5 * * * * | ||
+ | #*/5 * * * * | ||
+ | #* * * * * | ||
+ | #*/5 * * * * | ||
+ | #01 | ||
+ | #*/5 * * * * | ||
+ | #* * * * * | ||
+ | : | ||
+ | #15 | ||
+ | </ | ||
+ | - 在 CentOS 7 舊主機內將 MySQL 資料匯出 <cli> | ||
+ | mysqldump librenms -u root -p > librenms.sql | ||
+ | </ | ||
+ | - 在 Ubuntu 20.04 新主機將 librenms.sql 匯入 <cli> | ||
+ | scp [email protected]:/ | ||
+ | mysql -u root -p librenms < librenms.sql | ||
+ | </ | ||
+ | - 將 CentOS 7 舊主機內的 rrd 目錄內的檔案複製到 Ubuntu 20.04 新主機內, | ||
+ | cd / | ||
+ | tar cvf rrd.tar rrd | ||
+ | </ | ||
+ | cd / | ||
+ | scp [email protected]:/ | ||
+ | tar xvf rrd.tar | ||
+ | </ | ||
+ | - 將 CentOS 7 舊主機內的 .env 和 config.php 檔案複製到 Ubuntu 20.04 新主機內, | ||
+ | cd / | ||
+ | scp [email protected]:/ | ||
+ | scp [email protected]:/ | ||
+ | chown -R librenms: | ||
+ | </ | ||
+ | - 檢查 Ubuntu 20.04 新主機內的安裝狀態 <cli> | ||
+ | su - librenms | ||
+ | ./ | ||
+ | </ | ||
+ | - 修改 Ubuntu 20.04 新主機內的 / | ||
+ | : | ||
+ | 33 | ||
+ | */5 * * * * | ||
+ | */5 * * * * | ||
+ | * * * * * | ||
+ | */5 * * * * | ||
+ | 01 | ||
+ | */5 * * * * | ||
+ | * * * * * | ||
+ | : | ||
+ | 15 | ||
+ | </ | ||
+ | |||
+ | ===== 升級 php 至 8.1 以上版本 ===== | ||
+ | * 今天看到這訊息 | ||
+ | < | ||
+ | Error: PHP version too low | ||
+ | PHP version 8.1 is the minimum supported version as of September, 2022. We recommend you update to PHP a supported version of PHP (8.1 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates. | ||
+ | |||
+ | 2022-09-27 00:00:00 | Source: daily.sh | ||
+ | </ | ||
+ | * 檢查作業系統 -> Ububtu 20.04 / php 7.4 / nginx 1.18< | ||
+ | root@ct-librenms: | ||
+ | Ubuntu 20.04.4 LTS \n \l | ||
+ | root@ct-librenms: | ||
+ | PHP 7.4.3 (cli) (built: Jun 13 2022 13:43:30) ( NTS ) | ||
+ | Copyright (c) The PHP Group | ||
+ | Zend Engine v3.4.0, Copyright (c) Zend Technologies | ||
+ | with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies | ||
+ | root@ct-librenms: | ||
+ | nginx version: nginx/ | ||
+ | </ | ||
+ | * 進行升級 ref - https:// | ||
+ | apt update && apt upgrade -y | ||
+ | apt install software-properties-common && add-apt-repository ppa: | ||
+ | apt update && apt upgrade -y | ||
+ | apt install php8.1 php8.1-fpm php8.1-cli php8.1-gd php8.1-curl php8.1-dom php8.1-xml php8.1-mysql php8.1-mbstring -y | ||
+ | apt autoremove -y | ||
+ | systemctl status php8.1-fpm | ||
+ | systemctl restart nginx | ||
+ | </ | ||
+ | root@ct-librenms: | ||
+ | PHP 8.1.10 (cli) (built: Sep 18 2022 10:25:43) (NTS) | ||
+ | Copyright (c) The PHP Group | ||
+ | Zend Engine v4.1.10, Copyright (c) Zend Technologies | ||
+ | with Zend OPcache v8.1.10, Copyright (c), by Zend Technologies | ||
+ | </ | ||
+ | * 更換 php-fpm 的版本設定 | ||
+ | * 查看目前啟動的 php-fpm 狀況< | ||
+ | root@ct-librenms: | ||
+ | root | ||
+ | root | ||
+ | www-data | ||
+ | www-data | ||
+ | : | ||
+ | </ | ||
+ | * 關閉 7.4 版的 php-fpm< | ||
+ | root@ct-librenms: | ||
+ | root@ct-librenms: | ||
+ | Synchronizing state of php7.4-fpm.service with SysV service script with / | ||
+ | Executing: / | ||
+ | Removed / | ||
+ | </ | ||
+ | * 確認 8.4 版的 php-fpm socket 檔案< | ||
+ | root@ct-librenms:/ | ||
+ | php-fpm.sock | ||
+ | root@ct-librenms:/ | ||
+ | lrwxrwxrwx 1 root root 30 Sep 29 09:05 / | ||
+ | root@ct-librenms:/ | ||
+ | srw-rw---- 1 www-data www-data 0 Sep 29 09:05 / | ||
+ | </ | ||
+ | * 將 nginx 內的 librenms 網站設定改用新板 php-fpm <cli> | ||
+ | vi / | ||
+ | </ | ||
+ | : | ||
+ | } | ||
+ | | ||
+ | fastcgi_pass unix:/ | ||
+ | fastcgi_split_path_info ^(.+\.php)(/ | ||
+ | : | ||
+ | </ | ||
+ | * 重啟 nginx <cli> | ||
+ | systemctl restart nginx.service | ||
+ | </ | ||
+ | * 執行 librenms 的設定檢查< | ||
+ | su - librenms | ||
+ | ./ | ||
+ | </ | ||
+ | librenms@ct-librenms: | ||
+ | ==================================== | ||
+ | Component | Version | ||
+ | --------- | ------- | ||
+ | LibreNMS | ||
+ | DB Schema | 2022_09_03_091314_update_ports_adsl_table_with_defaults (246) | ||
+ | PHP | 8.1.11 | ||
+ | Python | ||
+ | Database | ||
+ | RRDTool | ||
+ | SNMP | 5.8 | ||
+ | ==================================== | ||
+ | |||
+ | [OK] Composer Version: 2.4.2 | ||
+ | [OK] Dependencies up-to-date. | ||
+ | : | ||
+ | : | ||
+ | OK] Database schema correct | ||
+ | [FAIL] | ||
+ | Mysql time 2022-10-04 18:40:56 | ||
+ | PHP time 2022-10-04 10:40:56 | ||
+ | [FAIL] | ||
+ | [FIX]: | ||
+ | Please install mbstring | ||
+ | [FAIL] | ||
+ | [FIX]: | ||
+ | https:// | ||
+ | [OK] Active pollers found | ||
+ | : | ||
+ | [OK] rrdtool version ok | ||
+ | [WARN] | ||
+ | [FIX]: | ||
+ | Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors. | ||
+ | [WARN] | ||
+ | [FIX]: | ||
+ | You can fix this with ./ | ||
+ | Modified Files: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | [FAIL] | ||
+ | [FIX]: | ||
+ | sudo chown -R librenms: | ||
+ | sudo setfacl -d -m g::rwx / | ||
+ | sudo chmod -R ug=rwX / | ||
+ | Files: | ||
+ | / | ||
+ | </ | ||
+ | * 依照上述的修正建議進行修正< | ||
+ | su - root | ||
+ | vi / | ||
+ | ---- | ||
+ | : | ||
+ | [Date] | ||
+ | ; Defines the default timezone used by the date functions | ||
+ | ; https:// | ||
+ | date.timezone = " | ||
+ | : | ||
+ | ---- | ||
+ | vi / | ||
+ | ---- | ||
+ | : | ||
+ | [Date] | ||
+ | ; Defines the default timezone used by the date functions | ||
+ | ; https:// | ||
+ | date.timezone = " | ||
+ | : | ||
+ | ---- | ||
+ | su - librenms | ||
+ | ./daily.sh | ||
+ | ./ | ||
+ | su - root | ||
+ | chown -R librenms: | ||
+ | chmod -R ug=rwX / | ||
+ | usermod -a -G librenms www-data | ||
+ | su - librenms | ||
+ | </ | ||
+ | librenms@ct-librenms: | ||
+ | =========================================== | ||
+ | Component | Version | ||
+ | --------- | ------- | ||
+ | LibreNMS | ||
+ | DB Schema | 2022_09_03_091314_update_ports_adsl_table_with_defaults (246) | ||
+ | PHP | 8.1.11 | ||
+ | Python | ||
+ | Database | ||
+ | RRDTool | ||
+ | SNMP | 5.8 | ||
+ | =========================================== | ||
+ | |||
+ | [OK] Composer Version: 2.4.2 | ||
+ | [OK] Dependencies up-to-date. | ||
+ | [OK] Database connection successful | ||
+ | [OK] Database Schema is current | ||
+ | [OK] SQL Server meets minimum requirements | ||
+ | [OK] lower_case_table_names is enabled | ||
+ | [OK] MySQL engine is optimal | ||
+ | [OK] | ||
+ | [OK] Database schema correct | ||
+ | [OK] MySQl and PHP time match | ||
+ | [OK] Active pollers found | ||
+ | [OK] Dispatcher Service not detected | ||
+ | [OK] Locks are functional | ||
+ | [OK] Python poller wrapper is polling | ||
+ | [OK] Redis is unavailable | ||
+ | [OK] rrd_dir is writable | ||
+ | [OK] rrdtool version ok | ||
+ | </ | ||
===== 參考網址 ==== | ===== 參考網址 ==== | ||
* https:// | * https:// | ||
行 514: | 行 596: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
- | {{tag> | + | {{tag> |