Running reconfigure_nagios.sh

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Running reconfigure_nagios.sh

Post 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)
Last edited by dwhitfield on Tue Dec 13, 2016 10:09 am, edited 1 time in total.
Reason: marking with green check mark
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Running reconfigure_nagios.sh

Post 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
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Running reconfigure_nagios.sh

Post by optionstechnology »

I wasn't running it as root- but I just did and it worked fine!

Thanks
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Running reconfigure_nagios.sh

Post by dwhitfield »

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Running reconfigure_nagios.sh

Post by optionstechnology »

yeah sure- it is resolved

\thanks for your help
Locked