sni / mod_gearman

Distribute Naemon Host/Service Checks & Eventhandler with Gearman Queues. Host/Servicegroups affinity included.
http://www.mod-gearman.org
GNU General Public License v3.0
122 stars 42 forks source link

read gearmand address:port from an environment variable CONFIG_GEARMA… #153

Closed lausser closed 4 years ago

lausser commented 4 years ago

…ND_PORT

lausser commented 4 years ago

In an OMD setup where more than one sites are running on one host you always have to find out the right gearmand's address before running gearman_top. Having the address:port in a site's environment variable makes it possible to simply run gearman_top without any extra parameters. This can easily be achieved by putting source $OMD_ROOT/etc/omd/site.conf; export $(cut -d= -f1 $OMD_ROOT/etc/omd/site.conf) in the sites' .bashrc.