Webui only half working Login and overview working but as soon as you click something

Hi all I’m having problems with the webui

the second is sit

My set up is as follows:

Fresh ubuntu 18.04 servers
2 x librenms servers running nms1 and nms2

they are in 2 physically separate locations nms2 shares nms1’s RRD file via NFS and the DB is also on 2 separate machines however they are in a galera master to master cluster.

Both machines come back with the same validate: and below are copies of my config files

NMS1 is pointing to the outside and has an SSL certificate but it not rendering the icon pack or any graphs

NMS2 is on a LAN network, it loads everything including the graphs however as soon as I click on devices it doesnt render the page properly its just txt.

what could I be missing???

Any help would be greatly appriciated…

Component Version
LibreNMS 1.50-53-g0a12ede57
DB Schema 2019_02_10_220000_add_dates_to_fdb (132)
PHP 7.2.17-0ubuntu0.18.04.1
MySQL 10.3.14-MariaDB-1:10.3.14+maria~bionic-log
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX]:
Check your poll log and see: http://docs.librenms.org/Support/Performance/
Devices:
10.20.20.18
10.20.20.1

NMS2 config.php

Database config

$config[‘db_host’] = ‘10.2.2.51’;
$config[‘db_port’] = ‘3306’;
$config[‘db_user’] = ‘librenms’;
$config[‘db_pass’] = ‘password’;
$config[‘db_name’] = ‘librenms’;
$config[‘db_socket’] = ‘’;

// This is the user LibreNMS will run as
//Please ensure this user is created and has the correct permissions to your install
$config[‘user’] = ‘librenms’;

Locations - it is recommended to keep the default

#$config[‘install_dir’] = “/opt/librenms”;

This should only be set if you want to force a particular hostname/port

It will prevent the web interface being usable form any other hostname

$config[‘base_url’] = “10.2.2.24”;

Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir

and that your web server has permission to talk to rrdcached.

#$config[‘rrdcached’] = “unix:/var/run/rrdcached.sock”;

Default community

$config[‘snmp’][‘community’] = array(“public”,“private”,“FibreGeeks”);
#$config[‘snmp’][‘community’][] = “private”;
#$config[‘snmp’][‘community’][] = “FibreGeeks”;

Authentication Model

$config[‘auth_mechanism’] = “mysql”; # default, other options: ldap, http-auth
#$config[‘http_auth_guest’] = “guest”; # remember to configure this user if you use http-auth

List of RFC1918 networks to allow scanning-based discovery

$config[‘nets’][] = “10.2.2.0/24”;
$config[‘nets’][] = “10.20.20.0/24”;

Update configuration

#$config[‘update_channel’] = ‘release’; # uncomment to follow the monthly release channel
#$config[‘update’] = 0; # uncomment to completely disable updates

#$config[‘smokeping’][‘dir’] = ‘/opt/smokeping/data’;
$config[‘smokeping’][‘dir’] = ‘/var/lib/smokeping’;
$config[‘smokeping’][‘pings’] = 20; // should be equal to “pings” in your smokeping config
$config[‘smokeping’][‘integration’] = true;

$config[‘enable_billing’] = 1;
$config[‘billing_data_purge’] = 12;

$config[‘show_services’] = 1;
$config[‘nagios_plugins’] = “/usr/lib/nagios/plugins”;

#Allow Duplicate sysName
$config[‘allow_duplicate_sysName’] = true;

#ARP
#Adds devices that are listed in another device’s arp table.

This module depends on the arp-table module being enabled and returning data.

$config[‘discovery_modules’][‘discovery-arp’] = true;

$config[‘network_map_items’] = array(‘mac’,‘xdp’);

#Global module support
$config[‘enable_bgp’] = 1; # Enable BGP session collection and display
$config[‘enable_syslog’] = 0; # Enable Syslog
$config[‘enable_inventory’] = 1; # Enable Inventory
$config[‘enable_pseudowires’] = 1; # Enable Pseudowires
$config[‘enable_vrfs’] = 1; # Enable VRFs
$config[‘enable_sla’] = 0; # Enable Cisco SLA collection and display

Enable the in-built services support (Nagios plugins)

$config[‘show_services’] = 1;

===================================================================
NMS1 config.php

<?php ## Have a look in defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php! ### Database config $config['db_host'] = '10.2.2.50'; $config['db_port'] = '3306'; $config['db_user'] = 'librenms'; $config['db_pass'] = 'password'; $config['db_name'] = 'librenms'; $config['db_socket'] = ''; // This is the user LibreNMS will run as //Please ensure this user is created and has the correct permissions to your install $config['user'] = 'librenms'; ### Locations - it is recommended to keep the default #$config['install_dir'] = "/opt/librenms"; ### This should *only* be set if you want to *force* a particular hostname/port ### It will prevent the web interface being usable form any other hostname #$config['base_url'] ="https://nms1.fibregeeks.co.za"; ### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir ### and that your web server has permission to talk to rrdcached. #$config['rrdcached'] = "unix:/var/run/rrdcached.sock"; ### Default community $config['snmp']['community'] = array("public","private","FibreGeeks"); #$config['snmp']['community'][] = "private"; #$config['snmp']['community'][] = "FibreGeeks"; ### Authentication Model $config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth #$config['http_auth_guest'] = "guest"; # remember to configure this user if you use http-auth ### List of RFC1918 networks to allow scanning-based discovery $config['nets'][] = "10.5.5.1/16"; $config['nets'][] = "10.2.2.0/24"; $config['nets'][] = "10.20.20.0/24"; #$config['nets'][] = "172.16.0.0/12"; #$config['nets'][] = "192.168.0.0/16"; # Update configuration #$config['update_channel'] = 'release'; # uncomment to follow the monthly release channel #$config['update'] = 0; # uncomment to completely disable updates #$config['smokeping']['dir'] = '/opt/smokeping/data'; $config['smokeping']['dir'] = '/var/lib/smokeping'; $config['smokeping']['pings'] = 20; // should be equal to "pings" in your smokeping config $config['smokeping']['integration'] = true; $config['enable_billing'] = 1; $config['billing_data_purge'] = 12; $config['show_services'] = 1; $config['nagios_plugins'] = "/usr/lib/nagios/plugins"; #Allow Duplicate sysName $config['allow_duplicate_sysName'] = true; #ARP #Adds devices that are listed in another device's arp table. # This module depends on the arp-table module being enabled and returning data. $config['discovery_modules']['discovery-arp'] = true; $config['network_map_items'] = array('mac','xdp'); #Global module support $config['enable_bgp'] = 1; # Enable BGP session collection and display $config['enable_syslog'] = 0; # Enable Syslog $config['enable_inventory'] = 1; # Enable Inventory $config['enable_pseudowires'] = 1; # Enable Pseudowires $config['enable_vrfs'] = 1; # Enable VRFs $config['enable_sla'] = 0; # Enable Cisco SLA collection and display # Enable the in-built services support (Nagios plugins) $config['show_services'] = 1; $config['rrdcached'] = "unix:/var/run/rrdcached.sock";

What is server_name set to in nginx?

Fixed the problem, as soon as I made them certbot certification it started working. :slight_smile: