Hi,
We are encountering an issue with the 6-hour rediscovery process in LibreNMS. Despite having disabled the discovery service and specific discovery modules, the rediscovery process continues to occur at regular 6-hour intervals. Please note that we are using LibreNMS within a Docker containerized environment.
Disabled discovery service:
docker exec -it librenms_dispatcher lnms config:get service_discovery_enabled
false
Potential Cause:
The following cron job might be responsible for the 6-hour rediscovery on existing devices:
docker exec -it librenms_dispatcher cat /opt/librenms/dist/librenms.cron
33 */6 * * * librenms /opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1
*/5 * * * * librenms /opt/librenms/discovery.php -h new >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16
-
-
-
-
- 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
19 0 * * * librenms /opt/librenms/daily.sh >> /dev/null 2>&1
Question:
Despite the discovery service being disabled, do cron jobs continue to trigger?
What’s Librenms behaviour in this case?
Please help me out how to turn off 6 hours re-discovery in LibreNMS, We would like to perform re-discovery(for already added devices) every 24 hrs at a partcular time rather than default 6 hrs.
/opt/librenms $ ./validate.php
Component | Version |
---|---|
LibreNMS | 23.11.0 (2023-11-25T19:17:34+00:00) |
DB Schema | 2023_11_04_125846_packages_increase_name_column_length (273) |
PHP | 8.1.22 |
Python | 3.10.13 |
Database | MariaDB 10.5.24-MariaDB-1:10.5.24+maria~ubu2004 |
RRDTool | 1.7.2 |
SNMP | 5.9.3 |
=========================================== |
[OK] Installed from the official Docker image; no Composer required
[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 python wrapper pollers found
[OK] Redis is functional
[OK] rrd_dir is writable
[OK] rrdtool version ok
[WARN] Updates are managed through the official Docker image