unable to reinstall cleanly - always prompts for login

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
ananke
Posts: 21
Joined: Fri Jun 03, 2016 3:14 pm

unable to reinstall cleanly - always prompts for login

Post by ananke »

While setting up a test instance, very shortly ran into an odd issue: none of the log entries had any content. (there were events, with timestamps, but none of the values had any content. completely blank). I figured since it was so early in the process, we can just perform a reinstall of nagios log server.

Unfortunately, no matter what I find & remove, web UI always prompts me for username & password, and never shows the initial setup screens. Trying to reset the password for nagiosadmin with the included script doesn't seem to work (which is another issue, perhaps I should open a new post. The script discards all output and always claims success), and I ged 'could not get user. Specified ID may be wrong.


Here are the things I've removed to be on the safe side and performed fullinstall with no success, and I'm wondering what I'm missing:

/usr/local/nagioslogserver/
/var/log/logstash/
/var/log/elasticsearch/
/etc/sysconfig/logstash (this probably should have different permissions by the way, no need to have exec bit set)
/etc/rsyslog.d/nagioslogserver.conf (this has DOS line endings. I don't think it causes major issues, but it probably should be cleaned up)
/etc/httpd/conf.d/nagioslogserver.conf
/var/www/html/nagioslogserver/
- nagios user & group entries


What gives? Where is the information stored that makes NLS think it was previously installed on the system?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: unable to reinstall cleanly - always prompts for login

Post by hsmith »

Can you try a different timezone when doing your initial setup? This sounds like an issue I may have seen before.
Former Nagios Employee.
me.
ananke
Posts: 21
Joined: Fri Jun 03, 2016 3:14 pm

Re: unable to reinstall cleanly - always prompts for login

Post by ananke »

hsmith wrote:Can you try a different timezone when doing your initial setup? This sounds like an issue I may have seen before.
It seems I do not get prompted for the time zone or any other initial setup questions. I've repeated the process with similar end results:

1) stop logstash, elastic search, apache
2) remove everything I've listed above
3) reboot
4) untar a fresh copy of nagios log server install tarball
5) run fullinstall script
6) visit the web page

At last step I get the typical NLS login screen, not the install steps.
ananke
Posts: 21
Joined: Fri Jun 03, 2016 3:14 pm

Re: unable to reinstall cleanly - always prompts for login

Post by ananke »

I think I may have crossed my streams, and obliterated /var/www/html/nagioslogserver on a wrong system. This would explain why removing other things didn't work.

For future reference, here's the file that gets created after successful setup stage via the web UI:

/var/www/html/nagioslogserver/application/cache/installed

WIth that file in place, NLS web UI prompts with the regular login.

Please consider this issue closed, thank you for your help. Perhaps at some point documentation could mention a sample cleanup/removal procedure. With regards to the password change script, I'll just create a new post.

Cheers!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: unable to reinstall cleanly - always prompts for login

Post by mcapra »

Closing this up
Former Nagios employee
https://www.mcapra.com/
Locked