Page 1 of 1

Running reconfigure_nagios.sh

Posted: Mon Dec 12, 2016 3:07 pm
by optionstechnology
Nagios 5.3.2
Centos VM Template

When I run reconfigure_nagios.sh I get:


URL: https://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies https://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=############' -O nagiosql.loginnagiosql.login: Permission denied
LOGIN SUCCESSFUL!
NAGIOSQL LOGIN FAILED!

(I've obfuscated the password)

Re: Running reconfigure_nagios.sh

Posted: Mon Dec 12, 2016 3:25 pm
by ssax
Are you running it as the nagios user or root user?

Code: Select all

su - nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Re-run it with the EXACT commands above and send us the entire output.

Also, please send the output of these commands:

Code: Select all

ls -l /usr/local/nagiosxi/scripts
ls -ld /usr/local/nagiosxi
ls -l /usr/local/nagiosxi
grep nag /etc/group
chage -l nagios
grep "User \|Group " /etc/httpd/conf/httpd.conf
cat /etc/sudoers
Thank you

Re: Running reconfigure_nagios.sh

Posted: Mon Dec 12, 2016 4:29 pm
by optionstechnology
I wasn't running it as root- but I just did and it worked fine!

Thanks

Re: Running reconfigure_nagios.sh

Posted: Mon Dec 12, 2016 4:30 pm
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!

Re: Running reconfigure_nagios.sh

Posted: Tue Dec 13, 2016 9:20 am
by optionstechnology
yeah sure- it is resolved

\thanks for your help