Thread: [Nagios-db-devel] nagios-db and nagios-2.04b
Status: Beta
Brought to you by:
bench23
From: Michael T. <mic...@mc...> - 2005-09-08 22:19:41
|
Is everyone stuck on an earlier version? I haven't been able to get any neb to compile without playing with the inserter.c file. nagios-2.04b nebmods.c requires 4 entries for the neb_register_callback function. inserter.c only calls for three in nebmods.c you'll find that the "int priority" is required on neb_register_callback I chose to look at this literally as a priority state and changed the inserter.c to reflect this. inserter.c now compiles, initializes, but doesn't write diddly to the db. My changes can be seen below. I need to know if my thinking was correct, and why I wouldn't be seeing anything written to the db. I'm willing to pitch in a helping hand where ever I can. I know you guys are probably swamped with various projects. Developers**** I want to use this in a 5000+ host, not service environment. Can this implementation handle it? Will this package continue to be developed? neb_deregister_callback(NEBCALLBACK_TIMED_EVENT_DATA, loadconfig); neb_register_callback(NEBCALLBACK_HOST_STATUS_DATA, 0, 3,***** processStatus); neb_register_callback(NEBCALLBACK_SERVICE_STATUS_DATA, 0, 4,**** processStatus); neb_register_callback(NEBCALLBACK_HOST_CHECK_DATA, 0, 2,**** processCheck); neb_register_callback(NEBCALLBACK_SERVICE_CHECK_DATA, 0, 5,***** processCheck); TIA |
From: Ben <be...@si...> - 2005-09-08 22:33:22
|
Yeah, I've got a patch waiting to apply from somebody else that makes this work with 2.04b, but as you can see, I haven't had the time to apply it. Nor have I had the time to upgrade my install of nagios, so the pain point hasn't been that high for me, personally.... not that that helps you. :) I'll do the upgrade when I can, but in the meantime perhaps you should look through the archives of this list for a patch in the last few months. As for whether this will be continued to be developed.... well, my company relies on it now, so I can say the answer is yes. But will it be developed quickly? History shows that the answer is probably no, if I'm going to stay in charge. So I'd be happy to let somebody else maintain this project, if they desire. And as for the 5k host question.... the answer is yes, assuming you don't starve your database on hardware. :) Michael Thompson wrote: >Is everyone stuck on an earlier version? I haven't been able to get any >neb to compile without playing with the inserter.c file. > >nagios-2.04b nebmods.c requires 4 entries for the neb_register_callback >function. inserter.c only calls for three >in nebmods.c you'll find that the "int priority" is required on >neb_register_callback I chose to look at this literally as a priority >state and changed the inserter.c to reflect this. > >inserter.c now compiles, initializes, but doesn't write diddly to the >db. >My changes can be seen below. I need to know if my thinking was correct, >and why I wouldn't be seeing anything written to the db. > >I'm willing to pitch in a helping hand where ever I can. >I know you guys are probably swamped with various projects. > >Developers**** I want to use this in a 5000+ host, not service >environment. Can this implementation handle it? > >Will this package continue to be developed? > > >neb_deregister_callback(NEBCALLBACK_TIMED_EVENT_DATA, loadconfig); > neb_register_callback(NEBCALLBACK_HOST_STATUS_DATA, 0, 3,***** >processStatus); > neb_register_callback(NEBCALLBACK_SERVICE_STATUS_DATA, 0, 4,**** >processStatus); > neb_register_callback(NEBCALLBACK_HOST_CHECK_DATA, 0, 2,**** >processCheck); > neb_register_callback(NEBCALLBACK_SERVICE_CHECK_DATA, 0, 5,***** >processCheck); > > >TIA > > > > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-db-devel mailing list >Nag...@li... >https://lists.sourceforge.net/lists/listinfo/nagios-db-devel > > |
From: Mike T. <mke...@ya...> - 2005-09-09 12:52:20
|
Thanks for the response, I'll plug through the mailing list. Is the patch your referring to for mysql or postgresql? How do people submit to the project? This looks like the best solution for us provided I can get it working. That being said, I'd like to get together a list of known working nagios 2x/nagios-db-XX configurations. Also would be willing to submit an install doc. Again thanks --- Ben <be...@si...> wrote: > Yeah, I've got a patch waiting to apply from > somebody else that makes > this work with 2.04b, but as you can see, I haven't > had the time to > apply it. Nor have I had the time to upgrade my > install of nagios, so > the pain point hasn't been that high for me, > personally.... not that > that helps you. :) > > I'll do the upgrade when I can, but in the meantime > perhaps you should > look through the archives of this list for a patch > in the last few months. > > As for whether this will be continued to be > developed.... well, my > company relies on it now, so I can say the answer is > yes. But will it be > developed quickly? History shows that the answer is > probably no, if I'm > going to stay in charge. So I'd be happy to let > somebody else maintain > this project, if they desire. > > And as for the 5k host question.... the answer is > yes, assuming you > don't starve your database on hardware. :) > > Michael Thompson wrote: > > >Is everyone stuck on an earlier version? I haven't > been able to get any > >neb to compile without playing with the inserter.c > file. > > > >nagios-2.04b nebmods.c requires 4 entries for the > neb_register_callback > >function. inserter.c only calls for three > >in nebmods.c you'll find that the "int priority" is > required on > >neb_register_callback I chose to look at this > literally as a priority > >state and changed the inserter.c to reflect this. > > > >inserter.c now compiles, initializes, but doesn't > write diddly to the > >db. > >My changes can be seen below. I need to know if my > thinking was correct, > >and why I wouldn't be seeing anything written to > the db. > > > >I'm willing to pitch in a helping hand where ever I > can. > >I know you guys are probably swamped with various > projects. > > > >Developers**** I want to use this in a 5000+ host, > not service > >environment. Can this implementation handle it? > > > >Will this package continue to be developed? > > > > > >neb_deregister_callback(NEBCALLBACK_TIMED_EVENT_DATA, > loadconfig); > > > neb_register_callback(NEBCALLBACK_HOST_STATUS_DATA, > 0, 3,***** > >processStatus); > > > neb_register_callback(NEBCALLBACK_SERVICE_STATUS_DATA, > 0, 4,**** > >processStatus); > > > neb_register_callback(NEBCALLBACK_HOST_CHECK_DATA, > 0, 2,**** > >processCheck); > > > neb_register_callback(NEBCALLBACK_SERVICE_CHECK_DATA, > 0, 5,***** > >processCheck); > > > > > >TIA > > > > > > > > > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software > Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > >Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > >Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-db-devel mailing list > >Nag...@li... > >https://lists.sourceforge.net/lists/listinfo/nagios-db-devel > > > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-db-devel mailing list > Nag...@li... > https://lists.sourceforge.net/lists/listinfo/nagios-db-devel > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Lindsay W. <lin...@ad...> - 2005-09-25 06:25:35
|
Hi, I'm having some problems getting Nagios-DB up and running properly after an upgrade of Nagios from 2.0b3 to 2.0b4. So far as Nagios-DB is concerned, I'm starting from scratch with beta4. I've got the latest Nagios-DB CVS source, applied the 2.0b4 NEB registration patch, and manually edited the pgwrapper so that the PQconnect arguments are sure to make a successful connect. I can confirm that the module is connecting to the database OK and issuing commands. My problem is: When I start Nagios the logs don't report any errors but the Web GUI gives the typical error page when trying to view something like host details (gives generic configuration problem error). Nagios itself does not perform any checks at all. If I remove the module load config from nagios.cfg then everything works fine...so it seems related to the Nagios-DB NEB module load. an `/etc/init.d/nagios stop` will not properly shutdown nagios and that needs to be manually killed before starting again, once again this is only if the NEB module is configured to load. Logs seem fine: Sep 25 15:43:23 whippet nagios: Nagios 2.0b4 starting... (PID=12576) Sep 25 15:43:23 whippet nagios: LOG VERSION: 2.0 Sep 25 15:43:23 whippet nagios: initializing nagios-db postgres inserter... Sep 25 15:43:23 whippet postgres[12598]: [1-1] LOG: connection received: host=127.0.0.1 port=49532 Sep 25 15:43:23 whippet postgres[12598]: [2-1] LOG: connection authorized: user=nagios database=nagios Sep 25 15:43:23 whippet postgres[12598]: [3-1] LOG: statement: begin Sep 25 15:43:23 whippet postgres[12598]: [4-1] LOG: duration: 0.921 ms statement: begin Sep 25 15:43:23 whippet nagios: nagios-db postgres inserter locked into db Sep 25 15:43:23 whippet nagios: Event broker module '/usr/local/nagios/nagios-db/inserter.o' initialized successfully. Sep 25 15:43:23 whippet nagios: Executor has 0 threads active out of 20 max, with 0 threads idle and 0 tasks outstanding Sep 25 15:43:23 whippet nagios: Finished daemonizing... (New PID=12601) I don't fully understand the interaction between the NEB modules and the Nagios core process so I've been messing around with this for quite a number of hours and have not made any progress, any assistance or tips would be appreciated. I'm using: postgres (PostgreSQL) 7.4.6. Nagios 2.0b4 CVS Nagios-DB Fedora Core release 3 (Heidelberg) Cheers, Lindsay |