{"action":"created","issue":{"url":"https://api.github.com/repos/sni/mod_gearman/issues/85","repository_url":"https://api.github.com/repos/sni/mod_gearman","labels_url":"https://api.github.com/repos/sni/mod_gearman/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/sni/mod_gearman/issues/85/comments","events_url":"https://api.github.com/repos/sni/mod_gearman/issues/85/events","html_url":"https://github.com/sni/mod_gearman/issues/85","id":133332707,"number":85,"title":"No support for Nagios 4.x?","user":{"login":"kkdk5535","id":1418472,"avatar_url":"https://avatars.githubusercontent.com/u/1418472?v=3","gravatar_id":"","url":"https://api.github.com/users/kkdk5535","html_url":"https://github.com/kkdk5535","followers_url":"https://api.github.com/users/kkdk5535/followers","following_url":"https://api.github.com/users/kkdk5535/following{/other_user}","gists_url":"https://api.github.com/users/kkdk5535/gists{/gist_id}","starred_url":"https://api.github.com/users/kkdk5535/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkdk5535/subscriptions","organizations_url":"https://api.github.com/users/kkdk5535/orgs","repos_url":"https://api.github.com/users/kkdk5535/repos","events_url":"https://api.github.com/users/kkdk5535/events{/privacy}","received_events_url":"https://api.github.com/users/kkdk5535/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-02-12T20:12:23Z","updated_at":"2016-02-18T21:55:20Z","closed_at":null,"body":"@sni \r\nRecently I came to know that mod_gearmanv2 doesn't support Nagios Core 4.x. \r\n\r\n```\r\n## Top of your Readme shows this ##\r\n* Mod-Gearman 1.x works with Nagios 3\r\n * Mod-Gearman 2.x works with Naemon (and might work with Nagios 4)\r\n```\r\nbut at the bottom it shows this,\r\n> Use Mod-Gearman 1 if you still use the Nagios Core. Preferable version 3.2.3 or 3.5.1. Nagios core is not supported anymore. Use Naemon if you plan to upgrade to Nagios 4.\r\n\r\nBut naemon has no release since March 2015 and I don't see much active development in community for naemon.\r\n\r\n----\r\nI tried to complie from source but I received following error.\r\n```shell\r\nchecking naemon/naemon.h usability... no\r\nchecking naemon/naemon.h presence... no\r\nchecking for naemon/naemon.h... no\r\nconfigure: error: Compiling Mod-Gearman requires naemon.h (hint: install naemon-dev pkg)\r\n```\r\nSo I searched and replaced all `neamon` to `nagios` and I was able to compile but failed with following error when building using `make`\r\n```shell\r\n[root@px-nagios-app004 mod_gearman_nagios4]# make\r\nmake  all-am\r\nmake[1]: Entering directory `/opt/nagios4-packages/brokers/mod_gearman_nagios4'\r\ndepbase=`echo neb_module/result_thread.o | sed 's|[^/]*$|.deps/&|;s|\\.o$||'`;\\\r\n    gcc -DHAVE_CONFIG_H -I.  -Iinclude   -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -O -fPIC -D_GNU_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -s -DDATADIR='\"/opt/nagios4-packages/brokers/mod_gearmand_lib_from_source/share\"' -MT neb_module/result_thread.o -MD -MP -MF $depbase.Tpo -c -o neb_module/result_thread.o neb_module/result_thread.c &&\\\r\n    mv -f $depbase.Tpo $depbase.Po\r\nIn file included from include/result_thread.h:30,\r\n                 from neb_module/result_thread.c:26:\r\ninclude/mod_gearman.h:69: error: expected declaration specifiers or '...' before 'nebmodule'\r\nIn file included from neb_module/result_thread.c:28:\r\ninclude/mod_gearman.h:69: error: expected declaration specifiers or '...' before 'nebmodule'\r\nneb_module/result_thread.c:40: warning: initialization from incompatible pointer type\r\nmake[1]: *** [neb_module/result_thread.o] Error 1\r\nmake[1]: Leaving directory `/opt/nagios4-packages/brokers/mod_gearman_nagios4'\r\nmake: *** [all] Error 2\r\n```\r\n\r\nCan you share your plans to support Nagios Core 4.x, I downloaded the `rpm` packages for `v2.1.3` Nagios crashes when I submit PASSIVE results using `mk-livestatus` complied for Nagios 4.x. \r\n```shell\r\n1: /tmp/core-nagios-11-5028-5028-32050-1455053698\r\nFeb  9 16:13:27 px-nagios-app003 kernel: nagios[32220]: segfault at 7f1a9c6157d8 ip 00007f1a9aa4f3e8 sp 00007f1a9c6157e0 error 6 in mod_gearman2.o[7f1a9aa3f000+1c000]\r\n\r\nProgram terminated with signal 11, Segmentation fault.\r\n#0  0x00007f82c0e313e8 in handle_svc_check () from /usr/lib64/mod_gearman2/mod_gearman2.o\r\n```\r\n\r\nNagios is not crashing if I comment the `mod_gearman2` broker in nagios.cfg and just enable `mk-livestatus` and submit PASSIVE results.\r\n\r\nI also downloaded new version but it throws following error, where it doesn't even start Nagios\r\nhttps://labs.consol.de/repo/stable/rhel6/x86_64/mod_gearman2-2.1.5-1.rhel6.x86_64.rpm\r\n\r\n```shell\r\n## Error loading Nagios with v2.1.5 ##\r\n[1455064773] Error: Could not load module '/usr/lib64/mod_gearman2/mod_gearman2.o' -> /usr/lib64/mod_gearman2/mod_gearman2.o: undefined symbol: nm_log\r\n[1455064773] Error: Failed to load module '/usr/lib64/mod_gearman2/mod_gearman2.o'.\r\n```\r\n\r\n\r\n***mod_gearman is a great assert for scaling Nagios in huge production environments and it served community for entire Nagios Core 3.x, so can we get the glory back to serve for Nagios Core 4.x community.***\r\n"},"comment":{"url":"https://api.github.com/repos/sni/mod_gearman/issues/comments/185938979","html_url":"https://github.com/sni/mod_gearman/issues/85#issuecomment-185938979","issue_url":"https://api.github.com/repos/sni/mod_gearman/issues/85","id":185938979,"user":{"login":"BoomerET","id":244058,"avatar_url":"https://avatars.githubusercontent.com/u/244058?v=3","gravatar_id":"","url":"https://api.github.com/users/BoomerET","html_url":"https://github.com/BoomerET","followers_url":"https://api.github.com/users/BoomerET/followers","following_url":"https://api.github.com/users/BoomerET/following{/other_user}","gists_url":"https://api.github.com/users/BoomerET/gists{/gist_id}","starred_url":"https://api.github.com/users/BoomerET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoomerET/subscriptions","organizations_url":"https://api.github.com/users/BoomerET/orgs","repos_url":"https://api.github.com/users/BoomerET/repos","events_url":"https://api.github.com/users/BoomerET/events{/privacy}","received_events_url":"https://api.github.com/users/BoomerET/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T21:55:20Z","updated_at":"2016-02-18T21:55:20Z","body":"That works, but receiving passive results still crashes Nagios. (Granted, it took about 30 seconds this time instead of immediately)\r\n(Entry from /var/log/messages)\r\nFeb 18 16:51:38 pink_pingpong_balls kernel: nagios[37066]: segfault at 7fb468fa97d8 ip 00007fb46739a76c sp 00007fb468fa97e0 error 6 in mod_gearman.o[7fb467389000+1c000]"}}