[Nagios-db-devel] troubleshoot assistance
Status: Beta
Brought to you by:
bench23
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 |