1 #
2 # Sample configuration file for the System DataBase daemon (SysDBd).
3 #
5 #============================================================================#
6 # Global options: #
7 # This section defines global settings and default values for the daemon. #
8 #============================================================================#
10 # default interval used for actively polling plugins
11 Interval 300
13 # listening socket for client connections
14 Listen "unix:/var/run/sysdbd.sock"
16 #============================================================================#
17 # Logging settings: #
18 # These plugins should be loaded first. Else, any log messages will be #
19 # written to the standard error channel which is closed after the daemon has #
20 # started. #
21 #============================================================================#
22 LoadPlugin "syslog"
24 #============================================================================#
25 # Plugins: #
26 # Plugins are the working horses of SysDB. Load any of the following plugins #
27 # to active the respective feature. #
28 #============================================================================#
30 #----------------------------------------------------------------------------#
31 # "cname" plugins canonicalize hostnames before actually storing them. All #
32 # cname callbacks are applied to an hostname in the order in which they have #
33 # been loaded, each receiving the result of the previous call. #
34 #----------------------------------------------------------------------------#
35 LoadPlugin "cname::dns"
37 #----------------------------------------------------------------------------#
38 # "Backends" are plugins which collect information to be stored in SysDB. #
39 # Each backend may use its own custom query interval by specifying the #
40 # 'Interval' option: #
41 # <LoadBackend "foo"> #
42 # Interval 60 #
43 # </LoadPlugin> #
44 #----------------------------------------------------------------------------#
45 LoadBackend "collectd::unixsock"
46 LoadBackend "mk-livestatus"
47 LoadBackend "puppet::store-configs"
49 #----------------------------------------------------------------------------#
50 # Plugin configuration: #
51 #----------------------------------------------------------------------------#
53 <Backend "collectd::unixsock">
54 <Instance "central-collector">
55 Socket "/var/run/collectd-unixsock"
56 </Instance>
57 </Backend>
59 <Backend "mk-livestatus">
60 <Instance "nagios4-master">
61 Socket "/var/lib/nagios4/rw/live"
62 </Instance>
63 </Backend>
65 <Backend "puppet::store-configs">
66 <Connection "puppet">
67 DBAdapter "pgsql"
68 DBName "puppet"
69 DBServer "puppet.domain.tld"
70 DBPort "5432"
71 DBUser "puppet"
72 DBPassword "secret1"
73 DBIOption "name" "value"
74 </Connection>
75 </Backend>