From 71050edfd19018b849978080c96e032200abf95f Mon Sep 17 00:00:00 2001 From: Hans Erasmus Date: Mon, 8 Jun 2020 16:22:35 +0200 Subject: [PATCH 1/4] Added minor changes --- doc/Installation/Install-LibreNMS.md | 36 ++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/doc/Installation/Install-LibreNMS.md b/doc/Installation/Install-LibreNMS.md index 0414462854..c42a730523 100644 --- a/doc/Installation/Install-LibreNMS.md +++ b/doc/Installation/Install-LibreNMS.md @@ -19,7 +19,7 @@ you select the same option when they are presented. apt install software-properties-common add-apt-repository universe apt update - apt install acl curl composer fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nginx-full nmap php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-snmp php7.4-xml php7.4-zip rrdtool snmp snmpd whois unzip python3-pymysql python3-dotenv python3-redis python3-setuptools + apt install acl curl composer fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nginx-full nmap php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-snmp php7.4-xml php7.4-zip rrdtool snmp snmpd whois unzip python3-pymysql python3-dotenv python3-redis python3-setuptools python3-pip ``` === "Apache" @@ -27,20 +27,20 @@ you select the same option when they are presented. apt install software-properties-common add-apt-repository universe apt update - apt install acl curl apache2 composer fping git graphviz imagemagick libapache2-mod-fcgid mariadb-client mariadb-server mtr-tiny nmap php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-snmp php7.4-xml php7.4-zip rrdtool snmp snmpd whois python3-pymysql python3-dotenv python3-redis python3-setuptools + apt install acl curl apache2 composer fping git graphviz imagemagick libapache2-mod-fcgid mariadb-client mariadb-server mtr-tiny nmap php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-snmp php7.4-xml php7.4-zip rrdtool snmp snmpd whois python3-pymysql python3-dotenv python3-redis python3-setuptools python3-pip ``` === "CentOS 8" === "NGINX" ``` dnf install epel-release - dnf install bash-completion cronie fping git ImageMagick mariadb-server mtr net-snmp net-snmp-utils nginx nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached rrdtool + dnf install bash-completion cronie fping git nginx ImageMagick mariadb-server mtr net-snmp net-snmp-utils nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached python3-pip rrdtool ``` === "Apache" ``` dnf install epel-release - dnf install bash-completion cronie fping git httpd ImageMagick mariadb-server mtr net-snmp net-snmp-utils nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached rrdtool unzip + dnf install bash-completion cronie fping git httpd ImageMagick mariadb-server mtr net-snmp net-snmp-utils nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached python3-pip rrdtool unzip ``` === "Debian 10" @@ -394,11 +394,6 @@ listen = /run/php-fpm-librenms.sock; SELinux not enabled by default === "CentOS 8" - Install the policy tool for SELinux: - - ``` - dnf install policycoreutils-python-utils - ``` ## Configure the contexts needed by LibreNMS: @@ -457,7 +452,10 @@ listen = /run/php-fpm-librenms.sock; firewall-cmd --permanent --zone public --add-service http --add-service https ``` -# Enable lnms command completion +# Enable lnms command auto-completion + +This feature grants you the opportunity to use tab for completion on lnms commands as you would +for normal linux commands. ``` ln -s /opt/librenms/lnms /usr/local/bin/lnms @@ -523,6 +521,24 @@ to the file. Run: chown librenms:librenms /opt/librenms/config.php ``` +# Set location to fping6 + +On the validate screen, +you might get a message like this: + +``` +fping6 location is incorrect or bin not installed. +``` + +=== "Ubuntu 20.04 / Debian 10" + This is not a known problem in this distro. +=== "CentOS 8" + To fix this: copy the following line to `config.php`: + + ``` + $config['fping6'] = '/usr/sbin/fping'; + ``` + # Final steps That's it! You now should be able to log in to From bde2ad006911b6533f7b509cf608d320b52f449c Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Sun, 14 Jun 2020 16:14:15 -0500 Subject: [PATCH 2/4] Remove pip3 --- doc/Installation/Install-LibreNMS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Installation/Install-LibreNMS.md b/doc/Installation/Install-LibreNMS.md index c42a730523..bd4a106a83 100644 --- a/doc/Installation/Install-LibreNMS.md +++ b/doc/Installation/Install-LibreNMS.md @@ -19,7 +19,7 @@ you select the same option when they are presented. apt install software-properties-common add-apt-repository universe apt update - apt install acl curl composer fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nginx-full nmap php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-snmp php7.4-xml php7.4-zip rrdtool snmp snmpd whois unzip python3-pymysql python3-dotenv python3-redis python3-setuptools python3-pip + apt install acl curl composer fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nginx-full nmap php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-snmp php7.4-xml php7.4-zip rrdtool snmp snmpd whois unzip python3-pymysql python3-dotenv python3-redis python3-setuptools ``` === "Apache" @@ -27,7 +27,7 @@ you select the same option when they are presented. apt install software-properties-common add-apt-repository universe apt update - apt install acl curl apache2 composer fping git graphviz imagemagick libapache2-mod-fcgid mariadb-client mariadb-server mtr-tiny nmap php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-snmp php7.4-xml php7.4-zip rrdtool snmp snmpd whois python3-pymysql python3-dotenv python3-redis python3-setuptools python3-pip + apt install acl curl apache2 composer fping git graphviz imagemagick libapache2-mod-fcgid mariadb-client mariadb-server mtr-tiny nmap php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-snmp php7.4-xml php7.4-zip rrdtool snmp snmpd whois python3-pymysql python3-dotenv python3-redis python3-setuptools ``` === "CentOS 8" From b2eadb3ba24456ab5bfe09a7981adecfcd10db92 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Sun, 14 Jun 2020 16:18:58 -0500 Subject: [PATCH 3/4] Update Install-LibreNMS.md restore alphabetical package list and more pip3 removals --- doc/Installation/Install-LibreNMS.md | 31 ++++++++-------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/doc/Installation/Install-LibreNMS.md b/doc/Installation/Install-LibreNMS.md index bd4a106a83..6d4a39d86e 100644 --- a/doc/Installation/Install-LibreNMS.md +++ b/doc/Installation/Install-LibreNMS.md @@ -34,13 +34,13 @@ you select the same option when they are presented. === "NGINX" ``` dnf install epel-release - dnf install bash-completion cronie fping git nginx ImageMagick mariadb-server mtr net-snmp net-snmp-utils nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached python3-pip rrdtool +dnf install bash-completion cronie fping git ImageMagick mariadb-server mtr net-snmp net-snmp-utils nginx nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached rrdtool ``` === "Apache" ``` dnf install epel-release - dnf install bash-completion cronie fping git httpd ImageMagick mariadb-server mtr net-snmp net-snmp-utils nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached python3-pip rrdtool unzip + dnf install bash-completion cronie fping git httpd ImageMagick mariadb-server mtr net-snmp net-snmp-utils nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached rrdtool unzip ``` === "Debian 10" @@ -394,7 +394,12 @@ listen = /run/php-fpm-librenms.sock; SELinux not enabled by default === "CentOS 8" - + Install the policy tool for SELinux: + + ``` + dnf install policycoreutils-python-utils + ``` + ## Configure the contexts needed by LibreNMS: ``` @@ -452,7 +457,7 @@ listen = /run/php-fpm-librenms.sock; firewall-cmd --permanent --zone public --add-service http --add-service https ``` -# Enable lnms command auto-completion +# Enable lnms command completion This feature grants you the opportunity to use tab for completion on lnms commands as you would for normal linux commands. @@ -521,24 +526,6 @@ to the file. Run: chown librenms:librenms /opt/librenms/config.php ``` -# Set location to fping6 - -On the validate screen, -you might get a message like this: - -``` -fping6 location is incorrect or bin not installed. -``` - -=== "Ubuntu 20.04 / Debian 10" - This is not a known problem in this distro. -=== "CentOS 8" - To fix this: copy the following line to `config.php`: - - ``` - $config['fping6'] = '/usr/sbin/fping'; - ``` - # Final steps That's it! You now should be able to log in to From b4e35bcc65feeeaac2f74436eb968f1d4abc330a Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Sun, 14 Jun 2020 16:19:58 -0500 Subject: [PATCH 4/4] whitespace --- doc/Installation/Install-LibreNMS.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/Installation/Install-LibreNMS.md b/doc/Installation/Install-LibreNMS.md index 6d4a39d86e..fed2483f6f 100644 --- a/doc/Installation/Install-LibreNMS.md +++ b/doc/Installation/Install-LibreNMS.md @@ -34,7 +34,7 @@ you select the same option when they are presented. === "NGINX" ``` dnf install epel-release -dnf install bash-completion cronie fping git ImageMagick mariadb-server mtr net-snmp net-snmp-utils nginx nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached rrdtool + dnf install bash-completion cronie fping git ImageMagick mariadb-server mtr net-snmp net-snmp-utils nginx nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached rrdtool ``` === "Apache" @@ -394,11 +394,11 @@ listen = /run/php-fpm-librenms.sock; SELinux not enabled by default === "CentOS 8" - Install the policy tool for SELinux: + Install the policy tool for SELinux: - ``` - dnf install policycoreutils-python-utils - ``` + ``` + dnf install policycoreutils-python-utils + ``` ## Configure the contexts needed by LibreNMS: