Re: [Nagios-db-devel] Upgrade and rollback issues
Status: Beta
Brought to you by:
bench23
From: Robert B. <rbi...@na...> - 2005-03-11 04:58:07
|
Hi Ben, upgraded Nagios back up to 2.0b2 and pulled the latest nagios-db code from cvs. Still no joy (: What would you suggest I do next ? Thanks, Bob postgresql version: nagios=# select version(); version ---------------------------------------------------------------------------------------------------------- PostgreSQL 7.4.6 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-42) my makefile: gcc -Wall -g -O2 -o inserter.o inserter.c -shared -I/usr/local/src/nagios-2.0b2/include -I/usr/local/pgsql/include /usr/local/pgsql/lib/libpq.a nagios.log with latest nagios-db cvs pull: [1110516022] Nagios 2.0b2 starting... (PID=8772) [1110516022] LOG VERSION: 2.0 [1110516022] initializing nagios-db postgres inserter... [1110516022] nagios-db: inserter locked into db [1110516022] Event broker module '/usr/local/nagios/bin/inserter.o' initialized successfully. [1110516022] Warning: Host 'kcwebwt1' has no services associated with it! [1110516022] Warning: Contact 'brian' is not a member of any contact groups! [1110516022] Warning: Contact 'cheikh' is not a member of any contact groups! [1110516022] Warning: Contact 'dwain' is not a member of any contact groups! [1110516022] Warning: Contact 'eric' is not a member of any contact groups! [1110516022] Warning: Contact 'john' is not a member of any contact groups! [1110516022] Warning: Contact 'karen' is not a member of any contact groups! [1110516022] Warning: Contact 'liz' is not a member of any contact groups! [1110516022] Warning: Contact 'robert' is not a member of any contact groups! [1110516022] Warning: Contact 'russ' is not a member of any contact groups! [1110516022] Warning: Contact 'scott' is not a member of any contact groups! [1110516022] Warning: Contact 'van' is not a member of any contact groups! [1110516022] Warning: Contact group 'nagios-setup' is not used in any hostgroup/service definitions or host/hostgroup/se rvice escalations! [1110516022] Finished daemonizing... (New PID=8774) [1110516022] nagios-db: couldn't clear config info () [1110516022] nagios-db: couldn't configure host using 'select configure_host('OPX',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TR UE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('clappwp1',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TR UE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('clbackw1',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TR UE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('clsqlwp1',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TR UE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('clwebwp1',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TR UE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('intranet',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TR UE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcacct',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE ,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcads',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE, TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcadw1',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE ,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcmailfw1',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,T RUE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcmailw1',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TR UE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcparadox',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,T RUE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcsecl1',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRU E,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcsqldb',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRU E,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcsqlwd1',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TR UE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcsqlwp2',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TR UE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcwebwd1',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TR UE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('kcwebwt1',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TR UE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('pdoxtimer',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,T RUE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('sunflower-chi-gw',TRUE,TRUE,TRUE,TRUE,TRUE ,TRUE,TRUE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('sunflower-nor-gw',TRUE,TRUE,TRUE,TRUE,TRUE ,TRUE,TRUE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('sunflower-op-gw',TRUE,TRUE,TRUE,TRUE,TRUE, TRUE,TRUE,TRUE,FALSE)' () [1110516022] nagios-db: couldn't configure host using 'select configure_host('sunflowerKC',TRUE,TRUE,TRUE,TRUE,TRUE,TRUE ,TRUE,TRUE,FALSE)' () [1110516022] nagios-db: configured 23 hosts [1110516022] nagios-db: couldn't configure hostgroup using 'select new_hostgroup('sunshine-colo','Sunshine Colo')' () Ben wrote: > First (and most important to you) I don't see anything in the code that > make it obvious why you would get the "couldn't clear config info" message > unless the command failed, but then you should have had some reason, and I > don't see that. So that's still a mystery. Therefore, I'm going to blame > the victim and ask what version of the postgres libs you have installed, > and ask that you make sure you're really linking to them. > > Second, I recommend you use 2.0b2. It fixed problems I was having and > didn't hurt anything. Given that you have the same problems on both > versions, you might as well have them on the better one. :) > > Third, I just checked in a file that should fix the unhelpful "nagios-db: > couldn't configure host using 'nagios-db: couldn't configure host using > 'nagios-db: couldn't configure host us' ()" crap. That won't help your big > issue, but it might help others in the future.... > > > On Thu, 10 Mar 2005, Robert Bilbrey wrote: > > >>I had nagios 2.0b1 working with nagios-db on RHEL3. I decided to upgrade >>to 2.0b2 and pulled the latest nagios-db code from cvs. Everything >>compiled fine, dropped the db and recreated the db with the new schema, >>but nagios would not start with the neb module. So then I pulled the >>0.91 archive, same problem. After deciding to roll back to 2.0b1 and the >>nagios-db cvs snapshot that I had working previously, I am still >>throwing the same errors. If I run the "select empty_config()" from a >>psql session I am returned an empty recordset, which is what I would >>expect. The following is from the nagios log. Does anyone have any >>thoughts, I really need to get this back online. >>Thanks, Bob >> >>[1110500709] Nagios 2.0b1 starting... (PID=5391) >>[1110500709] LOG VERSION: 2.0 >>[1110500709] initializing nagios-db postgres inserter... >>[1110500709] nagios-db: inserter locked into db >>[1110500709] Event broker module '/usr/local/nagios/bin/inserter.o' >>initialized successfully. >>[1110500709] Warning: Host 'kcwebwt1' has no services associated with it! >>[1110500709] Warning: Contact 'brian' is not a member of any contact groups! >>[1110500709] Warning: Contact 'cheikh' is not a member of any contact >>groups! >>[1110500709] Warning: Contact 'dwain' is not a member of any contact groups! >>[1110500709] Warning: Contact 'eric' is not a member of any contact groups! >>[1110500709] Warning: Contact 'john' is not a member of any contact groups! >>[1110500709] Warning: Contact 'karen' is not a member of any contact groups! >>[1110500709] Warning: Contact 'liz' is not a member of any contact groups! >>[1110500709] Warning: Contact 'robert' is not a member of any contact >>groups! >>[1110500709] Warning: Contact 'russ' is not a member of any contact groups! >>[1110500709] Warning: Contact 'scott' is not a member of any contact groups! >>[1110500709] Warning: Contact 'van' is not a member of any contact groups! >>[1110500709] Warning: Contact group 'nagios-setup' is not used in any >>hostgroup/service definitions or host/hostgroup/service escala >>tions! >>[1110500709] Finished daemonizing... (New PID=5393) >>[1110500709] nagios-db: couldn't clear config info () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure ho' ( >>) >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>us' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>us' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>us' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>us' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>us' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host' >> () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>usi' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>us' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>usi' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>u' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>u' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>us' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>us' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>us' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>us' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>usi' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>using 'nag' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>using 'nag' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>using 'na' () >>[1110500709] nagios-db: couldn't configure host using 'nagios-db: >>couldn't configure host using 'nagios-db: couldn't configure host >>using' () >>[1110500709] nagios-db: configured 23 hosts >>[1110500709] nagios-db: couldn't configure hostgroup using 'nagios-db: >>couldn't configure hostgroup using 'nagios' () >>[1110500709] Caught SIGSEGV, shutting down... >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Nagios-db-devel mailing list >>Nag...@li... >>https://lists.sourceforge.net/lists/listinfo/nagios-db-devel >> > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Nagios-db-devel mailing list > Nag...@li... > https://lists.sourceforge.net/lists/listinfo/nagios-db-devel > |