Page 1 of 1
scripterror installing fusion
Posted: Tue Jan 22, 2013 4:07 am
by RikLijkendijk
I have tried installing fusion several times, but i keep getting errors.
I want to be able to do a full install on a freshly installed CentOS Basic Server on VMware platform.
I know a complete VM downloaded will work, but that is not the issue.
I need to be able to reproduce an installed system, as a prereq for the use of Nagios in our organization.
I used the manual install instructions 1.7 from Oct.2012 (downloaded from Nagios.com)
Basically the procedure is:
1. Start with freshly installed "clean" server
2. wget
http://assets.nagios.com/downloads/nagi ... est.tar.gz
(i changed 2010 to 2012)
3. tar xzf fusion-2010-latest.tar.gz
(again changed 2010 to 2012)
4. ./fullinstall
(In /tmp/nagiosfusion)
The script starts and after a while stops with the an error:
the script that failed was: './D-chkconfigalldaemons'
Examining the script i notice that mysqld service is configured, but there seems to be no sql server installed. (unrecognized service when checking status for mysqld)
What is my reasl error
Should mysql have been installed by the fullinstall script or is the configscript wrong?
Thanks for any reation
Rik Lijkendijk
Re: scripterror installing fusion
Posted: Tue Jan 22, 2013 10:08 am
by mguthrie
Looks like you grabbed an old version of Nagios Fusion. Clear out your tmp directory and try this URL.
http://assets.nagios.com/downloads/nagi ... 1.5.tar.gz
If for some reason it throws errors because of the previous install attempt, run the
upgrade script.
Re: scripterror installing fusion
Posted: Wed Jan 23, 2013 3:29 am
by RikLijkendijk
I have downloaded the r1.5 version and it seems that "latest" is not really the latest!!!
This morning i repeated the process (complete new install CentOS) with the recommended version.
After installing fusion i was able to login via the webinterface and configure fusion.
Everything looked OK and i was getting hopeful that this was the solution.
However......
After a reboot of the new fusion server when i try to access the webinterface : "DB Connect Error [nagiosfusion]: Database connection failed"
A service status check for httpd and postgresql shows that the services are running.
What is the problem here?
Kind Regards,
Rik Lijkendijk
Re: scripterror installing fusion
Posted: Wed Jan 23, 2013 10:31 am
by mguthrie
I have downloaded the r1.5 version and it seems that "latest" is not really the latest!!!
I think where things got hung up here is that you downloaded the 2010-latest, instead of the 2012-latest. ...And I just pulled up the doc, and it appears our documentation is out of date for that link!

We'll make that update today.
Lets start simple and go from there.
If you still get the same message, post the output from:
Re: scripterror installing fusion
Posted: Thu Jan 24, 2013 7:04 am
by RikLijkendijk
Unfortunately restarting the postgresql service doesn't help!
I have attached the requested error_log.
Hoping for a solution....
Regards,
Rik Lijkendijk
Re: scripterror installing fusion
Posted: Thu Jan 24, 2013 7:09 am
by RikLijkendijk
The log-file dissapeared. (extension not allowed?)
renamed the file to error_log.txt and attached again.
Regards,
Rik Lijkendijk
Re: scripterror installing fusion
Posted: Thu Jan 24, 2013 10:12 am
by mguthrie
I"m noticing that you've re-enabled selinux, which is a likely cause of the problem. Can you try disabling it and see if that resolves the issue. Here are the notable items in the log.
Code: Select all
[Thu Jan 24 12:48:27 2013] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
Code: Select all
[Thu Jan 24 12:49:35 2013] [error] [client 192.168.254.76] PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Permission denied\n\tIs the server running on host "localhost" and accepting\n\tTCP/IP connections on port 5432?\ncould not connect to server: Permission denied\n\tIs the server running on host "localhost" and accepting\n\tTCP/IP connections on port 5432? in /usr/local/nagiosfusion/html/db/adodb/drivers/adodb-postgres64.inc.php on line 686
To disable selinux run:
Code: Select all
setenforce 0
service httpd restart
Also, to avoid log spam to the apache log, you'll want to set your timezone in the /etc/php.ini file.
http://support.nagios.com/wiki/index.ph ... e.22_Error
Re: scripterror installing fusion
Posted: Fri Jan 25, 2013 4:36 am
by RikLijkendijk
That did the trick! SELINUX was the cause.
I would like to point out the i did NOT RE-ENABLE selinux!!
When installing CentOS 6.3 in the BASIC server method there is NO option to disable selinux.
I think the option is available in the full-install, which is NOT recommended by Nagios.
So in my opinion the disabling of SELINUX should be mentioned as a prerequisit for installing xi or fusion.
My problem is solved at this point, so thank you very much for that, and i hope to see a complete prerequisite description in the near future.
Kind Regards
Rik Lijkendijk
Re: scripterror installing fusion
Posted: Fri Jan 25, 2013 11:01 am
by slansing
Silly SELINUX

Thanks for letting us know your issue was solved!