Page 1 of 1

Permission denied while installaing nagios fusion server

Posted: Mon Dec 05, 2016 7:22 am
by abhishek
Hi,
I got below error while installing the nagios fusion server . Kindly help me to over come from this situation .

Creating product directory...
Reloading httpd:
Creating postgres database and user...
-bash: /root/nagiosfusion/nagiosfusion/create_postgres_db.sh: Permission denied
RESULT=126

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios Fusion technical support.

The script that failed was: './B-installfusion'

Re: Permission denied while installaing nagios fusion server

Posted: Mon Dec 05, 2016 3:51 pm
by avandemore
What OS and OS version are you using? Please attach the install.log file.

Re: Permission denied while installaing nagios fusion server

Posted: Mon Dec 05, 2016 11:59 pm
by abhishek
Hi,
I am using Centos 6.8 . PFA for install.log

Re: Permission denied while installaing nagios fusion server

Posted: Tue Dec 06, 2016 1:03 pm
by lmiltchev
Did you run the installer from the "/tmp" directory? You didn't run it from "/", did you?

What is the output of the following commands?

Code: Select all

grep postgres /etc/group
grep postgres /etc/passwd
sestatus

Re: Permission denied while installaing nagios fusion server

Posted: Thu Dec 08, 2016 5:17 am
by abhishek
Hi,
I have install nagios fusion from /root/ directoy . And the output is :
[root@nagios-fusion ~]# grep postgres /etc/group
postgres:x:26:
[root@nagios-fusion ~]# grep postgres /etc/passwd
postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash
[root@nagios-fusion ~]# sestatus
SELinux status: disabled

Re: Permission denied while installaing nagios fusion server

Posted: Thu Dec 08, 2016 4:45 pm
by ssax
Run this command and then try again:

Code: Select all

chmod +x /root/nagiosfusion/nagiosfusion/create_postgres_db.sh
If it still fails, please run this command and send the entire output:

Code: Select all

su - postgres -c /root/nagiosfusion/nagiosfusion/create_postgres_db.sh