Page 1 of 1

Nagios XI no webpage after failed password ?

Posted: Thu Jun 08, 2017 10:50 am
by teakian
Hi, so I installed offline pkg: nagiosxi-5-4.4.el6.x86_64.tar.gz

had wrong password : during "fullinstall"
# ./fullinstall
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Local Package Process
Examining fping-3.10-1.el6.rf.x86_64.rpm: fping-3.10-1.el6.rf.x86_64.....
....
Installing : php-pear-HTML-Template-IT-1.3.0-2.el5.noarch 67/90
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'snmp' already loaded in Unknown on line 0
Installing : perl-SNMP_Session-1.12-4.el6.noarch 68/90
Installing : nagiosxi-nrds-5-4.4.el6.x86_64 69/90
Installing : perl-Net-LibIDN-0.12-3.el6.x86_64 70/90
Installing : perl-IO-Socket-SSL-1.31-3.el6_8.2.noarch 71/90
Installing : perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch 72/90
Installing : nagiosxi-nsca-5-4.4.el6.x86_64 73/90
Installing : nagiosxi-5-4.4.el6.x86_64 74/90
Enter password:
Enter password:
Enter password:
Password failed.
Password failed.
Password failed.
Updating : php-devel-5.3.3-49.el6.x86_64 75/90
Updating : postgresql-devel-8.4.20-7.el6.x86_64 76/90
Cleanup : postgresql-devel-8.4.20-6.el6.x86_64 77/90
Cleanup : php-devel-5.3.3-48.el6_8.x86_64 78/90
Cleanup : php-5.3.3-48.el6_8.x86_64 ...
...

Complete!

And there is no webpage at my server/nagiosxi/ (no references in httpd.conf either)
Using the uninstall-xi script didn't work - manual yum reinstalling all packages with yum -y --nogpgcheck reinstall *.rpm didn't help.
How do I do a clean re-install on this server using the correct mysql password this time ?

Thanks!

Re: Nagios XI no webpage after failed password ?

Posted: Thu Jun 08, 2017 1:06 pm
by teakian
So I found another uninstall script : uninstall_xi.sh and tried that along with some of the manual steps (rm -rm /usr/local/nagios* , groupdel nagios including removing mysql and postgres)

After all that, did a fullinstall and while it show Completed! ...It still doesn't work - any options other than server OS reinstall ?

TIA!

Re: Nagios XI no webpage after failed password ?

Posted: Thu Jun 08, 2017 2:35 pm
by tgriep
Can you login to the Nagios server at root, run the following commands and post the output?

Code: Select all

ps -ef --cols=300
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
ls -l /etc/httpd/conf.d
tail -50 /var/log/httpd/error_log
yum list installed |grep nagios

Re: Nagios XI no webpage after failed password ?

Posted: Thu Jun 08, 2017 3:29 pm
by teakian
Solved I guess - running the uninstall scripts wasn't enough, I ended up removing all the /usr/local/nagios* dir and rpm -e all the packages starting with nagios-* as well as mysql and postgres prior to re-running the fullinstall script.
It's working now.

Thanks!

Re: Nagios XI no webpage after failed password ?

Posted: Thu Jun 08, 2017 4:34 pm
by tgriep
That makes sense, the uninstall_xi.sh script is more for the XI source install so it may not of removed all of the components.
Glad you got it working now. If you don't have any other questions, shall I close and lock the post?