Dockerfile for distributed nagios server
- Main server running Nagios and mod_gearman
- Additional nodes running mod_gearman_worker
Good for monitoring servers in different zone, each zone has its own node running mod_gearman_worker and send result to a main nagios server.
Add the below to nagios.cfg
# EVENT BROKER OPTIONS
event_broker_options=-1
broker_module=/usr/lib64/mod_gearman/mod_gearman_nagios4.o config=/etc/mod_gearman/module.conf
Look at mod_gearman folder for sample configuration for gearman (module.conf) and gearman-worker (worker.conf)