###############################################################################
#
#  Nagios-Mod-Gearman - distribute checks with gearman
#
#  Copyright (c) 2010 Sven Nierlein
#
#  Copyright (c) 2024 Nagios Development Team <devteam@nagios.com>
#
#  Nagios-Mod-Gearman NEB Module Config
#
###############################################################################

# use debug to increase the verbosity of the module.
# Possible values are:
#     0 = only errors
#     1 = debug messages
#     2 = trace messages
#     3 = trace and all gearman related logs are going to stdout.
# Default is 0.
debug=

# Path to the logfile.
logfile=

# sets the addess of your gearman job server. Can be specified
# more than once to add more server.
server=


# sets the address of your 2nd (duplicate) gearman job server. Can
# be specified more than once o add more servers.
dupserver=


# defines if the module should distribute execution of
# eventhandlers.
eventhandler=


# defines if the module should distribute execution of
# notifications.
notifications=


# defines if the module should distribute execution of
# service checks.
services=


# defines if the module should distribute execution of
# host checks.
hosts=


# sets a list of hostgroups which will go into seperate
# queues. Either specify a comma seperated list or use
# multiple lines.
hostgroups=

# sets a list of servicegroups which will go into seperate
# queues.
servicegroups=

# Set this to 'no' if you want Mod-Gearman to only take care of
# servicechecks. No hostchecks will be processed by Mod-Gearman. Use
# this option to disable hostchecks and still have the possibility to
# use hostgroups for easy configuration of your services.
# If set to yes, you still have to define which hostchecks should be
# processed by either using 'hosts' or the 'hostgroups' option.
# Default is Yes.
do_hostchecks=

# This settings determines if all eventhandlers go into a single
# 'eventhandlers' queue or into the same queue like normal checks
# would do.
route_eventhandler_like_checks=

# enables or disables encryption. It is strongly
# advised to not disable encryption. Anybody will be
# able to inject packages to your worker.
# Encryption is enabled by default and you have to
# explicitly disable it.
# When using encryption, you will either have to
# specify a shared password with key=... or a
# keyfile with keyfile=...
# Default is On.
encryption=


# A shared password which will be used for
# encryption of data pakets. Should be at least 8
# bytes long. Maximum length is 32 characters.
key=


# The shared password will be read from this file.
# Use either key or keyfile. Only the first 32
# characters will be used.
keyfile=


# use_uniq_jobs
# Using uniq keys prevents the gearman queues from filling up when there
# is no worker. However, gearmand seems to have problems with the uniq
# key and sometimes jobs get stuck in the queue. Set this option to 'off'
# when you run into problems with stuck jobs but make sure your worker
# are running.
use_uniq_jobs=


# Log gearman job submission details
# Default is 60
log_stats_interval=



###############################################################################
#
# NEB Module Config
#
# the following settings are for the neb module only and
# will be ignored by the worker.
#
###############################################################################

# sets a list of hostgroups which will not be executed
# by gearman. They are just passed through.
# Default is none
localhostgroups=


# sets a list of servicegroups which will not be executed
# by gearman. They are just passed through.
# Default is none
localservicegroups=

# The queue_custom_variable can be used to define the target queue
# by a custom variable in addition to host/servicegroups. When set
# for ex. to 'WORKER' you then could define a '_WORKER' custom
# variable for your hosts and services to directly set the worker
# queue. The host queue is inherited unless overwritten
# by a service custom variable. Set the value of your custom
# variable to 'local' to bypass Mod-Gearman (Same behaviour as in
# localhostgroups/localservicegroups).
queue_custom_variable=

# Enable or disable result worker thread. The default is one, but
# you can set it to zero to disabled result workers, for example
# if you only want to export performance data.
# Default: 1
result_workers=


# defines if the module should distribute perfdata
# to gearman.
# Note: processing of perfdata is not part of
# nagios-mod-gearman. You will need additional worker for
# handling performance data, like ex. pnp4nagios.
# Performance data is just written to the gearman
# queue and not further processed.
# You can specify multiple queues by comma separated list.
# Default: no
perfdata=

# Set perfdata_send_all=yes to submit all performance data
# of all hosts and services regardless of if they
# have 'process_performance_data' enabled or not.
# Default: no
perfdata_send_all=

# perfdata mode overwrite helps preventing the perdata queue getting to big
# 1 = overwrote
# 2 = append
perfdata_mode=

# The Mod-Gearman NEB module will submit a fake result for orphaned host
# checks with a message saying there is no worker running for this
# queue. Use this option to get better reporting results, otherwise your
# hosts will keep their last state as long as there is no worker
# running.
# Default: yes
orphan_host_checks=

# Same like 'orphan_host_checks' but for services.
# Default: yes
orphan_service_checks=

# Set return code of orphaned checks.
# 0 = OK
# 1 = WARNING
# 2 = CRITICAL
# 3 = UNKNOWN
orphan_return=

# When accept_clear_results is enabled, the NEB module will accept unencrypted
# results too. This is quite useful if you have lots of passive checks and make
# use of nagios-send-gearman/nagios-send-multi where you would have to spread the shared key to
# all clients using these tools.
# Default is no.
accept_clear_results=

# Gearman connection timeout(in milliseconds) while submitting jobs to
# gearmand server
# Default is -1(no timeout)
gearman_connection_timeout=
