Code

964901f94bc198dfd3d13584ee42994d1868ee5d
[sysdb.git] / src / tools / sysdbd / sysdbd.conf.sample
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 "facter"
47 LoadBackend "mk-livestatus"
48 LoadBackend "puppet::store-configs"
50 #----------------------------------------------------------------------------#
51 # Plugin configuration:                                                      #
52 #----------------------------------------------------------------------------#
54 <Backend "collectd::unixsock">
55         <Instance "central-collector">
56                 Socket "/var/run/collectd-unixsock"
57                 TimeseriesBackend "rrdtool"
58                 TimeseriesBaseURL "/var/lib/collectd/rrd"
59         </Instance>
60 </Backend>
62 <Backend "mk-livestatus">
63         <Instance "nagios4-master">
64                 Socket "/var/lib/nagios4/rw/live"
65         </Instance>
66 </Backend>
68 <Backend "puppet::store-configs">
69         <Connection "puppet">
70                 DBAdapter "pgsql"
71                 DBName "puppet"
72                 DBServer "puppet.domain.tld"
73                 DBPort "5432"
74                 DBUser "puppet"
75                 DBPassword "secret1"
76                 DBIOption "name" "value"
77         </Connection>
78 </Backend>