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

Nagios segmentation fault on miltiprocessor system #79

Closed obm0rok closed 9 years ago

obm0rok commented 9 years ago

Virtual Machine running on Win7 host with Virtualbox 5.0.0 OS: RHEL 6.6 Germand v 0.33 mod_gearman 2.1.2 / 2.1.3 Nagios Core 4.1.1 / 4.1.0 / 4.0.8

mod_gearman installed from rpm, builded using spec file from source.

When i set result_workers=10 on single-proccesor system and then restart nagios i get 10 check_results workers available. Good. When i add another processor to virtual pc, then nagios crashes

$ tail /var/log/nagios/nagios.log [1440595985] mod_gearman: initialized version 2.1.3 (libgearman 0.33) [1440595985] Event broker module '/usr/lib64/mod_gearman2/mod_gearman2.o' initialized successfully. [1440595986] Successfully launched command file worker with pid 27740 [1440595986] Caught SIGSEGV, shutting down... [1440595986] Caught SIGSEGV, shutting down...

in this situation nagios works with mod_gearman only if result_workers=1 in mod-gearman2-module.conf it is testing environment, also we have hardware server, with same setup and same problem.

sni commented 9 years ago

There is usually no need to set result_workers to anything but 1. I think i would just remove that option.

obm0rok commented 9 years ago

Thanks for your answer, peace