-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.conf
More file actions
86 lines (74 loc) · 2.61 KB
/
example.conf
File metadata and controls
86 lines (74 loc) · 2.61 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#
# Sample configuration file for merlin
#
# Default options have been commented out
#
ipc_socket = @@DESTDIR@@/ipc.sock;
# module-specific configuration options.
module {
# textual log of normal hum-drum events
log_file = @@DESTDIR@@/logs/neb.log;
}
# daemon-specific config options
daemon {
pidfile = /var/run/merlin.pid;
# same as the "module" section above
log_file = @@DESTDIR@@/logs/daemon.log;
# The import_program is responsible for priming the merlin database
# with configuration information and an initial import of status data.
# It's invoked with the following arguments:
# --cache=/path/to/objects.cache
# --status-log=/path/to/status.log
# --db-name=database_name
# --db-user=database_user_name
# --db-pass=database_password
# --db-host=database_host
# --db-conn_str=database_connection_string
# The database parameters are taken from "database" section if such
# a section exists.
import_program = @@DESTDIR@@/ocimp
# address to listen to. 0.0.0.0 is default
#address = 0.0.0.0;
# port to listen to. 15551 is default. This is a daemon
# specific config setting, as the module never listens to
# the network
port = 15551;
database {
# change to no to disable database completely
enabled = yes;
# write data necessary for creating availability reports
# into report_data
log_report_data = yes;
# log contact notifications to the 'notifications' table
log_notifications = yes;
# Change this to yes to track current status (host, service etc
# tables). Note that this requires 'import_program' to be set
track_current = no;
# server location and authentication variables
name = @@DBNAME@@;
user = @@DBUSER@@;
pass = @@DBPASS@@;
host = localhost;
type = @@DBTYPE@@;
}
# this section describes how we handle config synchronization
# It can also be configured on a per-node basis to override the
# globals set here.
# "push" and "fetch" point to a command supposed to be run when we
# want to push configuration to any or all nodes in the network.
# They're invoked with the following arguments:
# --merlin-cfg=/path/to/merlin.conf
object_config {
# a "push" happens for peers and pollers that we know have an
# older configuration than we do. This is what one would
# normally want to happen, since it originates from the node
# that already has all the information
push = mon oconf push
# a "fetch" happens for peers and masters that we know
# have a newer configuration than we do. One won't normally
# configure this (and it currently lacks scripting support),
# but it's available for advanced users who know what they're
# doing
#fetch = mon oconf fetch
}
}