-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yml
More file actions
63 lines (53 loc) · 1.44 KB
/
config.example.yml
File metadata and controls
63 lines (53 loc) · 1.44 KB
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
52
53
54
55
56
57
58
59
60
61
62
# Database configuration for the daemon
database:
# type: mysql
type: pgsql
host: 127.0.0.1
port: 5432
user: changeme
password: changeme
name: servicenow
# tls: true
# insecure: false
# ca: "ca.pem"
# key: "key.pem"
# cert: "cert.pem"
# ServiceNow configuration for the daemon
servicenow:
url: "https://dev.service-now.com"
user: "icinga_svc"
password: "changeme"
# tls: true
# insecure: false
# ca: "ca.pem"
# key: "key.pem"
# cert: "cert.pem"
# Listen address for the daemon
# listen: "127.0.0.1:5910"
# Log level for the daemon
# log_level: "debug"
# Maximum age for resolved incidents in the database before they are removed
# incident_max_age_days: 30
# Timeout for HTTP calls in seconds (e.g. for calling ServiceNow)
# http_timeout_seconds: 60
# Interval in seconds for synchronizing the database with ServiceNow
# sync_interval_seconds: 120
# ServiceNow API endpoint for incidents
incident_table_endpoint: "/api/now/v2/table/incident"
# Name of the ServiceNow fields to use
incident_work_notes_field: "work_notes"
incident_close_notes_field: "close_notes"
incident_close_code_field: "close_code"
incident_close_code: "Resolved by caller"
incident_state_field: "state"
# Mapping of Icinga2 states and ServiceNow states
incident_state_mapping:
Problem: "1"
Acknowledgement: "2"
Recovery: "6"
Custom: "1"
FlappingStart: "1"
FlappingEnd: "6"
DowntimeStart: "-1"
DowntimeEnd: "-2"
DowntimeRemoved: "-3"