Hi,
I’ve used the CentOS 7 VM downloadable to get LibreNMS working for me.
When I try to enable the Weathermap plugin, then go to editor I get this problem:
2017/09/29 23:53:23 [error] 951#0: *1659 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function dbDelete() in /opt/librenms/html/includes/authenticate.inc.php:25
Stack trace:
#0 /opt/librenms/html/plugins/Weathermap/editor.php(54): require_once()
#1 {main}
thrown in /opt/librenms/html/includes/authenticate.inc.php on line 25" while reading response header from upstream, client: x.x.x.x, server: hostname.example.com, request: "GET /plugins/Weathermap/editor.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "hostname.example.com", referrer: "https://hostname.example.com/plugin/p=Weathermap"
Any ideas what the problem could be here?
Thanks.
Michael.
If you go to this directory do you see anything?
/opt/librenms/html/plugins/Weathermap/
if not you need to install Weathermaps, please follow the how-to below. (VM has it “enabled” but not installed)
laf
#3
Make sure you are running the latest Weathermap code + LibreNMS code.
Hi, yes I have the following:
ll
total 252
-rwxr-xr-x. 1 librenms librenms 35564 May 1 2016 CHANGES
-rw-r–r--. 1 librenms librenms 1633 May 1 2016 check-gdbug.php
-rw-r–r--. 1 librenms librenms 13008 May 1 2016 check.php
drwxrwxrwx. 2 nginx nginx 57 May 1 2016 configs
-rw-r–r--. 1 librenms librenms 18011 May 1 2016 COPYING
-rwxr-xr-x. 1 librenms librenms 16386 May 1 2016 data-pick.php
drwxr-xr-x. 7 librenms librenms 4096 May 1 2016 docs
-rwxr-xr-x. 1 librenms librenms 50029 May 1 2016 editor.php
drwxr-xr-x. 2 librenms librenms 4096 May 1 2016 editor-resources
drwxr-xr-x. 2 librenms librenms 4096 May 1 2016 images
-rw-r–r--. 1 librenms librenms 62 May 1 2016 index.php
-rw-r–r--. 1 librenms librenms 1295 May 1 2016 INSTALL.md
drwxr-xr-x. 5 librenms librenms 4096 May 1 2016 lib
-rwxr-xr-x. 1 librenms librenms 3292 May 1 2016 map-poller.php
drwxr-xr-x. 2 librenms librenms 39 May 1 2016 output
-rw-r–r--. 1 librenms librenms 50734 May 1 2016 overlib.js
-rw-r–r--. 1 librenms librenms 1665 May 1 2016 README.md
-rw-r–r--. 1 librenms librenms 1309 May 1 2016 Weathermap.inc.php
-rwxr-xr-x. 1 librenms librenms 9578 May 1 2016 weathermap.php
-rw-r–r--. 1 librenms librenms 143 May 1 2016 Weathermap.php
Maybe it’s as laf says, the latest code since all of that is 2016.
I’ll try the git clone as instructed.
Thanks.
Michael.
Hi Laf. Yes I removed the Weathermap directory and performed a Git clone again, and this time I was able to enter the editor.
Now to try and figure out what this does 
Thanks.