AW: New event broker module for DB storage...

Husch Andreas Andreas.Husch at bitburger.de
Mon Dec 26 22:52:13 CET 2005


> Its been a busy last three weeks.  For almost seven months now I've 
> been working on an event broker module that will dump all 
> configuration data and realtime status information from Nagios to a 
> MySQL database.  While the planning and some initial was done a long 
> while back, 80% of the coding occurred in the past three weeks.
> 
> .
> .
> .
>
> The database created by the ndo2db daemon will serve as the basis for 
> the new web interface in Nagios 3.0, so its important to get your 
> Comments in about this.  Its not complete by any means, but its a 
> darn good start.  Comments and patches are welcome.
>
> 
> Ethan Galstad,

Hello Ethan,

I tested NDO today on an Ubuntu "breezy" System. During ./configure i
got the following: 

configure: WARNING: linux/module.h: present but cannot be compiled
configure: WARNING: linux/module.h:     check for missing prerequisite
headers?
configure: WARNING: linux/module.h: see the Autoconf documentation
configure: WARNING: linux/module.h:     section "Present But Cannot Be
Compiled"
configure: WARNING: linux/module.h: proceeding with the preprocessor's
result
configure: WARNING: linux/module.h: in the future, the compiler will
take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##


Make fails with many "redefinition of struct" and "field has incomplete
type" errors. This seems to be a problem with the ubuntu 
linux-kernel-headers package.

After some time of investigation i wondered why a userspace tool 
like nagios includes module.h. So i tried to simply remove module.h 
from the configure script:


--- configure   2005-12-23 20:00:35.000000000 +0100
+++ ../../ndoutils.12232005/configure   2005-12-26 18:12:33.000000000
+0100
@@ -3025,7 +3025,7 @@



-for ac_header in arpa/inet.h ctype.h dirent.h dlfcn.h errno.h fcntl.h
float.h getopt.h grp.h inttypes.h limits.h linux/module.h ltdl.h math.h
netdb.h netinet/in.h pthread.h pwd.h regex.h signal.h socket.h stdint.h
string.h strings.h sys/ipc.h sys/mman.h sys/msg.h sys/poll.h
sys/resource.h sys/sendfile.h sys/socket.h sys/stat.h sys/time.h
sys/timeb.h sys/types.h sys/un.h sys/wait.h syslog.h tcpd.h unistd.h
values.h
+for ac_header in arpa/inet.h ctype.h dirent.h dlfcn.h errno.h fcntl.h
float.h getopt.h grp.h inttypes.h limits.h ltdl.h math.h netdb.h
netinet/in.h pthread.h pwd.h regex.h signal.h socket.h stdint.h string.h
strings.h sys/ipc.h sys/mman.h sys/msg.h sys/poll.h sys/resource.h
sys/sendfile.h sys/socket.h sys/stat.h sys/time.h sys/timeb.h
sys/types.h sys/un.h sys/wait.h syslog.h tcpd.h unistd.h values.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if eval "test \"\${$as_ac_Header+set}\" = set"; then



After that configure and make run fine and the tool works 
like a charm :-) IMHO it is a really great improvement!

Merry Christmas

Andreas




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click




More information about the Developers mailing list