-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.py
51 lines (44 loc) · 1.05 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
##########
# Config #
##########
import logging
LOG_DIR = '/tmp/pySNMPdaq'
LOG_FILE = 'pySNMPdaq.log'
LOG_LEVEL = logging.INFO
WRITE_TO_STD_OUT = True
# Data file config
# ---------------
WRITE_TO_FILE = True
FILENAME_PREFIX = 'pySNMPdaq_test'
DATE_FORMAT = '%Y%m%d_%H%M%S'
# Data directory config
# ---------------------
DATA_DIR = '/tmp/pySNMPdaq/data'
CONFIG_ARCHIVE_DIR = 'config'
ARCHIVE_FILES = True
ARCHIVE_DIR = 'archive'
PUT_DATA_TO_OUT_DIR = True
DATA_OUT_DIR = 'data_outbox'
# SSH config
# ----------
SSH_TRANSFER = False
SSH_USER = 'my_ssh_user'
SSH_SERVER = 'some.server.comd'
SSH_REMOTEPATH = '/data/test'
SSH_REFUGIUM_DIR = 'ssh_refugium'
# SNMP config
# -----------
SNMP_TIMEOUT_SEC = 0.5
SNMP_RETRIES = 2
SNMP_VERSION = 2
# Used for SNMP v1 and v2
SNMP_COMMUNITY = 'public'
# Used for SNMP v3
SNMP_USERNAME = 'example_snmp_user'
SNMP_AUTHPASSWORD = 'example_pw'
# Timer config
# ------------
SNMP_QUERY_MAIN_WAIT_SEC = 60
SNMP_QUERY_BETWEEN_BATCHES_WAIT_SEC = 2
# Currently not used. File creation is triggered by query request
# NEW_FILE_WAIT_SEC = 10