Skip to content

Scheduler configuration

.env reference

.env variable Description
SCHEDULER_CONFIG_FILE_ABSOLUTE_PATH Absolute path to this file on the host

Full reference

For the complete reference on profile types, conditions, groups, and custom translations, see Profiles configuration and Groups configuration. For log level, see Define log level below.

Configuration

communities:
  2c:
    - public
customTranslations:
profiles:
groups:

Define log level

Set the log level for the scheduler container in .env:

SCHEDULER_LOG_LEVEL=INFO

The allowed values are DEBUG, INFO, WARNING, ERROR, CRITICAL, or FATAL.

Example of the configuration

communities:
  2c:
    - public
customTranslations:
  IF-MIB:
    ifInDiscards: myCustomName1
    ifOutErrors: myCustomName2
  SNMPv2-MIB:
    sysDescr: myCustomName3
profiles:
  small_walk:
    condition:
      type: "walk"
    varBinds:
      - [ 'IP-MIB' ]
      - [ 'IF-MIB' ]
      - [ 'TCP-MIB' ]
      - [ 'UDP-MIB' ]
  multiple_conditions:
    frequency: 10
    conditions:
      - field: IF-MIB.ifIndex
        operation: "gt"
        value: 1
      - field: IF-MIB.ifDescr
        operation: "in"
        value:
          - "eth0"
          - "test value"
    varBinds:
      - [ 'IF-MIB', 'ifOutDiscards' ]
groups:
  example_group_1:
    - address: 123.0.0.1
      port: 161
    - address: 178.8.8.1
      port: 999
    - address: 12.22.23
      port: 161
      community: 'private'
  example_group_2:
    - address: 103.0.0.1
      port: 1161
      version: '3'
      secret: 'my_secret'
    - address: 178.80.8.1
      port: 999
      max_oid_to_process: 3