1 #This config file defines Shinken specific objects like
4 #This file is for defining a pure high availability environnement
5 #That means that if a satellite die, it will 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.
14 scheduler_name scheduler-master
17 spare 0 ;is not a spare
19 weight 1 ;optionnal : 1
23 #The second scheduler, the slave one
25 scheduler_name scheduler-slave
30 weight 1 ;optionnal : 1
34 #Reactionner launches notifications
36 reactionner_name reactionner-master
41 manage_sub_realms 0 ;optionnal : 1
42 min_workers 1 ;optionnal : 1
43 max_workers 15 ;optionnal : 30
44 polling_interval 1 ;optionnal : 1
48 #Reactionner launches notifications
51 reactionner_name reactionner-slave
56 manage_sub_realms 0 ;optionnal : 1
57 min_workers 1 ;optionnal : 1
58 max_workers 15 ;optionnal : 30
59 polling_interval 1 ;optionnal : 1
63 #Pollers are here to launch checks
65 poller_name poller-master
70 manage_sub_realms 0 ;optionnal : 0
71 min_workers 4 ;optionnal : 1
72 max_workers 4 ;optionnal : 30
73 processes_by_worker 256 ;optionnal : 256
74 polling_interval 1 ;optionnal : 1
78 #Pollers are here to launch checks
80 poller_name poller-slave
85 manage_sub_realms 0 ;optionnal : 0
86 min_workers 4 ;optionnal : 1
87 max_workers 4 ;optionnal : 30
88 processes_by_worker 256 ;optionnal : 256
89 polling_interval 1 ;optionnal : 1
93 #The arbiter definition IS important : without 2 defined arbiter,
94 #there is no high availability
96 arbiter_name Arbiter-master
97 host_name node1 ;result of the get_hostname.py command (or hostname under Unix)
101 #modules No module for now
104 #the slave, waiting patiently for its master to die
106 arbiter_name Arbiter-slave
107 host_name node2 ;result of the get_hostname.py command (or hostname under Unix)
111 #modules No module for now
116 #The broker manages data export (in flat file or in database)
117 #Here just log files and status.dat file
119 broker_name broker-master
126 modules Status-Dat, Simple-log
131 #The broker manages data export (in flat file or in database)
132 #Here just log files and status.dat file
134 broker_name broker-slave
141 modules Status-Dat, Simple-log
145 ##Now the modules for broker
147 #Here the NDO/MySQL module
148 #So you can use with NagVis or Centreon
150 module_name ToNdodb_Mysql
151 module_type ndodb_mysql
152 database ndo ; database name
153 user root ; user of the database
154 password root ; must be changed
155 host localhost ; host to connect
156 character_set utf8 ;optionnal, UTF8 is the default
159 #Here a NDO/Oracle module. For Icinga web connexion
160 #Or for database admin that do not like MySQL
162 module_name ToNdodb_Oracle
163 module_type ndodb_oracle
164 database XE ;database name (listener in fact)
166 password password ;Yes I know I have to change my default password...
167 oracle_home /usr/lib/oracle/xe/app/oracle/product/10.2.0/server ;optional
171 #Here for Merlin/MySQL. for Ninja connexion
173 module_name ToMerlindb_Mysql
175 backend mysql ;backend to use, here mysql databse
176 database merlin ;database name
180 character_set utf8 ;optionnal, UTF8 is the default
184 #Here the Merlin/Sqlite. No one uses it for now :)
186 module_name ToMerlindb_Sqlite
188 backend sqlite ;like the mysql, but sqlite :)
189 database_path /tmp/mabase.sqlite ;path of the sqlite file
193 #Here the couchdb export. Maybe use one day...
195 module_name ToCouchdb
203 #Export services perfdata to file
205 module_name Service-Perfdata
206 module_type service_perfdata
207 path /usr/local/shinken/var/service-perfdata
213 module_name Host-Perfdata
214 module_type host_perfdata
215 path /usr/local/shinken/var/host-perfdata
221 module_name Simple-log
222 module_type simple_log
223 path /usr/local/shinken/var/nagios.log
227 #Status.dat and objects.cache export. For the old Nagios
230 module_name Status-Dat
231 module_type status_dat
232 status_file /usr/local/shinken/var/status.dat
233 object_cache_file /usr/local/shinken/var/objects.cache
234 status_update_interval 15
247 ##Now addon about standard configuration :
248 #resultmodulation : change "on te fly" a check result, without negate or something like it
249 #escalation : like service_escalation, but a generic that host/service can call
251 #A result modulation is use to module a check result, like CRITICAL->WARNING here
252 define resultmodulation{
253 resultmodulation_name critical_is_warning ;required
254 exit_codes_match 2 ;optionnal, list of code to change
255 output_match // ;optionnal, regexp for activation of exit_code if output match
256 exit_code_modulation 1 ;code that will be put if the code match
257 output_modulation s/// ;optionnal regexp to change output
258 longoutput_modulation s/// ;optionnal regexp to change long_output
259 modulation_period 24×7 ;period when to apply the modulation
263 #Escalation is a generic version of service_escalation and host_escalation
264 #It can be called by services/hosts so it will be far more easier to be
267 escalation_name ToLevel2 ;required
270 notification_interval 1
271 escalation_period 24x7 ;optionnal, if none, always true
272 escalation_options d,u,r,w,c ,optionnal, if none, all states (d,u,r,w,c)
274 # contact_groups admins