Code

Merged branch 'master' of git://git.tokkee.org/sysdb.
[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 #============================================================================#
14 # Logging settings:                                                          #
15 # These plugins should be loaded first. Else, any log messages will be       #
16 # written to the standard error channel which is closed after the daemon has #
17 # started.                                                                   #
18 #============================================================================#
19 LoadPlugin "syslog"
21 #============================================================================#
22 # Plugins:                                                                   #
23 # Plugins are the working horses of SysDB. Load any of the following plugins #
24 # to active the respective feature.                                          #
25 #============================================================================#
27 #----------------------------------------------------------------------------#
28 # "cname" plugins canonicalize hostnames before actually storing them. All   #
29 # cname callbacks are applied to an hostname in the order in which they have #
30 # been loaded, each receiving the result of the previous call.               #
31 #----------------------------------------------------------------------------#
32 LoadPlugin "cname::dns"
34 #----------------------------------------------------------------------------#
35 # "Backends" are plugins which collect information to be stored in SysDB.    #
36 # Each backend may use its own custom query interval by specifying the       #
37 # 'Interval' option:                                                         #
38 #   <LoadBackend "foo">                                                      #
39 #       Interval 60                                                          #
40 #   </LoadPlugin>                                                            #
41 #----------------------------------------------------------------------------#
42 LoadBackend "collectd::unixsock"
43 LoadBackend "mk-livestatus"
44 LoadBackend "puppet::store-configs"
46 #----------------------------------------------------------------------------#
47 # Plugin configuration:                                                      #
48 #----------------------------------------------------------------------------#
50 <Backend "collectd::unixsock">
51         <Instance "central-collector">
52                 Socket "/var/run/collectd-unixsock"
53         </Instance>
54 </Backend>
56 <Backend "mk-livestatus">
57         <Instance "nagios4-master">
58                 Socket "/var/lib/nagios4/rw/live"
59         </Instance>
60 </Backend>
62 <Backend "puppet::store-configs">
63         <Connection "puppet">
64                 DBAdapter "pgsql"
65                 DBName "puppet"
66                 DBServer "puppet.domain.tld"
67                 DBPort "5432"
68                 DBUser "puppet"
69                 DBPassword "secret1"
70                 DBIOption "name" "value"
71         </Connection>
72 </Backend>