Skip to content

infrasonar/snmp-probe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI Release Version

InfraSonar SNMP Probe

Environment variable

Variable Default Description
AGENTCORE_HOST 127.0.0.1 Hostname or Ip address of the AgentCore.
AGENTCORE_PORT 8750 AgentCore port to connect to.
INFRASONAR_CONF /data/config/infrasonar.yaml File with probe and asset configuration like credentials.
MAX_PACKAGE_SIZE 500 Maximum package size in kilobytes (1..2000).
MAX_CHECK_TIMEOUT 300 Check time-out is 80% of the interval time with MAX_CHECK_TIMEOUT in seconds as absolute maximum.
DRY_RUN none Do not run demonized, just return checks and assets specified in the given yaml (see the Dry run section below).
LOG_LEVEL warning Log level (debug, info, warning, error or critical).
LOG_COLORIZED 0 Log using colors (0=disabled, 1=enabled).
LOG_FMT %y%m%d %H:%M:%S Log format prefix.

Docker build

docker build -t snmp-probe . --no-cache

Config

Example configuration: (the example below is the default when no config is given)

snmp:
  config:
    version: "2c"
    community:
      secret: public

For SNMP version 3:

snmp:
  config:
    version: "3"
    community:
      secret: public
    username: alice
    auth:
      # auth is optional; type USM_AUTH_NONE is used when omitted.
      # supported: USM_AUTH_HMAC96_MD5, USM_AUTH_HMAC96_SHA or USM_AUTH_NONE
      type: USM_AUTH_HMAC96_SHA
      password: "my secret password"
    priv:
      # priv is optional; type USM_PRIV_NONE is used when omitted.
      # supported: USM_PRIV_CBC56_DES, USM_PRIV_CFB128_AES or USM_PRIV_NONE
      type: USM_PRIV_CFB128_AES
      password: "my secret password"