mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 18:25:09 +00:00
6.3 KiB
6.3 KiB
Environment variables
General
TZ: The timezone assigned to the container (defaultUTC)PUID: LibreNMS user id (default1000)PGID: LibreNMS group id (default1000)MEMORY_LIMIT: PHP memory limit (default256M)UPLOAD_MAX_SIZE: Upload max size (default16M)OPCACHE_MEM_SIZE: PHP OpCache memory consumption (default128)LISTEN_IPV6: Enable IPv6 for Nginx (defaulttrue)REAL_IP_FROM: Trusted addresses that are known to send correct replacement addresses (default0.0.0.0/32)REAL_IP_HEADER: Request header field whose value will be used to replace the client address (defaultX-Forwarded-For)LOG_IP_VAR: Use another variable to retrieve the remote IP address for access log_format on Nginx. (defaultremote_addr)
Dispatcher service
⚠️ Only used if you enable and run a sidecar dispatcher container
SIDECAR_DISPATCHER: Set to1to enable sidecar dispatcher mode for this container (default0)LIBRENMS_SERVICE_POLLER_WORKERS: Processes spawned for polling (default24)LIBRENMS_SERVICE_SERVICES_WORKERS: Processes spawned for service polling (default8)LIBRENMS_SERVICE_DISCOVERY_WORKERS: Processes spawned for discovery (default16)LIBRENMS_SERVICE_POLLER_FREQUENCY: Seconds between polling attempts (default300)LIBRENMS_SERVICE_SERVICES_FREQUENCY: Seconds between service polling attempts (default300)LIBRENMS_SERVICE_DISCOVERY_FREQUENCY: Seconds between polling attempts (default21600)LIBRENMS_SERVICE_BILLING_FREQUENCY: Seconds between polling attempts (default300)LIBRENMS_SERVICE_BILLING_CALCULATE_FREQUENCY: Billing interval (default60)LIBRENMS_SERVICE_POLLER_DOWN_RETRY: Seconds between failed polling attempts (default60)LIBRENMS_SERVICE_LOGLEVEL: Must be one of 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL' (defaultINFO)LIBRENMS_SERVICE_UPDATE_FREQUENCY: Seconds between LibreNMS update checks (default86400)LIBRENMS_SERVICE_PING_ENABLED: Enable fast ping scheduler (defaultfalse)LIBRENMS_SERVICE_WATCHDOG_ENABLED: Enable watchdog scheduler (defaultfalse)REDIS_HOST: Redis host for poller synchronization (defaultlocalhost)REDIS_PORT: Redis port (default6379)REDIS_PASSWORD: Redis passwordREDIS_DB: Redis database (default0)
Cron (legacy)
⚠️ Only used if you enable and run a sidecar cron container
SIDECAR_CRON: Set to1to enable sidecar cron mode for this container (default0)LIBRENMS_CRON_DISCOVERY_ENABLE: Enable LibreNMS discovery for this container cronjobs (defaulttrue)LIBRENMS_CRON_DISCOVERY_WRAPPER_WORKERS: Spawn multiple discovery.php processes in parallel (default1)LIBRENMS_CRON_DAILY_ENABLE: Enable LibreNMS daily script for this container cronjobs (defaulttrue)LIBRENMS_CRON_ALERTS_ENABLE: Enable LibreNMS alerts generation for this container cronjobs (defaulttrue)LIBRENMS_CRON_BILLING_ENABLE: Enable LibreNMS billing polling for this container cronjobs (defaulttrue)LIBRENMS_CRON_BILLING_CALCULATE_ENABLE: Enable LibreNMS billing for this container cronjobs (defaulttrue)LIBRENMS_CRON_CHECK_SERVICES_ENABLE: Enable LibreNMS service checks for this container cronjobs (defaulttrue)LIBRENMS_CRON_POLLER_ENABLE: Enable LibreNMS polling for this container cronjobs (defaulttrue)LIBRENMS_CRON_SNMPSCAN_ENABLE: Enable LibreNMS SNMP network scanning for this container cronjobs (defaultfalse)LIBRENMS_CRON_SNMPSCAN_INTERVAL: SNMP network scanning cron interval (daily, in "Minute Hour", default5 0)LIBRENMS_CRON_SNMPSCAN_NETS: Networks to scan for SNMP network scanning, in CIDR notation. Multiple networks can be specified separated by a comma. If this is not set the default is to scan networks defined in$config['nets']LIBRENMS_CRON_SNMPSCAN_THREADS: SNMP network scanning threads to use (default32)LIBRENMS_CRON_SNMPSCAN_LOGFILE: SNMP network scanning cron log file (default/dev/null)
Distributed Poller
LIBRENMS_POLLER_THREADS: Threads thatpoller-wrapper.pyruns (default16)LIBRENMS_POLLER_INTERVAL: Interval in minutes at whichpoller-wrapper.pyruns (default5) docsLIBRENMS_DISTRIBUTED_POLLER_ENABLE: Enable distributed poller functionalityLIBRENMS_DISTRIBUTED_POLLER_NAME: Optional name of poller (default$(hostname))LIBRENMS_DISTRIBUTED_POLLER_GROUP: By default, all hosts are shared and have the poller_group = 0. To pin a device to a poller, set it to a value greater than 0 and set the same value here. One can also specify a comma separated string of poller groups. The poller will then poll devices from any of the groups listed. docsLIBRENMS_DISTRIBUTED_POLLER_MEMCACHED_HOST: Memcached server for poller synchronization (default$MEMCACHED_HOST)LIBRENMS_DISTRIBUTED_POLLER_MEMCACHED_PORT: Port of memcached server (default$MEMCACHED_PORT)
Syslog-ng
⚠️ Only used if you enable and run a sidecar syslog-ng container
SIDECAR_SYSLOGNG: Set to1to enable sidecar syslog-ng mode for this container (default0)
Database
DB_HOST: MySQL database hostname / IP addressDB_PORT: MySQL database port (default3306)DB_NAME: MySQL database name (defaultlibrenms)DB_USER: MySQL user (defaultlibrenms)DB_PASSWORD: MySQL password (defaultlibrenms)DB_TIMEOUT: Time in seconds after which we stop trying to reach the MySQL server (useful for clusters, default60)
Misc
LIBRENMS_SNMP_COMMUNITY: This container's SNMP v2c community string (defaultlibrenmsdocker)LIBRENMS_WEATHERMAP: Enable LibreNMS Weathermap plugin (defaultfalse)LIBRENMS_WEATHERMAP_SCHEDULE: CRON expression format (default*/5 * * * *)MEMCACHED_HOST: Hostname / IP address of a Memcached serverMEMCACHED_PORT: Port of the Memcached server (default11211)RRDCACHED_HOST: Hostname / IP address of a RRDcached serverRRDCACHED_PORT: Port of the RRDcached server (default42217)