Fix : error message with unknown host for a service.
[shinken.git] / test / etc / test_stack2 / shinken-specific-lb-only.cfg
blob4c196d24ba259fe4c888f76d09437ecfb2e3eeca
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 one into it
7 #All you need to to is to change address from node1 and node2
8 #with the DNS names of yours servers
11 #The scheduler is a "Host manager". It get hosts and theirs
12 #services. It scheduler checks for them.
13 define scheduler{
14        scheduler_name   scheduler-Master-1
15        address  localhost
16        port     7768
17        spare    0       ;is not a spare
18        realm    All
19        weight           1       ;optionnal : 1
20        timeout          1
21        max_check_attempts       1
22        }
25 #The second scheduler
26 define scheduler{
27        scheduler_name   scheduler-Master-2
28        address  localhost
29        port     8768
30        spare    0
31        realm    All
32        weight           1       ;optionnal : 1
33        timeout          1
34        max_check_attempts       1
35        }
38 #There is only one reactionner, because it do not need
39 #load balancing load
40 define reactionner{
41        reactionner_name reactionner-Master-1
42        address  localhost
43        port     7769
44        spare    0
45        realm    All
46        manage_sub_realms 0      ;optionnal : 1
47        min_workers       1      ;optionnal : 1
48        max_workers       15     ;optionnal : 30
49        polling_interval         1       ;optionnal : 1
50        timeout          1
51        max_check_attempts       1
52        }
54 #There is only one reactionner, because it do not need
55 #load balancing load
56 define reactionner{
57        reactionner_name reactionner-Master-2
58        address  localhost
59        port     8769
60        spare    0
61        realm    All
62        manage_sub_realms 0      ;optionnal : 1
63        min_workers       1      ;optionnal : 1
64        max_workers       15     ;optionnal : 30
65        polling_interval         1       ;optionnal : 1
66        timeout          1
67        max_check_attempts       1
68        }
71 #Poller are here to launch checks
72 define poller{
73        poller_name     poller-Master-1
74        address  localhost
75        port     7771
76        realm    All
77        manage_sub_realms 0      ;optionnal : 0
78        min_workers       4      ;optionnal : 1
79        max_workers       4      ;optionnal : 30
80        processes_by_worker      256        ;optionnal : 256
81        polling_interval         1       ;optionnal : 1
82        timeout          1
83        max_check_attempts       1
87 #Poller are here to launch checks
88 define poller{
89        poller_name     poller-Master-2
90        address  localhost
91        port     8771
92        realm    All
93        spare    0
94        manage_sub_realms 0      ;optionnal : 0
95        min_workers       4      ;optionnal : 1
96        max_workers       4      ;optionnal : 30
97        processes_by_worker      256        ;optionnal : 256
98        polling_interval         1       ;optionnal : 1
99        timeout          1
100        max_check_attempts       1
104 #The arbiter definition is optionnal
105 #Like reactionner and broker, it do not need load balanced
106 define arbiter{
107        arbiter_name     Arbiter
108 #       host_name       node1       ;result of the get_hostname.py command (or hostname under Unix)
109        address  localhost
110        port     7770
111        spare    0
112        #modules          No module for now
113        }
116 #The broker manage data export (in flat file or in database)
117 #Here just log files and status.dat file
118 define broker{
119        broker_name      broker-Master
120        address  localhost
121        port     7772
122        spare    0
123        realm    All
124        manage_sub_realms 1
125        manage_arbiters   1
126        modules           Simple-log,Livestatus
127        timeout          1
128        max_check_attempts       1
129        }
132 #The broker manage data export (in flat file or in database)
133 #Here just log files and status.dat file
134 define broker{
135        broker_name      broker-Slave
136        address  localhost
137        port     8772
138        spare    1
139        realm    All
140        manage_sub_realms 1
141        manage_arbiters   1
142        modules           Simple-log,Livestatus
143        timeout          1
144        max_check_attempts       1
145        }
148 ##Now the modules for broker
150 #Here the NDO/MySQL module
151 #So you can use with NagVis or Centreon
152 define module{
153        module_name      ToNdodb_Mysql
154        module_type      ndodb_mysql
155        database         ndo      ; database name
156        user             root     ; user of the database
157        password         root     ; must be changed
158        host             localhost ; host to connect
159        character_set    utf8     ;optionnal, UTF8 is the default
162 #Here a NDO/Oracle module. For Icinga web connexion
163 #Or for database admin that do not like MySQL
164 define module{
165        module_name      ToNdodb_Oracle
166        module_type      ndodb_oracle
167        database         XE              ;database name (listener in fact)
168        user             system
169        password         password        ;Yes I know I have to change my default password...
170        oracle_home      /usr/lib/oracle/xe/app/oracle/product/10.2.0/server     ;optional
174 #Here for Merlin/MySQL. for Ninja connexion
175 define module{
176        module_name      ToMerlindb_Mysql
177        module_type      merlindb
178        backend          mysql    ;backend to use, here mysql databse
179        database         merlin   ;database name
180        user             root
181        password         root
182        host             localhost
183        character_set    utf8     ;optionnal, UTF8 is the default
187 #Here the Merlin/Sqlite. No one use it for now :)
188 define module{
189        module_name      ToMerlindb_Sqlite
190        module_type      merlindb
191        backend          sqlite    ;like the mysql, but sqlite :)
192        database_path    /tmp/mabase.sqlite  ;path of the sqlite file
196 #Here the couchdb export. Maybe use one day...
197 define module{
198        module_name      ToCouchdb
199        module_type      couchdb
200        user             root
201        password         root
202        host             localhost
206 #Export services perfdata to file
207 define module{
208        module_name      Service-Perfdata
209        module_type      service_perfdata
210        path             /usr/local/shinken/var/service-perfdata
214 #For hosts this time
215 define module{
216        module_name      Host-Perfdata
217        module_type      host_perfdata
218        path             /usr/local/shinken/var/host-perfdata
222 #The log managment
223 define module{
224        module_name      Simple-log
225        module_type      simple_log
226        path             /usr/local/shinken/var/nagios.log
227         archive_path     /usr/local/shinken/var/archives/
231 #Status.dat and objects.cache export. For the old Nagios
232 #interface
233 define module{
234        module_name      Status-Dat
235        module_type      status_dat
236        status_file      /usr/local/shinken/var/status.dat
237        object_cache_file        /usr/local/shinken/var/objects.cache
238        status_update_interval   15
242 #You know livestatus? Yes, there a  Livestatus module for shinken too :)
243 define module{
244        module_name      Livestatus
245        module_type      livestatus
246        host             *       ; * = listen on all configured ip addresses
247        port             50000   ; port to listen
248        database_file    /usr/local/shinken/var/livestatus.db
252 #A global Realm
253 define realm{
254        realm_name  All
255        default          1
261 ##Now addon about standard configuration :
262 #resultmodulation : change "on te fly" a check result, without negate or something like it
263 #escalation : like service_escalation, but a generic that host/service can call
265 #A result modulation is use to module a check result, like CRITICAL->WARNING here
266 define resultmodulation{
267        resultmodulation_name     critical_is_warning           ;required
268        exit_codes_match          2                ;optionnal, list of code to change
269        output_match              //               ;optionnal, regexp for activation of exit_code if output match
270        exit_code_modulation      1                ;code that will be put if the code match
271        output_modulation         s///        ;optionnal regexp to change output
272        longoutput_modulation     s///      ;optionnal regexp to change long_output
273        modulation_period         24×7    ;period when to apply the modulation