This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| admin:nms [2019/06/12 18:04] peppe created | admin:nms [2019/06/20 10:19] (current) peppe | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| # apt install apache2 curl acl zip unzip | # apt install apache2 curl acl zip unzip | ||
| # systemctl enable apache2 | # systemctl enable apache2 | ||
| + | # a2dismod mpm_event | ||
| + | # a2enmod mpm_prefork | ||
| + | |||
| + | # vi / | ||
| + | |||
| + | Add the following config, edit ServerName as required: | ||
| + | |||
| + | < | ||
| + | DocumentRoot / | ||
| + | ServerName | ||
|  |  | ||
| - |  | + | AllowEncodedSlashes NoDecode | 
| + | < | ||
| + | Require all granted | ||
| + | AllowOverride All | ||
| + | Options FollowSymLinks MultiViews | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | # a2ensite librenms.conf | ||
| + | # a2enmod rewrite | ||
| + | # systemctl restart apache2 | ||
| + | |||
| + | php 7.1.3 installation: | ||
| # apt install apt-transport-https lsb-release ca-certificates | # apt install apt-transport-https lsb-release ca-certificates | ||
| # wget -O / | # wget -O / | ||
| Line 27: | Line 49: | ||
| # apt install php7.1-cli php7.1-curl php7.1-mbstring php7.1-gd libapache2-mod-php7.1 php7.1-snmp php7.1-xml php7.1-mysql php7.1-zip php7.1-json | # apt install php7.1-cli php7.1-curl php7.1-mbstring php7.1-gd libapache2-mod-php7.1 php7.1-snmp php7.1-xml php7.1-mysql php7.1-zip php7.1-json | ||
| - |  | + | Add date.timezone = Europe/ | 
| + | / | ||
| + | / | ||
| + | |||
| + | # a2enmod php7.1 | ||
| + | |||
| + | mariadb installation: | ||
| # apt install mariadb-server | # apt install mariadb-server | ||
| # systemctl enable mariadb | # systemctl enable mariadb | ||
| Line 38: | Line 66: | ||
| FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||
| exit; | exit; | ||
| - | + |  | |
| - | # / | + | # vi / | 
| add the following in mysqld section | add the following in mysqld section | ||
| innodb_file_per_table=1 | innodb_file_per_table=1 | ||
| Line 46: | Line 74: | ||
|  |  | ||
| # systemctl restart mariadb | # systemctl restart mariadb | ||
| - |  | + | |
| - | # apt install composer fping git graphviz imagemagick mtr-tiny nmap python-memcache python-mysqldb rrdtool snmp snmpd whois | + | # apt install composer fping git graphviz imagemagick mtr-tiny nmap python-memcache python-mysqldb rrdtool snmp snmpd whois | 
|  |  | ||
| # useradd librenms -d / | # useradd librenms -d / | ||
| Line 66: | Line 94: | ||
| # cd / | # cd / | ||
| # ./ | # ./ | ||
| - |  | + | |
| - |  | + | Disable updates | 
| - |  | + |  | 
| - | Login at http://<IP>/librenms/html/index.php/login | + | |
| + | Enable discovery | ||
| + |  | ||
| + | |||
| + | Manual discovery | ||
| + | python3 ./snmp-scan.py | ||
| + | |||
| + | Installation validation: | ||
| + | cd /opt/librenms | ||
| + | ./validate.php | ||
| + | |||