LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2013, 04:30 AM   #1
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Rep: Reputation: Disabled
Problem during the installation of centreon


Hi , I installed nagios , and now try to install centreon .
Sometimes and during install, i receive questions, but i don't find the directories, so i create a file and i give it on directory needed .

During installation , i get those errors :


Code:
Configure Apache server
------------------------------------------------------------------------
Finding Apache Centreon configuration file
'/etc/httpd/conf.d/centreon.conf' :                        OK

Do you want to update Centreon Apache sub configuration file ?
[y/n], default to [n]:
> y
Backup Centreon Apache configuration completed
Create '/etc/httpd/conf.d/centreon.conf'                   OK
Configuring Apache                                         OK

Do you want to reload your Apache ?
[y/n], default to [n]:
> y
Reloading Apache service                                   OK
Preparing Centreon temporary files
Change right on /usr/local/centreon/log                    OK
Change right on /etc/centreon                              OK
Change macros for insertBaseConf.sql                       OK
Change macros for sql update files                         OK
Change macros for php files                                OK
Change right on /etc/nagios                                OK
Add group nagios to user apache                            OK
Add group nagios to user nagios                            OK
Add group centreon to user nagios                          OK
Change right on /etc/centreon                              OK
Copy CentWeb in system directory
Install CentWeb (web front of centreon)                    OK
Change right for install directory
Change right for install directory                         OK
Install libraries                                          FAIL
Write right to Smarty Cache                                OK
Copying libinstall                                         FAIL
Change macros for centreon.cron                            OK
Install Centreon cron.d file                               OK
Change macros for centAcl.php                              OK
Change macros for downtimeManager.php                      OK
Change macros for eventReportBuilder.pl                    OK
Change macros for dashboardBuilder.pl                      OK
Install cron directory                                     FAIL
Change right for eventReportBuilder.pl                     OK
Change right for dashboardBuilder.pl                       OK
Change macros for centreon.logrotate                       OK
Install Centreon logrotate.d file                          OK
Prepare export-mysql-indexes                               OK
Install export-mysql-indexes                               OK
Prepare import-mysql-indexes                               OK
Install import-mysql-indexes                               OK
Prepare indexes schema                                     OK
Install indexes schema                                     OK

------------------------------------------------------------------------
Pear Modules
------------------------------------------------------------------------
Check PEAR modules
PEAR                            1.4.9       1.9.4          OK
DB                              1.7.6                      NOK
DB_DataObject                   1.8.4                      NOK
DB_DataObject_FormBuilder       1.0.0RC4                   NOK
MDB2                            2.0.0                      NOK
Date                            1.4.6                      NOK
HTML_Common                     1.2.2                      NOK
HTML_QuickForm                  3.2.5                      NOK
HTML_QuickForm_advmultiselect   1.1.0                      NOK
HTML_Table                      1.6.1                      NOK
Archive_Tar                     1.1         1.3.7          OK
Auth_SASL                       1.0.1                      NOK
Console_Getopt                  1.2         1.3.0          OK
Net_SMTP                        1.2.8                      NOK
Net_Socket                      1.0.1                      NOK
Net_Traceroute                  0.21                       NOK
Net_Ping                        2.4.1                      NOK
Validate                        0.6.2                      NOK
XML_RPC                         1.4.5                      NOK
SOAP                            0.10.1                     NOK
Log                             1.9.11                     NOK
Archive_Zip                     0.1.2                      NOK
Can You help me please .
This is my first post here( sorry for my english )
 
Old 03-22-2013, 05:03 AM   #2
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Finaly i resolved it , but when i open the http://adresse/centreon/ I don't have all modules loaded, just GD gd.so


MySQL mysql.so Not loaded
GD gd.so Loaded
LDAP ldap.so Not loaded
XML Writer xmlwriter.so Not loaded
MB String mbstring.so Not loaded
 
Old 03-22-2013, 05:28 AM   #3
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
I talk alone ^^
I had to install the packages php-mysql php-mbstring ....
and then restart the apache server. Hope it can help others .
If necessary , add the .so files ( like mysql.so) to the /etc/php.ini in this form : extension=mysql.so
 
Old 03-22-2013, 07:45 AM   #4
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Centreon installation

In the last step of my centreon installation , i get this error :

Step Status

Configuration database OK
Storage database OK
Utils database OK
Creating database user OK
Setting up basic configuration OK
Setting up configuration file Could not find CENTREON_ETC. Session
probably expired.

Help
 
Old 03-22-2013, 10:59 AM   #5
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Centreon Installation

I just finish the installation of centreon,but When i go to http://MyAdresse/centreon/ , i have a white page .

Those are the errors on my error_log file of apache
[Fri Mar 22 14:54:43 2013] [error] [client @] PHP Warning: require_once(DB.php) [<a href='function.require-once'>function.require-once</a>]: fa$ >]: failed to open stream: No such file or directory in /usr/local/centreon/www/class/centreonDB.class.php on line 39

[Fri Mar 22 14:54:43 2013] [error] [client @] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening$ required 'DB.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/centreon/www/class/centreonDB.class.php on line 39

Another question please : when I run this command , i can't see nagios .is this normal?

# ps -ef | grep ndo
root 17220 24501 0 16:36 pts/1 00:00:00 grep ndo

Help please
 
Old 03-23-2013, 02:03 AM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

Welcome to Linux Questions!

Looks like Software that your trying to install; and not an operating system-
It would help to know what operating system you are running to help.

http://www.centreon.com/
http://www.linux.org/article/view/th...agios-ndoutils
http://svn.centreon.com/trunk/centre...gFileSetup.php
 
Old 03-24-2013, 01:01 PM   #7
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
restarting httpd

Hi,
I installed Nagios and centreon , but when i finish the installation of centreon , i get a white page.

WHen i restart the httpd service ( service httpd restart ) and i check the error_log file of httpd , i get those lines, do u thing is there any errors ? please help me .

Code:
[Sun Mar 24 18:57:55 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Mar 24 18:57:55 2013] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 24 18:57:55 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/msql.so' - /usr/lib64/php/modules/msql.so: cannot open shared obje$
PHP Warning:  Module 'ldap' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules//usr/lib64/php/modules/mysql.so' - /usr/lib64/php/modules//usr/lib$
[Sun Mar 24 18:57:55 2013] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
and also those when i open http://myadresse/centreon/

[Sun Mar 24 19:02:22 2013] [error] [client @] PHP Warning: require_once(DB.php) [<ahref='function.require-once'>function.require-once<$$-once</a>]: failed to open stream: No such file or directory in /usr/local/centreon/www/class/centreonDB.class.php on line 39

[Sun Mar 24 19:02:22 2013] [error] [client @] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed$ opening required 'DB.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/centreon/www/class/centreonDB.class.php on line 39

Last edited by tissam89; 03-24-2013 at 01:05 PM.
 
Old 03-24-2013, 02:18 PM   #8
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Thanks for you answer .
I'm running redhat 5
 
Old 03-25-2013, 10:28 AM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Unable to load dynamic library '/usr/lib64/php/modules/msql.so' - /usr/lib64/php/modules/msql.so: cannot open shared obje$
Quote:
Unable to load dynamic library '/usr/lib64/php/modules//usr/lib64/php/modules//usr/lib$
This makes me suspicious and (think) it is that a library might be missing or just not loading.

Check and see that the file is really there:
http://www.gossamer-threads.com/list...e/users/408557
http://www.linuxquestions.org/questi...odules-936157/

When you extracted the tar.gz did you check to ensure the files integrity?
If the problem persists you could re-down load it, extract it, but this time pay close attention to the "Read Me" file or the "Install " file-

Is this what you downloaded?
Quote:
Centreon-2.4.1.tar.gz
(10.1MB)
If it were me I would of just used the terminal:
Quote:
yum install centreon

Last edited by Ztcoracat; 03-25-2013 at 10:56 AM.
 
Old 03-25-2013, 11:35 AM   #10
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Yes ! I donwloaded the versions 2.3.4

when i run yum install centreon i have this error :
Code:
Loaded plugins: security
Setting up Install Process
No package centreon available.
Nothing to do
I think I don't have the package php-pear and perl-rddtool ( I don't know how can i check if i have it )

I didn't succed to install it i downloaded RPM Packages , but evry time they asked ( PackageX Needed by ......)

Think is this the problem ? How can i fix it

I am also connecting to internet via a proxy, it could be problem?

Last edited by tissam89; 03-25-2013 at 11:36 AM.
 
Old 03-25-2013, 06:56 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
I think I don't have the package php-pear and perl-rddtool ( I don't know how can i check if i have it )
It should be in /usr/share/doc
Or you can open the terminal and run:
Code:
locate pear
locate perl

Some Linux distributions (e.g. Redhat) seem to be using links instead of lynx as the name for their command line browser. If this is the case for you, you need to change the above line correspondingly.

You can also save http://pear.php.net/go-pear as go-pear.php and run it with:

php go-pear.php
http://pear.php.net/manual/fr/installation.getting.php


I'm looking in the Red Hat documentation to help-

Last edited by Ztcoracat; 03-25-2013 at 06:59 PM.
 
Old 03-26-2013, 04:27 AM   #12
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
when i do locate pear, i have to many files ,i have this too
Code:
/usr/lib64/php/pear
... Do you think is ok ?

and also many perl files on :
Code:
/usr/share/doc/
Thank you so much for your replies .

Quote:
Originally Posted by Ztcoracat View Post
It should be in /usr/share/doc
Or you can open the terminal and run:
Code:
locate pear
locate perl

Some Linux distributions (e.g. Redhat) seem to be using links instead of lynx as the name for their command line browser. If this is the case for you, you need to change the above line correspondingly.

You can also save http://pear.php.net/go-pear as go-pear.php and run it with:

php go-pear.php
http://pear.php.net/manual/fr/installation.getting.php


I'm looking in the Red Hat documentation to help-
 
Old 03-26-2013, 02:28 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
You are Welcome-

I found the Red Hat Instructions for the Install of Centreon, Nagios and etc.
I would follow this exactly and this way there won't be anymore confusion and you wondering if things are there or not.

The fact that you have:
/usr/lib64/php/pear is good.

Not sure about Perl.
I will consult with another Member and do my best to find out.

Another way to check that Centreon is installed is to run:
Code:
locate Centreon
If indeed this application is installed you will see the files and the libraries that support it.
I didn't include all the depend packages as it would be to big to post.
Like in my (example) as I have [B]GIMP[/B installed-

Code:
/usr/share/gimp/2.0/themes/Default/images/preferences/folders-tool-plug-ins.png
/usr/share/gimp/2.0/themes/Default/images/preferences/folders-tools-22.png
/usr/share/gimp/2.0/themes/Default/images/preferences/folders.png
/usr/share/gimp/2.0/themes/Default/images/preferences/help-system-22.png
/usr/share/gimp/2.0/themes/Default/images/preferences/help-sy
/var/lib/dpkg/info/libgimp2.0.shlibs
/var/lib/dpkg/info/libgimp2.0.symbols
/var/lib/menu-xdg/applications/menu-xdg/X-Debian-Applications-Graphics-the_gimp.desktop
ztcoracat:~$
 
Old 03-26-2013, 05:33 PM   #14
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
I see!
I think is ok .

Thank you so much for your time to answer .

I have try to uninstall httpd and install it again , but didn't succed .

i open the package and i do

Code:
./configure
make
make install
But there is not httpd file created on /etc/init.d directory
and my " service httpd start" command give this error :

Code:
httpd: unrecognized service
i tried to install it with " yum install httpd " , but i have this message :

Code:
# yum install httpd
Loaded plugins: security
Setting up Install Process
No package httpd available.
Nothing to do
 
Old 03-27-2013, 04:06 AM   #15
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
I installed httpd using RPM package but i have a problem with my yum .

i want to use
Code:
yum install php rrdtool perl-rrdtool
No package php available.
and the same for the other packages .

how can i resolve it ??
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Monitoring Setup Part 1: Installing Centreon, Nagios & NDOUtils LXer Syndicated Linux News 0 06-13-2012 04:20 AM
Error Configuration file /usr/local/centreon/ODS/etc/conf.pm not found. existing jsaravana87 Linux - Server 1 10-08-2011 10:39 AM
Fedora 11 centreon installation baliman Linux - Newbie 2 01-18-2010 07:37 AM
monitoring Zenoss or centreon(nagios) nima0102 Linux - Networking 3 11-11-2009 05:50 AM
Centreon Install problem. rlocone Linux - Networking 4 05-15-2008 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration