Re: Upgrade
Posted: Tue Oct 12, 2010 2:35 pm
Changing MySQL libraries can also effect PHP. If you had to rebuild one thing it's likely that everything else needs to be recompiled as well.
Support for Nagios products and services
https://support.nagios.com/forum/
"Everything Else" does not make sense for me, can you please be more specific ?Changing MySQL libraries can also effect PHP. If you had to rebuild one thing it's likely that everything else needs to be recompiled as well.
Code: Select all
# Assuming the location and name of an un-packed NagiosXI tree.
cd /tmp/nagiosxi/subcomponents/
./install1. What is the relation of OpenSSL upgrade ?In the case of mysql the dependency chain could be relatively small. I've tested the following solution on a box that had OpenSSL upgraded.
# Assuming the location and name of an un-packed NagiosXI tree.
cd /tmp/nagiosxi/subcomponents/
./install
Code: Select all
[root@nagiosxi nagiosxi]# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.4 (Final)
Release: 5.4
Codename: FinalCode: Select all
--2010-10-18 12:28:48-- http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
Resolving download.fedora.redhat.com... 209.132.183.67
Connecting to download.fedora.redhat.com|209.132.183.67|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2010-10-18 12:28:48 ERROR 404: Not Found.Code: Select all
checking for mysql_config... no
*** MySQL library could not be located... **************************
You chose to compile NDOutils with MySQL support, but I was unable to
locate the MySQL library on your system. If the library is
installed, use the --with-mysql-lib argument to specify the
location of the MySQL library.
installed, use the --with-mysql=DIR argument to specify the
location of the MySQL library, We assume mysql_config is in DIR/dir
NOTE: After you install the necessary libraries on your system:
1. Make sure /etc/ld.so.conf has an entry for the directory in
which the MySQL libraries are installed.
2. Run 'ldconfig' to update the run-time linker options.
3. Run 'make devclean' in the NDBXT distribution to clean out
any old references to your previous compile.
4. Rerun the configure script.
TIP: Try the following....
./configure --with-mysql=/usr/lib/mysql
********************************************************************
Code: Select all
Error: mysql conflicts with MySQL-serverCode: Select all
[root@nagiosxi nagiosxi]# yum provides \*/mysql_config
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: hpc.arc.georgetown.edu
* base: centos.omnispring.com
* epel: www.gtlib.gatech.edu
* extras: mirrors.adams.net
* updates: mirrors.gigenet.com
mysql-5.0.77-4.el5_4.2.i386 : MySQL client programs and shared libraries
Repo : base
Matched from:
Filename : /usr/lib/mysql/mysql_config
Filename : /usr/bin/mysql_config
mysql-5.0.89-1.i386 : MySQL client programs and shared libraries.
Repo : chl
Matched from:
Filename : /usr/lib/mysql/mysql_config
Filename : /usr/bin/mysql_config
mysql-5.0.77-4.el5_5.3.i386 : MySQL client programs and shared libraries
Repo : updates
Matched from:
Filename : /usr/lib/mysql/mysql_config
Filename : /usr/bin/mysql_config
Code: Select all
short_open_tag = OnCode: Select all
...
Warning: Service 'SVS_Name' on host 'Host_name' has no check time period defined!
...Code: Select all
Oct 19 04:35:22 nagiosxi NPCD[23810]: ERROR: Executed command exits with return code '1'
Oct 19 04:35:22 nagiosxi NPCD[23810]: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//host-perfdata.1287480908'
Oct 19 04:35:22 nagiosxi NPCD[23810]: ERROR: Executed command exits with return code '1'
Oct 19 04:35:22 nagiosxi NPCD[23810]: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1287480908' Code: Select all
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/
sqlite3.so' - /usr/lib/php/modules/sqlite3.so: undefined symbol: sqlite3_clear_b
indings in Unknown on line 0Code: Select all
yum install sqlite-3.6.17-1.i386Code: Select all
[chl]
name=CHL Packages for Enterprise Linux 5 - $basearch
baseurl=http://yum.chrislea.com/centos/5/$basearch
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
[chl-source]
name=CHL Packages for Enterprise Linux 5 - $basearch - Source
baseurl=http://yum.chrislea.com/centos/5/SRPMS
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1