Code

store::memory: Add a plugin providing an in-memory store.
[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 # "Store" plugins provide means to store and/or query information.           #
32 #----------------------------------------------------------------------------#
33 LoadPlugin "store::memory"
34 LoadPlugin "store::network"
36 #----------------------------------------------------------------------------#
37 # "cname" plugins canonicalize hostnames before actually storing them. All   #
38 # cname callbacks are applied to an hostname in the order in which they have #
39 # been loaded, each receiving the result of the previous call.               #
40 #----------------------------------------------------------------------------#
41 LoadPlugin "cname::dns"
43 #----------------------------------------------------------------------------#
44 # "Backends" are plugins which collect information to be stored in SysDB.    #
45 # Each backend may use its own custom query interval by specifying the       #
46 # 'Interval' option:                                                         #
47 #   <LoadBackend "foo">                                                      #
48 #       Interval 60                                                          #
49 #   </LoadPlugin>                                                            #
50 #----------------------------------------------------------------------------#
51 LoadBackend "collectd::unixsock"
52 LoadBackend "facter"
53 LoadBackend "mk-livestatus"
54 LoadBackend "puppet::store-configs"
56 #----------------------------------------------------------------------------#
57 # Plugin configuration:                                                      #
58 #----------------------------------------------------------------------------#
60 <Backend "collectd::unixsock">
61         <Instance "central-collector">
62                 Socket "/var/run/collectd-unixsock"
63                 TimeseriesBackend "rrdtool"
64                 TimeseriesBaseURL "/var/lib/collectd/rrd"
65         </Instance>
66 </Backend>
68 <Backend "mk-livestatus">
69         <Instance "nagios4-master">
70                 Socket "/var/lib/nagios4/rw/live"
71         </Instance>
72 </Backend>
74 <Backend "puppet::store-configs">
75         <Connection "puppet">
76                 DBAdapter "pgsql"
77                 DBName "puppet"
78                 DBServer "puppet.domain.tld"
79                 DBPort "5432"
80                 DBUser "puppet"
81                 DBPassword "secret1"
82                 DBIOption "name" "value"
83         </Connection>
84 </Backend>