We are starting to use Ndoutils, which is the first event broker for Nagios. The idea with the event broker modules is that the functionality of Nagios can be extended without the core code being changed. Ethan has released ndoutils which writes Nagios data to a mysql database.
We managed to get Ndoutils 1.3.1 to compile, but whenever Nagios started up, we kept getting SIGSEGV and Nagios would crash. Nagios.log would say:
[1158012772] Nagios 2.5 starting... (PID=21793) [1158012772] LOG VERSION: 2.0 [1158012773] ndomod: NDOMOD 1.3.1 Copyright (c) 2005-2006 Ethan Galstad (nagios@nagios.org) [1158012773] ndomod: Successfully connected to data sink. 0 queued items to flush. [1158012773] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. [1158012773] Caught SIGSEGV, shutting down...
It took us a few hours to work out with lots of debugging lines in the ndoutils (printf statements + starting up Nagios manually without daemonizing), but we eventually found out that the Nagios 2 header files distributed with Ndoutils did not have our changes for can_submit_commands. The patch is here - obviously, only use this if you are using the can_submit_commands patch.
We've been speaking to Ethan because we think it is a good idea for Nagios to install the header files (maybe in /usr/local/nagios/include?), so then any local patches are done there, rather than trying to maintain multiple header files across different projects.
Hope this saves you a few hours!
Comments