[Nagiosplug-help] (no subject)
Hamm, Paul
phamm at thepirtgroup.com
Thu May 15 20:10:01 CEST 2003
It's Postgres version 7.3.2. I thought the change had to do with
PQsetdbLogin since versions beyond 7.2 uses PQconnectdb. I have not seen
any issues yet with the time format.
-ph
-----Original Message-----
From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
Sent: Thursday, May 15, 2003 10:26 PM
To: Hamm, Paul
Cc: 'nagiosplug-help at lists.sourceforge.net'
Subject: RE: [Nagiosplug-help] (no subject)
Which version of Postgres ?
A recent report indicated we needed a patch for the timeformat change
between v7.1 and v7.3
-sg
On Thu, 15 May 2003, Hamm, Paul wrote:
> Hi Karl,
>
> Thanks for responding so swiftly to this problem. As it happened, I ran
> configure for the Nagios plugins before installing Postgres to the default
> location /usr/local/pgsql. So even after I did a make clean, the
> configuration was still caching the initial configure without Postgres
> present. When I ran configure or make subsequently, it cached the bad
> configuration information.
>
> The error I was seeing is this:
>
>
> checking for main in -lresolv... yes
> checking for main in -lcrypt... yes
> checking for PQsetdbLogin in -lpq... no
> configure: warning: Skipping PostgreSQL plugin (check_pgsql)
> configure: warning: LIBS=-lcrypt -lutil CPPFLAGS=
> -I/usr/local/pgsql/include
> configure: warning: install PostgreSQL libs to compile this plugin (see
> REQUIREMENTS).
> checking for rc_read_config in -lradiusclient... no
> configure: warning: Skipping radius plugin
> configure: warning: install radius libs to compile this plugin (see
> REQUIREMENTS).
> checking for main in -lldap... yes
> configure: warning: Skipping mysql plugin
> configure: warning: install mysql client libs to compile this plugin (see
> REQUIREMENTS).
> checking for openssl... /usr/bin/openssl
>
> In order to get it working, I had to install Postgres to the
> /usr/local/pgsql and them symlink /usr/lib/libpq.so.3 to
> /usr/local/pgsql/lib/libpq.so.3.0. Afterwards, it found all the required
> libraries when run with the line "./configure --with-cgiurl=/cgi-bin
> --with-pgsql=/usr/local/pgsql/". Then I had to completely delete the
plugin
> directory and do a re-install.
>
>
> Thanks,
>
>
>
> -----Original Message-----
> From: Karl DeBisschop [mailto:karl at debisschop.net]
> Sent: Wednesday, May 14, 2003 11:53 PM
> To: Hamm, Paul
> Cc: 'nagiosplug-help at lists.sourceforge.net'
> Subject: Re: [Nagiosplug-help] (no subject)
>
> On Wed, 2003-05-14 at 23:37, Hamm, Paul wrote:
> > Hello,
> >
> >
> >
> > I am having issues compiling the check_pgsql plug in with the
> > nagios-plugins-1.3.0 plugin package. I have installed Postgres
> > locally on the server at /usr/local/pgsql. However, configure fails
> > to pick up the library files and thus never complies it in. Where are
> > the libraries supposed to be? And which ones are required for a
> > successful compile?
> >
>
> Looks to me like the pgsql libs are successfully found by configure --
> what happens with make?
>
> >
> > The server is a Linux 2.4.18-14smp kernel.
> >
> >
> >
> > # nagios-plugins-1.3.0]# ./configure --with-cgiurl=/cgi-bin
> > --with-pgsql=/usr/local/pgsql/
> >
> > creating cache ./config.cache
> >
> > checking for a BSD compatible install... /usr/bin/install -c
> >
> > checking whether build environment is sane... yes
> >
> > checking whether make sets ${MAKE}... yes
> >
> > checking for working aclocal... found
> >
> > checking for working autoconf... found
> >
> > checking for working automake... found
> >
> > checking for working autoheader... found
> >
> > checking for working makeinfo... found
> >
> > checking for a BSD compatible install... /usr/bin/install -c
> >
> > checking for gcc... gcc
> >
> > checking whether the C compiler (gcc ) works... yes
> >
> > checking whether the C compiler (gcc ) is a cross-compiler... no
> >
> > checking whether we are using GNU C... yes
> >
> > checking whether gcc accepts -g... yes
> >
> > checking whether make sets ${MAKE}... (cached) yes
> >
> > checking for gawk... gawk
> >
> > checking how to run the C preprocessor... gcc -E
> >
> > checking for elf_begin in -lelf... yes
> >
> > checking for kvm_open in -lkvm... no
> >
> > checking for getloadavg in -lutil... yes
> >
> > checking for getloadavg... yes
> >
> > checking whether getloadavg requires setgid... (cached) yes
> >
> > checking group of /dev/kmem... kmem
> >
> > checking for working strtod... yes
> >
> > checking for ranlib... ranlib
> >
> > checking for aclocal... /usr/bin/aclocal
> >
> > checking for automake... /usr/bin/automake
> >
> > checking for autoconf... /usr/bin/autoconf
> >
> > checking for autoheader... /usr/bin/autoheader
> >
> > checking for python... /usr/bin/python
> >
> > checking for perl... /usr/bin/perl
> >
> > checking for sh... /bin/sh
> >
> > checking for hostname... /bin/hostname
> >
> > checking for basename... /bin/basename
> >
> > checking for main in -ldce... no
> >
> > checking for main in -lnsl... yes
> >
> > checking for socket in -lsocket... no
> >
> > checking for main in -lresolv... yes
> >
> > checking for main in -lcrypt... yes
> >
> > checking for PQsetdbLogin in -lpq... yes
> >
> > checking for pgsql/libpq-fe.h... no
> >
> > checking for postgresql/libpq-fe.h... no
> >
> > checking for libpq-fe.h... yes
> >
> > checking for rc_read_config in -lradiusclient... no
> >
> > configure: warning: Skipping radius plugin
> >
> > configure: warning: install radius libs to compile this plugin (see
> > REQUIREMENTS).
> >
> > checking for main in -lldap... yes
> >
> > configure: warning: Skipping mysql plugin
> >
> > configure: warning: install mysql client libs to compile this plugin
> > (see REQUIREMENTS).
> >
> > checking for openssl... /usr/bin/openssl
> >
> > checking for krb5.h... no
> >
> > checking for krb5.h... yes
> >
> > checking for openssl/ssl.h... no
> >
> > checking for openssl/x509.h... no
> >
> > checking for openssl/rsa.h... no
> >
> > checking for openssl/pem.h... no
> >
> > checking for openssl/crypto.h... no
> >
> > checking for openssl/err.h... no
> >
> > checking for ssl.h... no
> >
> > checking for x509.h... no
> >
> > checking for rsa.h... no
> >
> > checking for pem.h... no
> >
> > checking for crypto.h... no
> >
> > checking for err.h... no
> >
> > checking for CRYPTO_lock in -lcrypto... yes
> >
> > checking for main in -lssl... yes
> >
> > checking for ANSI C header files... yes
> >
> > checking whether time.h and sys/time.h may both be included... yes
> >
> > checking for sys/wait.h that is POSIX.1 compatible... yes
> >
> > checking for signal.h... yes
> >
> > checking for strings.h... yes
> >
> > checking for string.h... yes
> >
> > checking for syslog.h... yes
> >
> > checking for unistd.h... yes
> >
> > checking for uio.h... no
> >
> > checking for errno.h... yes
> >
> > checking for regex.h... yes
> >
> > checking for sys/types.h... yes
> >
> > checking for sys/time.h... yes
> >
> > checking for sys/socket.h... yes
> >
> > checking for sys/loadavg.h... no
> >
> > checking for stdarg.h... yes
> >
> > checking for sys/unistd.h... yes
> >
> > checking for unistd.h... (cached) yes
> >
> > checking for ctype.h... yes
> >
> > checking for sys/wait.h... (cached) yes
> >
> > checking for stdlib.h... yes
> >
> > checking for working const... yes
> >
> > checking whether struct tm is in sys/time.h or time.h... time.h
> >
> > checking for pid_t... yes
> >
> > checking for size_t... yes
> >
> > checking return type of signal handlers... void
> >
> > checking size of int... 4
> >
> > checking size of long... 4
> >
> > checking size of short... 2
> >
> > checking for long long... yes
> >
> > checking for LL suffix on long long integers... yes
> >
> > checking for __va_copy... yes
> >
> > checking for C99 vsnprintf... yes
> >
> > checking for snprintf... yes
> >
> > checking for vsnprintf... yes
> >
> > checking for vasprintf... yes
> >
> > checking for asprintf... yes
> >
> > checking for memmove... yes
> >
> > checking for select... yes
> >
> > checking for socket... yes
> >
> > checking for strdup... yes
> >
> > checking for strstr... yes
> >
> > checking for strtod... yes
> >
> > checking for strtol... yes
> >
> > checking for strtoul... yes
> >
> > checking for type of socket size... int
> >
> > checking for ps... /bin/ps
> >
> > ps syntax... /bin/ps -weo 'stat comm vsz rss user ppid args'
> >
> > checking for df... /bin/df
> >
> > df syntax... /bin/df -Pk
> >
> > checking for ping... /bin/ping
> >
> > ping syntax... /bin/ping -n -U -c <count> <host>
> >
> > checking for nslookup... /usr/bin/nslookup
> >
> > nslookup syntax... /usr/bin/nslookup -sil
> >
> > checking for host... /usr/bin/host
> >
> > checking for uptime... /usr/bin/uptime
> >
> > checking for rpcinfo... /usr/sbin/rpcinfo
> >
> > checking for ntpdate... /usr/sbin/ntpdate
> >
> > checking for ntpdc... /usr/sbin/ntpdc
> >
> > checking for ntpq... /usr/sbin/ntpq
> >
> > checking for lmstat... no
> >
> > ** Get lmstat from Globetrotter Software to monitor flexlm licenses
> >
> > checking for smbclient... /usr/bin/smbclient
> >
> > checking for who... /usr/bin/who
> >
> > checking for snmpget... /usr/local/bin/snmpget
> >
> > checking for snmpgetnext... /usr/local/bin/snmpgetnext
> >
> > ** Tried /usr/bin/perl - install Net::SNMP perl module if you want to
> >
> > use the perl snmp plugins
> >
> > checking for quakestat... no
> >
> > checking for qstat... no
> >
> > ** Get qstat from http://www.activesw.com/people/steve/qstat.html in
> > order to make check_game plugin
> >
> > checking for fping... no
> >
> > ** Get fping from http://www.fping.com in order to make check_fping
> > plugin
> >
> > checking for ssh... /usr/bin/ssh
> >
> > checking for mailq... /usr/bin/mailq
> >
> > found/proc/meminfo
> >
> > checking for dig... /usr/bin/dig
> >
> > yes
> >
> > updating cache ./config.cache
> >
> > creating./config.status
> >
> > creating Makefile
> >
> > creating subst
> >
> > creatinglib/Makefile
> >
> > creatingplugins/Makefile
> >
> > creatingplugins-scripts/Makefile
> >
> > creatingplugins-scripts/subst
> >
> > creatingplugins-scripts/utils.pm
> >
> > creatingplugins-scripts/utils.sh
> >
> > creating command.cfg
> >
> > creating test.pl
> >
> > creatingplugins/config.h
> >
> > creatingplugins/common.h
> >
> > creatingplugins/version.h
> >
> > creatingplugins/netutils.h
> >
> > creatingplugins/utils.h
> >
> > creatingplugins/popen.h
> >
> >
> >
> >
> >
> > Thank You,
> >
> > -ph
> >
> >
> >
> >
>
>
>
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux enterprise solutions
> www.enterpriselinuxforum.com
>
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
--
More information about the Help
mailing list