Page 1 of 2

SourceGuardian Error

Posted: Thu Feb 24, 2011 9:43 am
by macranes
Hello, I installed Nagios Fusion per the provided documentation on a clean install of Cent OS 5.5 32 bit. I am now getting this error:

"PHP script /usr/local/nagiosfusion/html/includes/dbl.inc.php is protected by SourceGuardian and requires the SourceGuardian loader ixed.5.1.lin. The SourceGuardian loader has not been installed, or is not installed correctly."

I reviewed the installation logs and haven't found any errors. Does anyone have any idea what might be causing this? Any help is greatly appreciated.

thanks-

Re: SourceGuardian Error

Posted: Thu Feb 24, 2011 11:29 am
by mguthrie
We haven't seen this issue for a while now, but see if the solution we posted to our FAQ does the trick for you.

http://support.nagios.com/wiki/index.ph ... ian_Errors

Re: SourceGuardian Error

Posted: Thu Feb 24, 2011 12:12 pm
by macranes
Thanks for your help. I am now getting this error and the database services are running.

"DB Connect Error [nagiosfusion]: Database connection failed "

i tried the fix from: http://support.nagios.com/wiki/index.ph ... _failed.22

but the services restart correctly.

thanks again for you help.

Re: SourceGuardian Error

Posted: Thu Feb 24, 2011 12:44 pm
by mguthrie
Try refreshing your javascript cache by pressing shift and reloading the browser.

Also, try going to Admin->Reset security credentials to update the backend credentials now that sourcegaurdian is loaded.

Re: SourceGuardian Error

Posted: Fri Feb 25, 2011 8:30 am
by macranes
I tried refreshing the Java cache by pressing shift and clicking refresh the browser but this didn't help.
I wasn't able to go to Admin->Reset security credentials to update the backend credentials since i can't get the page to open. I also didn't see a script for updating the backend credentials in: /usr/local/nagiosfusion/scripts

I am not sure if this is relevant but on fixing the SourceGuardian Error I had to download and setup SourceGuardian. Simply adding the line to PHP.ini didn't fix the issue. I also tried a fresh install on a new system incase I didn't follow the directions properly but got the same issues.

do you have any other ideas what could fix this issue?

thanks-

Re: SourceGuardian Error

Posted: Fri Feb 25, 2011 11:27 am
by mguthrie
I just glanced at our install Docs, and I think I found the issue. It looks like we're missing a line in our instructions that loads the sourcegaurdian files.

The install steps should have you run the following file:

./3-dbservers
./11-sourcegaurdian
./B-installfusion

Try adding that step in the install process and let us know if it works. We'll get our documentation updated accordingly if it does.

Re: SourceGuardian Error

Posted: Fri Feb 25, 2011 3:09 pm
by macranes
I went through the installation again but the ./11-sourceguardian script threw a couple of errors listed below:

Adding Sourceguardian extension to php.ini
Stopping httpd: [FAILED]
Starting httpd: [ OK ]
Stopping httpd: [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address
[::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]

I ran the install on a clean install of CentOS again. What would have caused the installation error.
when trying to open the login page I get the "DB Connect Error [nagiosfusion]: Database connection failed" error.

thanks-

Re: SourceGuardian Error

Posted: Fri Feb 25, 2011 3:41 pm
by mguthrie
Hmm, can you show me the output that you get from the following commands?

service httpd restart
service mysqld restart
service postgresql restart


If all of those start up successfully try the web interface again.

Re: SourceGuardian Error

Posted: Wed Mar 09, 2011 1:58 pm
by macranes
Hello, I did a successful restart on all 3 services and I am still getting this error: DB Connect Error [nagiosfusion]: Database connection failed. I also refreshed the browser cache too. What else could be causing the issue. thanks-

Last login: Wed Feb 23 14:35:00 2011 from xxxxxx
[root@xxxxxx ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@xxxxxx ~]# service mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
[root@xxxxxx ~]# service postgresql restart
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]
[root@xxxxxx ~]#

Re: SourceGuardian Error

Posted: Mon Mar 14, 2011 1:04 pm
by mguthrie
Are you running SSL or a proxy on your server?

Let me run this by our lead developer and see if he has any ideas. We're also running a test install on a clean system at the moment to see if we can recreate this.