manual install issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

Re: manual install issues

Post by questrad »

grep root /etc/sudoers
## the root user, without needing the root password.
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## cdrom as root
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: manual install issues

Post by lmiltchev »

Hm-m-m, this line looks normal.

I am still not sure why you modified our original script by removing the "sudo" from the two lines on the first place...

Code: Select all

cat /tmp/nagiosxi/nagiosxi/create_postgres_db.sh
#!/bin/sh

sudo -u postgres psql -c "create user nagiosxi with password 'n@gweb';"
sudo -u postgres psql -c "create database nagiosxi owner nagiosxi;"
Is there any reason you did this?

Undo the changes and try running the fullinstall again. Did it work?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: manual install issues

Post by eloyd »

Probably because there's no reason to run the install through sudo if you're already root.

We're running into an instance where we have root access but are not allowed to modify the sudoers file, and root does not have sudo access. I know this a a year old thread, but even with the latest 5.3 install, there's still sudo commands in the install scripts. In our case, it messed us up so badly we had to restart the install and remove all the sudos.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: manual install issues

Post by lmiltchev »

This is already irrelevant as we no longer include the "create_postgres_db.sh" script in our installer.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked