Weathermap Help

Hello,

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? :slight_smile:

  • 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.
[FIX]:
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/
Files:
/opt/librenms/rrd/smokeping/__sortercache/data.lnmsFPing-1.storable
/opt/librenms/rrd/smokeping/__sortercache/data.lnmsFPing-0.storable
/opt/librenms/rrd/smokeping/network/192_168_8_235.rrd
/opt/librenms/rrd/smokeping/server/192_168_8_254.rrd

Regards,

PS : i don’t have any longer error with my file 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

you can ignore it.

I’ve had weathermap running for about a year and it’s being punting the same message yet I have observed no negative effects.

librenms@nms:/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
librenms@nms:/opt/librenms/html/plugins/Weathermap$

Thanks for you answer !

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!

Thanks again

ah my bad, skim read it :slight_smile:

Glad you’re all sorted.

there is another plugin weather mapper which tries to generate for you, but I found it easier to just do it myself.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.