My WorldMap is suddenly blank - as in nothing - a white box with no tiles in it. And, I can pull a streetmap tile in the web browser - I am not banned, I just don’t get the world map anymore.
Now, we did set disabled=0 on about 400 devices around the time it broke, but we tried undoing it to see if it would restore to no avail. I’m not sure how that would break it.
Any hints as to which php to check would be appreciated, thank you for your time.
$ ./validate.php
Component
Version
LibreNMS
1.31.03-4-g4c3562e
DB Schema
205
PHP
7.0.22-0ubuntu0.16.04.1
MySQL
10.0.31-MariaDB-0ubuntu0.16.04.2
RRDTool
1.6.0
SNMP
NET-SNMP 5.7.3
====================================
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your local git contains modified files, this could prevent automatic updates.
Modified files:
includes/snmptrap/linkDown.inc.php
includes/snmptrap/linkUp.inc.php
snmptrap.php
[WARN] Some devices have not been polled in the last 5 minutes.
You may have performance issues. Check your poll log and see: http://docs.librenms.org/Support/Performance/
( yada yada, I’ve got rrdcached)
$
Thank you kindly for your response. The SQL in Libre is fairly straight forward. When we have a large number of operations to do, we simply pull up mysql and do so from there as it is much quicker. (At least for simple operations)
I set memory_limit = 1024M in /etc/php/7.0/apache2/php.ini and restarted apache. Unfortunately, this did not work. I see nothing relevant in error.log. My apologies, my php/js skills are not what they should be.
Of note, I do see JS errors now, a couple deprecation errors and:
SyntaxError: expected expression, got ','[Learn More] jquery.min.js:246:35
globalEval/< https://nacho.wyo.gov/js/jquery.min.js:4:4987
globalEval https://nacho.wyo.gov/js/jquery.min.js:4:4961
domManip https://nacho.wyo.gov/js/jquery.min.js:5:28158
append https://nacho.wyo.gov/js/jquery.min.js:5:25576
html/< https://nacho.wyo.gov/js/jquery.min.js:5:27114
access https://nacho.wyo.gov/js/jquery.min.js:4:6688
html https://nacho.wyo.gov/js/jquery.min.js:5:26699
success https://nacho.wyo.gov/:842:21
c https://nacho.wyo.gov/js/jquery.min.js:4:26031
fireWith https://nacho.wyo.gov/js/jquery.min.js:4:26840
k https://nacho.wyo.gov/js/jquery.min.js:6:14256
r https://nacho.wyo.gov/js/jquery.min.js:6:18646
If that’s the same issue as @Daniel_Schmidt then the VM1354:586 is a clickable link to where the issue is - maybe you should try a different browser to see if that link is shown?
Yes sir… that were a stupid mistake. Sorry for taking your time. For documentation:
In chrome, as Laf says, you can click on the link and it will show you which device you screwed up. Fix that snmp string, discover it again, and it is fixed.
Error checking on the lat,long. Something very simple, like:
If (len(lat_long.split(’,’)) != 2):
log_error(“Device %s has bad snmp lat/long string, you moron” % idiot_device)
continue
Check for spaces, alpha characters and whatnot and generate a log entry instead of crash. (Not that I’m telling you how to fix it, I’m sure you can think of something better than I can)
Naturally if LibreNMS utilised DNS LOC records this wouldn’t be an issue (and I could update all my locations in one central file instead of having to hit hundreds of devices individually)