56 lines
2.5 KiB
INI
56 lines
2.5 KiB
INI
#===============================================================================
|
|
# SCHEDULER (S1_Scheduler)
|
|
#===============================================================================
|
|
# The scheduler is a "Host manager". It gets the hosts and their services,
|
|
# schedules the checks and transmit them to the pollers.
|
|
# Description: The scheduler is responsible for:
|
|
# - Creating the dependancy tree
|
|
# - Scheduling checks
|
|
# - Calculating states
|
|
# - Requesting actions from a reactionner
|
|
# - Buffering and forwarding results its associated broker
|
|
# https://shinken.readthedocs.org/en/latest/08_configobjects/scheduler.html
|
|
#===============================================================================
|
|
define scheduler {
|
|
scheduler_name scheduler-master ; Just the name
|
|
address localhost ; IP or DNS address of the daemon
|
|
port 7768 ; TCP port of the daemon
|
|
## Optional
|
|
spare 0 ; 1 = is a spare, 0 = is not a spare
|
|
weight 1 ; Some schedulers can manage more hosts than others
|
|
timeout 3 ; Ping timeout
|
|
data_timeout 120 ; Data send timeout
|
|
max_check_attempts 3 ; If ping fails N or more, then the node is dead
|
|
check_interval 60 ; Ping node every N seconds
|
|
|
|
## Interesting modules that can be used:
|
|
# - pickle-retention-file = Save data before exiting in flat-file
|
|
# - MemcacheRetention = Same, but in a MemCache server
|
|
# - RedisRetention = Same, but in a Redis server
|
|
# - retention-mongodb = Same, but in a MongoDB server
|
|
# - NagiosRetention = Read retention info from a Nagios retention file
|
|
# (does not save, only read)
|
|
# - SnmpBooster = Snmp bulk polling module
|
|
#modules pickle-retention-file
|
|
modules mongo_live_config
|
|
|
|
## Advanced Features
|
|
# Realm is for multi-datacenters
|
|
realm All
|
|
|
|
# Skip initial broks creation. Boot fast, but some broker modules won't
|
|
# work with it!
|
|
skip_initial_broks 0
|
|
|
|
# In NATted environments, you declare each satellite ip[:port] as seen by
|
|
# *this* scheduler (if port not set, the port declared by satellite itself
|
|
# is used)
|
|
#satellitemap poller-1=1.2.3.4:1772, reactionner-1=1.2.3.5:1773, ...
|
|
|
|
# Enable https or not
|
|
use_ssl 0
|
|
# enable certificate/hostname check, will avoid man in the middle attacks
|
|
hard_ssl_name_check 0
|
|
accept_passive_unknown_check_results 1
|
|
}
|