[OK] Composer Version: 2.4.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK]
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok
librenms$
$ cat /etc/cron.d/librenms
Using this cron file requires an additional user on your system, please see install docs.
$ ./daily.sh
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
Caching Mac OUI data OK
/opt/librenms/html/plugins/Weathermap/output# ll
total 12
drwxrwxr-x 2 librenms librenms 4096 Oct 28 10:05 ./
drwxrwxr-x 12 librenms librenms 4096 Oct 28 10:08 …/
-rw-rw-r-- 1 librenms librenms 51 Oct 26 17:38 index.php
$ /opt/librenms/html/plugins/Weathermap/map-poller.php
/opt/librenms/html/plugins/Weathermap/map-poller.php: line 1: ?php: No such file or directory
/opt/librenms/html/plugins/Weathermap/map-poller.php: line 3: syntax error near unexpected token (' /opt/librenms/html/plugins/Weathermap/map-poller.php: line 3: // Copyright (C) 2013 Neil Lathwood [email protected]’
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
php-pear is already the newest version (1:1.10.12+submodules+notgz+20210212-1ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
My guess is php-fpm is running as the web user (not librenms) this means it doesn’t have permission to write to that directory according to your original post.
Either amend the permissions, or set the the librenms php-fpm pool as described in the current documentation.
vi librenms.conf
; Start a new pool named ‘www’.
; the variable $pool can be used in any directive and will be replaced by the
; pool name (‘www’ here)
[librenms]