Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 341 lines (271 sloc) 10.835 kB
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
1 #This config file defined Shinken specific objects like
2 #satellites or Realms
3 #
7d8cbdf @lukehasnoname Updated cfg documentation
lukehasnoname authored
4 #This file is for defining a simple environement :
5 #*one scheduler that schedules checks (but does not launch them)
6 #*one poller (that launches checks)
7 #*one reactionner (that sends notifiations)
8 #*one broker (that gives jobs to modules. Modules export data like logs, status.dat, mysql export, etc etc)
9 #*some of the brokers modules (that do the job)
10 #*one arbiter (that reads the configuration and dispatches it to all others)
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
11
f4c6c83 @zoranzaric Removes trailing spaces.
zoranzaric authored
12 #So here no high availability, just a simple "Nagios equivalent" (but with
7d8cbdf @lukehasnoname Updated cfg documentation
lukehasnoname authored
13 #more perf and less code! )
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
14
15 #The scheduler is a "Host manager". It get hosts and theirs
16 #services. It scheduler checks for them.
e4878d9 Put shinken specific objects into their own file
nap authored
17 define scheduler{
f4c6c83 @zoranzaric Removes trailing spaces.
zoranzaric authored
18 scheduler_name scheduler-1 ; just the name
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
19 address localhost ; ip or dns address of the daemon
20 port 7768 ; tcp port of the daemon
e4878d9 Put shinken specific objects into their own file
nap authored
21
0815324 @lukehasnoname Small comment changes
lukehasnoname authored
22 #optional
745cd19 Clean : clean output so we can have good test from log output only.
Gabes Jean authored
23 spare 0 ; (0 = not a spare, 1 = is spare)
24 weight 1 ; (some schedulers can manage more hosts than others)
25 timeout 3 ; 'ping' timeout
26 data_timeout 120 ; 'data send' timeout
27 max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
1f6f6e0 Add: retention save at the exit of the scheduler.
Gabes Jean authored
28 # modules PickleRetention,MemcacheRetention
e4878d9 Put shinken specific objects into their own file
nap authored
29
295cb71 Add: first version of a Nagios retention load file :) Just load, not …
Gabes Jean authored
30
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
31 #advanced feature
0815324 @lukehasnoname Small comment changes
lukehasnoname authored
32 realm All ; optional (realm are multisites features)
e4878d9 Put shinken specific objects into their own file
nap authored
33 }
34
35
0815324 @lukehasnoname Small comment changes
lukehasnoname authored
36 #Pollers launch checks
e4878d9 Put shinken specific objects into their own file
nap authored
37 define poller{
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
38 poller_name poller-1
39 address localhost
40 port 7771
41
0815324 @lukehasnoname Small comment changes
lukehasnoname authored
42 #optional
43 manage_sub_realms 0 ; optional and advanced: take jobs from schedulers of sub realms?
44 min_workers 4 ; optional : start with N processes workers
45 max_workers 4 ; optional : no more than N processes workers
46 processes_by_worker 256 ; optional : each workers manage 256 checks
47 polling_interval 1 ; optional : take jobs from schedulers each 1 second
745cd19 Clean : clean output so we can have good test from log output only.
Gabes Jean authored
48 timeout 3 ; 'ping' timeout
49 data_timeout 120 ; 'data send' timeout
50 max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
51
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
52
53 #advanced feature
54 realm All
e4878d9 Put shinken specific objects into their own file
nap authored
55 }
56
57
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
58 #Reactionner launch notifications
59 define reactionner{
60 reactionner_name reactionner-1
61 address localhost
62 port 7769
63 spare 0
64
65 #optionnal
66 manage_sub_realms 0 ;optionnal : like for poller
67 min_workers 1 ;optionnal : like for poller
68 max_workers 15 ;optionnal : like for poller
69 polling_interval 1 ;optionnal : like for poller
745cd19 Clean : clean output so we can have good test from log output only.
Gabes Jean authored
70 timeout 3 ; 'ping' timeout
71 data_timeout 120 ; 'data send' timeout
72 max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
73
74 #optionnal
75 realm All
76 }
86323da *Add the Arbiters in conf (Arbiterlinks in code). So now the shinken-…
nap authored
77
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
78 #The broker manage data export (in flat file or in database)
79 #with it's modules
80 #Here just log files and status.dat file modules
81 define broker{
82 broker_name broker-1
83 address localhost
84 port 7772
85 spare 0
86
87 #Which modules to load? Here only status.dat and nagios.log
88 modules Status-Dat, Simple-log
680bdaf *Fix: broker can now correlty stop modules instances.
Gabes Jean authored
89 # modules Livestatus, Simple-log, Service-Perfdata
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
90
91 #optionnal
92 manage_sub_realms 1 ; optionnal, like for poller
f4c6c83 @zoranzaric Removes trailing spaces.
zoranzaric authored
93 manage_arbiters 1 ; optionnal : take data from Arbiter. There should be
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
94 ;only one broker for the arbiter
f4c6c83 @zoranzaric Removes trailing spaces.
zoranzaric authored
95
745cd19 Clean : clean output so we can have good test from log output only.
Gabes Jean authored
96 timeout 3 ; 'ping' timeout
97 data_timeout 120 ; 'data send' timeout
98 max_check_attempts 3 ; if at least max_check_attempts ping failed, the node is DEAD
99
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
100 #advanced
101 realm All
afeed9f *Add the Arbiter spare managment : an arbiter is master, the other is…
nap authored
102 }
103
104
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
105 ##Now the modules for broker. First the 2 that are used, and all the others :)
86323da *Add the Arbiters in conf (Arbiterlinks in code). So now the shinken-…
nap authored
106
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
107 #The log managment for ALL daemons (all in one log, cool isn't it? ).
108 define module{
109 module_name Simple-log
110 module_type simple_log
38304a8 *Big change : new layout:
Gabes Jean authored
111 path /usr/local/shinken/var/nagios.log
0433564 Add : archive old log file in simple log broker module.
Gabes Jean authored
112 archive_path /usr/local/shinken/var/archives/
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
113 }
86323da *Add the Arbiters in conf (Arbiterlinks in code). So now the shinken-…
nap authored
114
115
f4c6c83 @zoranzaric Removes trailing spaces.
zoranzaric authored
116 #Status.dat and objects.cache export. For the old Nagios
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
117 #interface
118 define module{
119 module_name Status-Dat
120 module_type status_dat
bc98bb1 Fix : the status.dat name is status.dat, not data.
Gabes Jean authored
121 status_file /usr/local/shinken/var/status.dat
38304a8 *Big change : new layout:
Gabes Jean authored
122 object_cache_file /usr/local/shinken/var/objects.cache
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
123 status_update_interval 15 ; update status.dat every 15s
124 }
86323da *Add the Arbiters in conf (Arbiterlinks in code). So now the shinken-…
nap authored
125
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
126 ##All other modules thtat can be called if you have installed
127 #the databses, or if you want to test something else :)
e4878d9 Put shinken specific objects into their own file
nap authored
128
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
129 #Here the NDO/MySQL module
130 #So you can use with NagVis or Centreon
c99c333 *Rename plugins into modules
nap authored
131 define module{
132 module_name ToNdodb_Mysql
133 module_type ndodb_mysql
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
134 database ndo ; database name
135 user root ; user of the database
136 password root ; must be changed
137 host localhost ; host to connect to
138 character_set utf8 ;optionnal, UTF8 is the default
f4c6c83 @zoranzaric Removes trailing spaces.
zoranzaric authored
139 }
e4878d9 Put shinken specific objects into their own file
nap authored
140
141
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
142 #Here a NDO/Oracle module. For Icinga web connexion
143 #Or for DBA that do not like MySQL
c99c333 *Rename plugins into modules
nap authored
144 define module{
145 module_name ToNdodb_Oracle
146 module_type ndodb_oracle
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
147 database XE ;database name (listener in fact)
148 user system ;user to connect
149 password password ;Yes I know I have to change my default password...
150 oracle_home /usr/lib/oracle/xe/app/oracle/product/10.2.0/server ;optional, but can be useful
151 }
e4878d9 Put shinken specific objects into their own file
nap authored
152
463bcfb *Remove some propeties from broks that cause pb with deepcopy
nap authored
153
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
154 #Here for Merlin/MySQL. For the cool Ninja connexion
c99c333 *Rename plugins into modules
nap authored
155 define module{
156 module_name ToMerlindb_Mysql
463bcfb *Remove some propeties from broks that cause pb with deepcopy
nap authored
157 module_type merlindb
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
158 backend mysql ;backend to use, here mysql databse
159 database merlin ;database name
160 user root ; ? .. yes, the user of the database...
161 password root ; wtf? you ask?
162 host localhost ; host of the database
e4878d9 Put shinken specific objects into their own file
nap authored
163 character_set utf8 ;optionnal, UTF8 is the default
164 }
165
463bcfb *Remove some propeties from broks that cause pb with deepcopy
nap authored
166
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
167 #Here the Merlin/Sqlite. No one use it for now :)
168 #You look at something : it's also the merlindb module, like the previous,
169 #it's the same code, it's just the backend parameter that change (and path).
c99c333 *Rename plugins into modules
nap authored
170 define module{
171 module_name ToMerlindb_Sqlite
f4c6c83 @zoranzaric Removes trailing spaces.
zoranzaric authored
172 module_type merlindb
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
173 backend sqlite ;like the mysql, but sqlite :)
174 database_path /tmp/merlindb.sqlite ;path of the sqlite file
3e3ee5d *Add the merlin db support in sqlite
nap authored
175 }
176
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
177
178 #Here the couchdb export. Maybe use one day...
179 #I should do a mangodb too one day...
180 #and casandra...
181 #and voldemort...
182 #and all other NoSQL database in fact :)
c99c333 *Rename plugins into modules
nap authored
183 define module{
184 module_name ToCouchdb
185 module_type couchdb
fa1236a *Add a first couchdb plugin. Couchdb is a document database server. A…
nap authored
186 user root
187 password root
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
188 host localhost
fa1236a *Add a first couchdb plugin. Couchdb is a document database server. A…
nap authored
189 }
190
191
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
192 #Export services perfdata to flat file. for centreon or
193 #perfparse
c99c333 *Rename plugins into modules
nap authored
194 define module{
195 module_name Service-Perfdata
196 module_type service_perfdata
38304a8 *Big change : new layout:
Gabes Jean authored
197 path /usr/local/shinken/var/service-perfdata
82a2eca Add : mode and template parameter to service_perfdata. More is used.
Gabes Jean authored
198 # mode a ; optionnal. a = append, w = overwrite, p =pipe
199 # template $LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$SERVICESTATE$\n
e4878d9 Put shinken specific objects into their own file
nap authored
200 }
201
299bf64 Add a host perfdata module.
nap authored
202
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
203 #For hosts this time
204 #like the previous, but for hosts....
299bf64 Add a host perfdata module.
nap authored
205 define module{
206 module_name Host-Perfdata
207 module_type host_perfdata
38304a8 *Big change : new layout:
Gabes Jean authored
208 path /usr/local/shinken/var/host-perfdata
1a34dfd Add: template and more for host perf data module.
Gabes Jean authored
209 # mode a ; optionnal. a = append, w = overwrite, p =pipe
210 # template $LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTOUTPUT$\t$HOSTSTATE$\t$HOSTPERFDATA$\n
211
d2bf0d7 *Bug fixes : services groups in ndo/MySQL/Oracle and in couchdb raise…
nap authored
212 }
213
214
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
215 #You know livestatus? Yes, there a Livestatus module for shinken too :)
456c501 @lausser *Add a livestatus broker definition to shinken-specific.cfg
lausser authored
216 define module{
217 module_name Livestatus
218 module_type livestatus
219 host * ; * = listen on all configured ip addresses
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
220 port 50000 ; port to listen
a773c06 @lausser *Fix a lot of bugs in the livestatus module, perftuning, better handl…
lausser authored
221 database_file /usr/local/shinken/var/livestatus.db
456c501 @lausser *Add a livestatus broker definition to shinken-specific.cfg
lausser authored
222 }
223
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
224
ffbd460 Add: syslog broker module and catch from global parameter.
Gabes Jean authored
225 #Send all logs to syslog
226 define module{
227 module_name Syslog
228 module_type syslog
229 }
230
231
bd6a3b3 Add : conf sample for PNP integration.
Gabes Jean authored
232 #Use with the PNP interface
233 define module{
234 module_name NPCD
235 module_type npcdmod
236 config_file /usr/local/pnp4nagios/etc/npcd.cfg
237 }
238
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
239
34e1f64 *Add : first arbiter module : load from GLPI with webservices (xmlrpc)!
Gabes Jean authored
240
17a7a16 Add: missing module example in the configuration.
Gabes Jean authored
241 ############################# For the schedulers
242 #Now the good flat file retention module
243 define module{
244 module_name PickleRetention
245 module_type pickle_retention_file
246 path /tmp/retention.dat
247 }
248
249
295cb71 Add: first version of a Nagios retention load file :) Just load, not …
Gabes Jean authored
250 ############################# For the schedulers
251 #Now the good flat file retention module
252 define module{
253 module_name NagiosRetention
254 module_type nagios_retention_file
255 path /tmp/retention-nagios.dat
256 }
257
258
17a7a16 Add: missing module example in the configuration.
Gabes Jean authored
259 #Now the memcache one
260 #Now the good flat file retention module
261 define module{
262 module_name MemcacheRetention
263 module_type memcache_retention
264 server 127.0.0.1
265 port 11211
266 }
267
268
c25f871 Add: redis retention module like the memcache but with... a redis ser…
Gabes Jean authored
269 #And the redis one
270 #Now the good flat file retention module
271 define module{
272 module_name RedisRetention
273 module_type redis_retention
274 server 127.0.0.1
275 }
276
277
17a7a16 Add: missing module example in the configuration.
Gabes Jean authored
278
34e1f64 *Add : first arbiter module : load from GLPI with webservices (xmlrpc)!
Gabes Jean authored
279 #You know GLPI? You can load your hosts from this app (
280 #with the webservices plugins for GLPI, in xmlrpc mode)
281 #All hosts read from this will be added to the others of the
282 #standard flat file
283 #Warning : just load host_name, experimental.
284 define module{
285 module_name GLPIImport
286 module_type glpi_import
287 uri http://localhost/glpi/plugins/webservices/xmlrpc.php
288 login_name glpi
289 login_password glpi
0db950f *Add : use_property property in GLPI module configuration to choose w…
Gabes Jean authored
290 # use_property otherserial ;optionnal. Will take use value from the otherserial
f4c6c83 @zoranzaric Removes trailing spaces.
zoranzaric authored
291 # field in GLPI (Inventory number: in the web interface)
34e1f64 *Add : first arbiter module : load from GLPI with webservices (xmlrpc)!
Gabes Jean authored
292 }
293
b1cafe3 @vaxvms Add an NSCA server as an arbiter module
vaxvms authored
294 #You know NSCA? You can send check result to shinken
295 #using send_nsca command
296 define module{
297 module_name NSCA
298 module_type nsca_server
299 host *
300 port 5667
301 encryption_method 0
302 password helloworld
303 }
304
34e1f64 *Add : first arbiter module : load from GLPI with webservices (xmlrpc)!
Gabes Jean authored
305
306
307
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
308 #The arbiter definition is optionnal
309 #WARNING : You must change host_name with the
310 #hostname of your machine !!!!
311 define arbiter{
312 arbiter_name Arbiter-Master
63718e6 Now arbiter host_name property is not mandatory. But WARNING : for a …
Gabes Jean authored
313 # host_name node1 ;result of the hostname command under Unix
2021162 Fix: do not activate NSCA daemon by default.
Gabes Jean authored
314 address localhost ;IP or DNS adress
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
315 port 7770
316 spare 0
2021162 Fix: do not activate NSCA daemon by default.
Gabes Jean authored
317 #uncomment the line below if you want to use the GLPI module and the NSCA one
318 # modules GLPIImport, NSCA
2297144 *a HUGE clean on shinken-specific.cfg file.
nap authored
319 }
320
321
322 #Very advanced feature for multisite managment.
323 #Consider look at the doc before touch it :)
e4878d9 Put shinken specific objects into their own file
nap authored
324 define realm{
325 realm_name All
326 default 1
327 }
16e103f *Add : test for resultmodulation
Gabes Jean authored
328
329
330
331
332 ###Now specific objects that allow easy change in the service/hots behavior
333
334 #A result modulation is use to module a check result, like CRITICAL->WARNING here
335 define resultmodulation{
336 resultmodulation_name critical_is_warning ;required
337 exit_codes_match 2 ;optionnal, list of code to change
338 exit_code_modulation 1 ;code that will be put if the code match
339 modulation_period 24×7 ;period when to apply the modulation
340 }
Something went wrong with that request. Please try again.