"Devices Unpolled" error only after changing time zone

  • Steps to reproduce an issue.
    • Setup devices in LibreNMS
    • Allow a few days to pass
    • Change the timezone to America/New_York in
      • /etc/php/8.2/fpm/php.ini
      • /etc/php/8.2/cli/php.ini
      • timedatectl set-timezone
  • The output of ./validate.php
librenms@ubuntu:~$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS  | 24.9.1 (2024-09-29T19:40:22-04:00)
DB Schema | 2024_08_27_182000_ports_statistics_table_rev_length (300)
PHP       | 8.1.2-1ubuntu2.18
Python    | 3.10.12
Database  | MariaDB 10.6.18-MariaDB-0ubuntu0.22.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================

[OK]    Composer Version: 2.8.0
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[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]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQL and PHP time match
[OK]    Active pollers found
[OK]    Dispatcher Service is enabled
[OK]    Locks are functional
[OK]    No active python wrapper pollers found
[OK]    Redis is unavailable
[OK]    rrdtool version ok
[OK]    Connected to rrdcached
librenms@ubuntu:~$

Screenshot:

Thanks!

“Last CheckIn” and “Last Run” are different, not sure if that’s related.

That looks like you’ve run two different methods of polling, cron and librenms-service.py. Check your setup against the docs to make sure you only have one.

That part is solved! Looks like when I was debugging the timezone issue I ran a command that manually polled.

Thanks @laf

After removing the cron style poller I am still getting the “Devices Unpolled” error

Check the librenms log files, check librenms-service.py is actually running, run it manually and see what it says.

Logs were clean and service was running.

Found from running web validate that PHP and Mysql/System time was mismatched.

I had to move the timezone definition in the phpfile to the top?!?!?

Not sure why but that was the solution.
Thanks for the help!

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