To identify and see what’s wrong with the NMS, run and check the problem by issuing-
If RRD files not being updated in rrd folder, check-
./poller.php -h HOSTNAME -d -f -m os
Reset LibreNMS by dropping database-
DROP DATABASE `librenms`;
CREATE DATABASE `librenms`;
Admin password reset (or create new admin user in case you’ve forgotten the existing user)-
./adduser.php <USERNAME> <PASSWORD> 10
If receiving such error while installing Librenms, run-
./scripts/composer_wrapper.php install --no-dev
If you’re having poller issue (assuming cron fails), run-
The first step we must do for installing LibreNMS Monitoring Tools is to install some packages needed on the server. Connect to your server and update the repository.
sudo apt update
Install all the required packages for LibreNMS from the Ubuntu repository using the following command.
apt-get install fping imagemagick whois mtr-tiny nmap python-mysqldb snmpd rrdtool git snmp graphviz python lsb snmp
After the installation is complete, goto the next step.
Install Nginx Webserver
In this tutorial, we will be running LibreNMS under the Nginx web server. Nginx is powerful web server that’s available in the Ubuntu repositories.
Install nginx using apt command from the repository in the following way.
apt install nginx
When it’s done, start the service and enable it to run automatically every time at system boot.
systemctl start nginx
systemctl enable nginx
Nginx web server is running under the default port 80. We can check the port using the netstat command, and check Nginx using curl command to get the HTTP status code, as shown below.
netstat -plntu | grep 80
curl -I localhost
Nginx installation has been completed. Continue reading “Install Librenms on Ubuntu 16.04” »
Install SNMPD first
SNMPd is not installed by default. You must first install snmpd.
apt-get install snmpd lsb -y
Backup default snmp.conf file on the ‘/etc/snmp/’ directory and copy new one from the librenms directory.
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.asli
cp /opt/librenms/snmpd.conf.example /etc/snmp/snmpd.conf
or instead copy-paste below snmpd text Continue reading “Add Linux machine on LibreNMS” »