Re: [Nagios-db-devel] Segfaults with the postgres ned
Status: Beta
Brought to you by:
bench23
From: Tim V. <dj...@ro...> - 2005-01-19 14:11:27
|
On Sun, 16 Jan 2005, Matthew Kent wrote: > Verified that the postgres module compiles and works as expected on > debian unstable. > > As mentioned, must be the libraries. Hi guys, I've been testing some more and I'm not really making any progress. So a bit more about my platform and what I'm seeing. Currently I'm testing on a FC1 system. This has postgres version 7.3.4. I've installed the regular rpms. So everything is/should be installed correctly. I've ofcourse needed to change the compile rule. This is what I'm using : gcc -g -O2 -o inserter.o inserter.c -shared -I /usr/include/nagios -I/usr/include/pgsql -lpq I've then started from a empty database. When I then start nagios I get this error : WARNING: Error occurred while executing PL/pgSQL function append_to_hostgroup line 9 at SQL statement Finaly I get a segfault at the PQclear function for the processStatus call for the host data. I someone knows a good way to debug that would really help. I'll will try again on a RHEL3 system in de coming days since the actual production server will be a RHEL3. Kind regards, Tim -- Tim Verhoeven - dj...@ro... - 0479 / 88 11 83 /* This is total bullshit: */ linux-2.6.6/drivers/video/sis/init301.c |