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 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-1
17 spare 0 ;is not a spare
19 weight 1 ;optionnal : 1
25 scheduler_name scheduler-2
30 weight 1 ;optionnal : 1
34 #There is only one reactionner, because it does not need
37 reactionner_name reactionner
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
48 #Pollers are here to launch checks
50 poller_name poller-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
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
80 host_name node1 ;result of the get_hostname.py command (or hostname under Unix)
84 #modules No module for now
88 #The broker manage data export (in flat file or in database)
89 #Here just log files and status.dat file
98 modules Status-Dat, Simple-log
102 ##Now the modules for broker
104 #Here the NDO/MySQL module
105 #So you can use with NagVis or Centreon
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
119 module_name ToNdodb_Oracle
120 module_type ndodb_oracle
121 database XE ;database name (listener in fact)
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
130 module_name ToMerlindb_Mysql
132 backend mysql ;backend to use, here mysql databse
133 database merlin ;database name
137 character_set utf8 ;optionnal, UTF8 is the default
141 #Here the Merlin/Sqlite. No one uses it for now :)
143 module_name ToMerlindb_Sqlite
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...
152 module_name ToCouchdb
160 #Export services perfdata to file
162 module_name Service-Perfdata
163 module_type service_perfdata
164 path /usr/local/shinken/var/service-perfdata
170 module_name Host-Perfdata
171 module_type host_perfdata
172 path /usr/local/shinken/var/host-perfdata
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
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
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