Recently new on librenms I try to set up the network map with the weathermap plugin.
So I installed php-pear, weathermap, well I followed the tutorial here :
I can create a map, add devices, add it to the dashboard etc.
The only thing I’m having trouble with is updating/creating the map automatically with the ./map-poller.php command if I understand correctly. (which is updated regularly with the edited cron)
But when I use the command the result below comes out:
PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /usr/share/php/Console/Getopt.php on line 135
From what I could find it is because php-pear is not installed, but it is installed.
Would you have an idea?
The output of ./validate.php
Component | Version
--------- | -------
LibreNMS | 21.7.0-36-gbbe5e9e4f
DB Schema | 2021_25_01_0127_create_isis_adjacencies_table (212)
PHP | 7.3.29-1~deb10u1
Python | 3.7.3
MySQL | 10.3.29-MariaDB-0+deb10u1
RRDTool | 1.7.1
SNMP | NET-SNMP 5.7.3
[OK] Composer Version: 2.1.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] We have found some files that are owned by a different user than ‘librenms’, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
sudo chown -R librenms:librenms /opt/librenms
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
I’ve had weathermap running for about a year and it’s being punting the same message yet I have observed no negative effects.
[email protected]:/opt/librenms/html/plugins/Weathermap$ php ./map-poller.php
PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /opt/librenms/html/plugins/Weathermap/lib/Weathermap.class.php on line 778
libpng warning: iCCP: known incorrect sRGB profile
The error you show me is not the same as the one I indicated in my first post.
I was able to fix my first error by replacing the file with this one:
(for those who would find themselves with the same error)
And I saw that the error you have also I have it too and that this one is not very important.
And if I understood correctly Weathermap does not add devices automatically to the graph or create maps automatically, it is up to us to create them and to create the links etc. Which is a shame!