Merge branch 'master' of ssh://lausser,shinken@shinken.git.sourceforge.net/gitroot...
[shinken.git] / etc / shinken-specific-load-balanced-only.cfg
blob7f7a642982cee1bb8526348c5653a0d0eb54d9e9
1 #This config file defined Shinken specific objects like
2 #satellites or Realms
4 #This file is for defined a pure load balanced environnement
5 #That mean that if a satellite die, it will not be replaced
6 #There is only one Realm with every components into it
7 #All you need to to is to replace "node1" and "node2" by the DNS
8 #names of your Shinken servers
11 #The scheduler is a "Host manager". It gets the hosts and theirs
12 #services and it schedules the checks for the pollers.
13 define scheduler{
14        scheduler_name   scheduler-1
15        address  node1
16        port     7768
17        spare    0       ;is not a spare
18        realm    All
19        weight           1       ;optionnal : 1
20        }
23 #The second scheduler
24 define scheduler{
25        scheduler_name   scheduler-2
26        address  node2
27        port     7768
28        spare    0
29        realm    All
30        weight           1       ;optionnal : 1
31        }
34 #There is only one reactionner, because it does not need
35 #load balancing load
36 define reactionner{
37        reactionner_name reactionner
38        address  node1
39        port     7769
40        spare    0
41        realm    All
42        manage_sub_realms 0      ;optionnal : 1
43        min_workers       1      ;optionnal : 1
44        max_workers       15     ;optionnal : 30
45        polling_interval         1       ;optionnal : 1
46        }
48 #Pollers are here to launch checks
49 define poller{
50        poller_name     poller-All
51        address  node1
52        port     7771
53        realm    All
54        manage_sub_realms 0      ;optionnal : 0
55        min_workers       4      ;optionnal : 1
56        max_workers       4      ;optionnal : 30
57        processes_by_worker      256        ;optionnal : 256
58        polling_interval         1       ;optionnal : 1
62 #Pollers are here to launch checks
63 define poller{
64        poller_name     poller-2
65        address  node2
66        port     7771
67        realm    All
68        manage_sub_realms 0      ;optionnal : 0
69        min_workers       4      ;optionnal : 1
70        max_workers       4      ;optionnal : 30
71        processes_by_worker      256        ;optionnal : 256
72        polling_interval         1       ;optionnal : 1
76 #The arbiter definition is optionnal
77 #Like reactionner and broker, it does not need load balanced
78 define arbiter{
79        arbiter_name     Arbiter
80        host_name        node1       ;result of the get_hostname.py command (or hostname under Unix)
81        address  node1
82        port     7770
83        spare    0
84        #modules          No module for now
85        }
88 #The broker manage data export (in flat file or in database)
89 #Here just log files and status.dat file
90 define broker{
91        broker_name      broker
92        address  node1
93        port     7772
94        spare    0
95        realm    All
96        manage_sub_realms 1
97        manage_arbiters   1
98        modules           Status-Dat, Simple-log
99        }
102 ##Now the modules for broker
104 #Here the NDO/MySQL module
105 #So you can use with NagVis or Centreon
106 define module{
107        module_name      ToNdodb_Mysql
108        module_type      ndodb_mysql
109        database         ndo      ; database name
110        user             root     ; user of the database
111        password         root     ; must be changed
112        host             localhost ; host to connect
113        character_set    utf8     ;optionnal, UTF8 is the default
116 #Here a NDO/Oracle module. For Icinga web connexion
117 #Or for database admin that do not like MySQL
118 define module{
119        module_name      ToNdodb_Oracle
120        module_type      ndodb_oracle
121        database         XE              ;database name (listener in fact)
122        user             system
123        password         password        ;Yes I know I have to change my default password...
124        oracle_home      /usr/lib/oracle/xe/app/oracle/product/10.2.0/server     ;optional
128 #Here for Merlin/MySQL. for Ninja connexion
129 define module{
130        module_name      ToMerlindb_Mysql
131        module_type      merlindb
132        backend          mysql    ;backend to use, here mysql databse
133        database         merlin   ;database name
134        user             root
135        password         root
136        host             localhost
137        character_set    utf8     ;optionnal, UTF8 is the default
141 #Here the Merlin/Sqlite. No one uses it for now :)
142 define module{
143        module_name      ToMerlindb_Sqlite
144        module_type      merlindb
145        backend          sqlite    ;like the mysql, but sqlite :)
146        database_path    /tmp/mabase.sqlite  ;path of the sqlite file
150 #Here the couchdb export. Maybe use one day...
151 define module{
152        module_name      ToCouchdb
153        module_type      couchdb
154        user             root
155        password         root
156        host             localhost
160 #Export services perfdata to file
161 define module{
162        module_name      Service-Perfdata
163        module_type      service_perfdata
164        path             /usr/local/shinken/var/service-perfdata
168 #For hosts this time
169 define module{
170        module_name      Host-Perfdata
171        module_type      host_perfdata
172        path             /usr/local/shinken/var/host-perfdata
176 #The log managment
177 define module{
178        module_name      Simple-log
179        module_type      simple_log
180        path             /usr/local/shinken/var/nagios.log
184 #Status.dat and objects.cache export. For the old Nagios
185 #interface
186 define module{
187        module_name      Status-Dat
188        module_type      status_dat
189        status_file      /usr/local/shinken/var/status.dat
190        object_cache_file        /usr/local/shinken/var/objects.cache
191        status_update_interval   15
195 #A global Realm
196 define realm{
197        realm_name  All
198        default          1
204 ##Now addon about standard configuration :
205 #resultmodulation : change "on te fly" a check result, without negate or something like it
206 #escalation : like service_escalation, but a generic that host/service can call
208 #A result modulation is use to module a check result, like CRITICAL->WARNING here
209 define resultmodulation{
210        resultmodulation_name     critical_is_warning           ;required
211        exit_codes_match          2                ;optionnal, list of code to change
212        output_match              //               ;optionnal, regexp for activation of exit_code if output match
213        exit_code_modulation      1                ;code that will be put if the code match
214        output_modulation         s///        ;optionnal regexp to change output
215        longoutput_modulation     s///      ;optionnal regexp to change long_output
216        modulation_period         24×7    ;period when to apply the modulation