1 #This config file defined Shinken specific objects like
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.
14 scheduler_name scheduler-Master-1
17 spare 0 ;is not a spare
19 weight 1 ;optionnal : 1
27 scheduler_name scheduler-Master-2
32 weight 1 ;optionnal : 1
38 #There is only one reactionner, because it do not need
41 reactionner_name reactionner-Master-1
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
54 #There is only one reactionner, because it do not need
57 reactionner_name reactionner-Master-2
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
71 #Poller are here to launch checks
73 poller_name poller-Master-1
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
87 #Poller are here to launch checks
89 poller_name poller-Master-2
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
104 #The arbiter definition is optionnal
105 #Like reactionner and broker, it do not need load balanced
108 # host_name node1 ;result of the get_hostname.py command (or hostname under Unix)
112 #modules No module for now
116 #The broker manage data export (in flat file or in database)
117 #Here just log files and status.dat file
119 broker_name broker-Master
126 modules Simple-log,Livestatus
132 #The broker manage data export (in flat file or in database)
133 #Here just log files and status.dat file
135 broker_name broker-Slave
142 modules Simple-log,Livestatus
148 ##Now the modules for broker
150 #Here the NDO/MySQL module
151 #So you can use with NagVis or Centreon
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
165 module_name ToNdodb_Oracle
166 module_type ndodb_oracle
167 database XE ;database name (listener in fact)
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
176 module_name ToMerlindb_Mysql
178 backend mysql ;backend to use, here mysql databse
179 database merlin ;database name
183 character_set utf8 ;optionnal, UTF8 is the default
187 #Here the Merlin/Sqlite. No one use it for now :)
189 module_name ToMerlindb_Sqlite
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...
198 module_name ToCouchdb
206 #Export services perfdata to file
208 module_name Service-Perfdata
209 module_type service_perfdata
210 path /usr/local/shinken/var/service-perfdata
216 module_name Host-Perfdata
217 module_type host_perfdata
218 path /usr/local/shinken/var/host-perfdata
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
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 :)
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
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