Polling on new server install

Hello,

I have a bit of an issue - we currently run LibreNMS on a VM but we need to move machines so I decided to move NMS to a new server. I dumped the mysql database, copied over the config etc.

Although I’m constantly getting a message box that the polling has not completed in the last 15 minutes and all graphs are empty. I’m not too sure what is going on when the config is the same as the other server.

[root@nmsw01 librenms]# ./validate.php

Component Version
LibreNMS 1.45-52-ga143452
DB Schema 271
PHP 7.2.11
MySQL 10.0.37-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.7.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller has never run or you are not using poller-wrapper.py, check the cron job.
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX]:
Check your poll log and see: http://docs.librenms.org/Support/Performance/
Devices:

and 52 more…
[FAIL] Some folders have incorrect file permissions, this may cause issues.
[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/storage/framework/views/e611ad5a1e8fa752c20db220240e8bf3

This is the cron.d/librenms file

Using this cron file requires an additional user on your system, please see install docs.

PATH=/opt/rh/rh-php70/root/usr/bin:/opt/rh/rh-php70/root/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
PATH=/sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH=/opt/rh/rh-php70/root/usr/lib64

33 */6 * * * librenms /opt/librenms/discovery.php -h all >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/discovery.php -h new >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16
15 0 * * * librenms /opt/librenms/daily.sh >> /dev/null 2>&1

          • librenms /opt/librenms/alerts.php >> /dev/null 2>&1
            */5 * * * * librenms /opt/librenms/poll-billing.php >> /dev/null 2>&1
            01 * * * * librenms /opt/librenms/billing-calculate.php >> /dev/null 2>&1
            */5 * * * * librenms /opt/librenms/check-services.php >> /dev/null 2>&1

The first setup was done by a previous IT manager and he was a big fan of complicating things for no reason. I have a feeling the config is looking for specific files in the wrong place but I have no idea…

Any help is highly appreciated! :slight_smile:
Mateusz

Also just found that under Settings --> Pollers the old server is still listed, but I don’t see how I can change it?

I dumped the database again and the .validate.php log looks different now

[root@nmsw01 librenms]# ./validate.php

Component Version
LibreNMS 1.45-52-ga143452
DB Schema 271
PHP 7.2.11
MySQL 10.0.37-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.7.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller (old server name) has not completed within the last 5 minutes, check the cron job.
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX]:
Check your poll log and see: http://docs.librenms.org/Support/Performance/
Devices:

and 53 more…
[FAIL] Discovery has not completed in the last 24 hours.
[FIX]:
Check the cron job to make sure it is running and using discovery-wrapper.py
[FAIL] Some folders have incorrect file permissions, this may cause issues.
[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/storage/framework/views/e611ad5a1e8fa752c20db220240e8bf3