#******************************************************************************* # Monitord Configuration file #******************************************************************************* #******************************************************************************* # Daemon configuration attributes #------------------------------------------------------------------------------- # MANAGER_TIMER: Timer in seconds, monitord evaluates host timeouts. # MONITORING_INTERVAL_HOST has to be greater than this value. # # MONITORING_INTERVAL_HOST: Monitord will wait this time (in seconds) without # receiving any beacon before restarting the probes # # HOST_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring # information. Use 0 to disable HOST monitoring # recording. # # VM_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring # information. Use 0 to disable VM monitoring recording. # # DB: Database configuration attributes. Monitord will use the DB configuration # in oned.conf. The following attributes can be tuned: # - CONNECTIONS: Number of DB connections. The DB needs to be configure to # support oned + monitord connections. # # LOG: Configuration for the logging system # - system: defines the logging system: # file to log in the sched.log file # syslog to use the syslog facilities # - debug_level: # 0 = ERROR # 1 = WARNING # 2 = INFO # 3 = DEBUG Includes general scheduling information (default) # 4 = DDEBUG Includes time taken for each step # 5 = DDDEBUG Includes detailed information about the scheduling # decision, such as VM requirements, Host ranking for # each VM, etc. This will impact the performance # #******************************************************************************* #MANAGER_TIMER = 15 #MONITORING_INTERVAL_HOST = 180 #HOST_MONITORING_EXPIRATION_TIME = 43200 #VM_MONITORING_EXPIRATION_TIME = 43200 DB = [ CONNECTIONS = 15 ] LOG = [ system = "FILE", debug_level = 3 ] #******************************************************************************* # Network #******************************************************************************* # Reads messages from monitor agent # # addresss : network address to bind the UDP listener to. # monitor_address: agents will send updates to this monitor address # if "auto" is used, agents will detect the address # from the ssh connection frontend -> host ($SSH_CLIENT), # "auto" is not usable for HA setup # # port : listening port # threads : number of processing threads # pubkey : Absolute path to public key (agents). Empty for no encryption. # prikey : Absolute path to private key (monitord). Empty for no encryption. #******************************************************************************* NETWORK = [ ADDRESS = "0.0.0.0", MONITOR_ADDRESS = "auto", PORT = 4124, THREADS = 8, PUBKEY = "", PRIKEY = "" ] #******************************************************************************* # Probes Configuration #******************************************************************************* # PROBES_PERIOD: Time in seconds to execute each probe category # beacon_host: heartbeat for the host # system_host: host static/configuration information # monitor_host: host variable information # state_vm: VM status (ie. running, error, stopped...) # monitor_vm: VM resource usage metrics # sync_vm_state: When monitor probes have been stopped more than sync_vm_state # seconds, send a complete VM report. #******************************************************************************* PROBES_PERIOD = [ BEACON_HOST = 30, SYSTEM_HOST = 600, MONITOR_HOST = 120, STATE_VM = 5, MONITOR_VM = 30, SYNC_STATE_VM = 180 ] #******************************************************************************* # Information Driver Configuration #******************************************************************************* # You can add more monitor drivers with different configurations but make # sure it has different names. # # name : name for this monitor driver # # executable: path of the monitor driver executable, can be an # absolute path or relative to $ONE_LOCATION/lib/mads (or # /usr/lib/one/mads/ if OpenNebula was installed in /) # # arguments : for the driver executable, usually a probe configuration file, # can be an absolute path or relative to $ONE_LOCATION/etc (or # /etc/one/ if OpenNebula was installed in /) # # threads : How many threads should be used to process messages # 0 process the message in main loop #------------------------------------------------------------------------------- # KVM/QEMU Information Driver Manager Configuration # -r number of retries when monitoring a host # -t number of threads, i.e. number of hosts monitored at the same time # -w Timeout in seconds to execute external commands (default unlimited) #------------------------------------------------------------------------------- IM_MAD = [ NAME = "kvm", SUNSTONE_NAME = "KVM", EXECUTABLE = "one_im_ssh", ARGUMENTS = "-r 3 -t 15 -w 90 kvm", THREADS = 0 ] IM_MAD = [ NAME = "qemu", SUNSTONE_NAME = "QEMU", EXECUTABLE = "one_im_ssh", ARGUMENTS = "-r 3 -t 15 -w 90 qemu", THREADS = 0 ] #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- # LXD Information Driver Manager Configuration # -r number of retries when monitoring a host # -t number of threads, i.e. number of hosts monitored at the same time # -w Timeout in seconds to execute external commands (default unlimited) #------------------------------------------------------------------------------- IM_MAD = [ NAME = "lxd", SUNSTONE_NAME = "LXD", EXECUTABLE = "one_im_ssh", ARGUMENTS = "-r 3 -t 15 -w 90 lxd", THREADS = 0 ] #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- # Firecracker Information Driver Manager Configuration # -r number of retries when monitoring a host # -t number of threads, i.e. number of hosts monitored at the same time # -w Timeout in seconds to execute external commands (default unlimited) #------------------------------------------------------------------------------- IM_MAD = [ NAME = "lxc", SUNSTONE_NAME = "LXC", EXECUTABLE = "one_im_ssh", ARGUMENTS = "-r 3 -t 15 -w 90 lxc", THREADS = 0 ] #------------------------------------------------------------------------------- ### #------------------------------------------------------------------------------- ### # LXD UDP-push Information Driver Manager Configuration ### # -r number of retries when monitoring a host ### # -t number of threads, i.e. number of hosts monitored at the same time ### # -w Timeout in seconds to execute external commands (default unlimited) ### #------------------------------------------------------------------------------- ### IM_MAD = [ ### NAME = "firecracker", ### SUNSTONE_NAME = "Firecracker", ### EXECUTABLE = "one_im_ssh", ### ARGUMENTS = "-r 3 -t 15 -w 90 firecracker", ### THREADS = 0 ### ] ### #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- # Dummy Information Driver Manager Configuration #------------------------------------------------------------------------------- # IM_MAD = [ # NAME = "dummy", # SUNSTONE_NAME = "Dummy", # EXECUTABLE = "one_im_sh", # ARGUMENTS = "-r 3 -t 15 -w 90 dummy", # THREADS = 0 # ] #-------------------------------------------------------------------------------