aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/trap.conf3
-rw-r--r--etc/trapd.yaml34
-rw-r--r--etc/trapd_logging.yaml40
3 files changed, 77 insertions, 0 deletions
diff --git a/etc/trap.conf b/etc/trap.conf
new file mode 100644
index 0000000..56c6c3a
--- /dev/null
+++ b/etc/trap.conf
@@ -0,0 +1,3 @@
+#
+.1.3.6.1.4.1.74.2.46.12.1.1 DCAE-SNMP-TRAPS
+* DCAE-SNMP-TRAPS
diff --git a/etc/trapd.yaml b/etc/trapd.yaml
new file mode 100644
index 0000000..06e1323
--- /dev/null
+++ b/etc/trapd.yaml
@@ -0,0 +1,34 @@
+snmptrap: '2.0'
+info:
+ version: 2.1
+ title: ONAP SNMP Trap Receiver
+
+protocol:
+ transport: udp
+ ipv4_interface: 0.0.0.0
+ ipv4_port: 6164
+ ipv6_interface: ::1
+ ipv6_port: 6164
+ dns_cache_ttl_seconds: 60
+
+files:
+ runtime_base_dir: /opt/app/snmptrap
+ log_dir: /opt/app/snmptrap/logs
+ data_dir: /opt/app/snmptrap/data
+ pid_dir: /var/tmp
+ snmptrapd_diag: /opt/app/snmptrap/logs/dcae_snmptrap.log
+ trap_conf: /opt/app/snmptrap/etc/trap.conf
+ raw_traps_log: /opt/app/snmptrap/logs/trapd.log
+ published_traps_dir: /opt/app/snmptrap/logs
+ trap_stats_log: /opt/app/snmptrap/logs/trapd_stats.csv
+ perm_status_file: /opt/app/snmptrap/logs/trapd.perm_status.log
+
+dmaap:
+ dmaap_conf: /etc/dcae/dmaap.conf
+ http_timeout: 5
+ http_retries: 3
+ http_secs_between_retries: .75
+ primary_publisher: true
+ peer_publisher: null
+ max_traps_between_publish: 50
+ max_milliseconds_between_publish: 3500
diff --git a/etc/trapd_logging.yaml b/etc/trapd_logging.yaml
new file mode 100644
index 0000000..586e3cb
--- /dev/null
+++ b/etc/trapd_logging.yaml
@@ -0,0 +1,40 @@
+version: 1
+disable_existing_loggers: False
+formatters:
+ simple:
+ format: "%(levelname)s|%(asctime)s|%(name)s|%(process)d|%(funcName)s|'%(message)s"
+
+handlers:
+ console:
+ class: logging.StreamHandler
+ level: DEBUG
+ formatter: simple
+ stream: ext://sys.stdout
+
+ info_file_handler:
+ class: logging.handlers.RotatingFileHandler
+ level: INFO
+ formatter: simple
+ filename: info.log
+ maxBytes: 10480000 # 10MB
+ backupCount: 10
+ encoding: utf8
+
+ error_file_handler:
+ class: logging.handlers.RotatingFileHandler
+ level: ERROR
+ formatter: simple
+ filename: errors.log
+ maxBytes: 6144000 # 6MB
+ backupCount: 10
+ encoding: utf8
+
+loggers:
+ my_module:
+ level: ERROR
+ handlers: [console]
+ propagate: no
+
+root:
+ level: INFO
+ handlers: [console, info_file_handler, error_file_handler]