Page 2 of 2

Re: Problem with logon after upgrade to v5.3.1

Posted: Thu Nov 10, 2016 12:42 am
by Ivica Mustapic
After adding "Require all granted" to the nagiosxi.conf file and restarting apache, the following new errors are reported:

[Thu Nov 10 13:29:21 2016] [crit] [client 127.0.0.1] configuration error: couldn't perform authentication. AuthType not set!: /nagiosxi/backend/
[Thu Nov 10 13:29:41 2016] [crit] [client 127.0.0.1] configuration error: couldn't perform authentication. AuthType not set!: /nagiosxi/backend/
[Thu Nov 10 13:29:55 2016] [crit] [client 10.8.20.41] configuration error: couldn't perform authentication. AuthType not set!: /nagiosxi

Cheers,
Ivica

Re: Problem with logon after upgrade to v5.3.1

Posted: Thu Nov 10, 2016 10:55 am
by avandemore
Opps, CentOS 6 has a relatively old version of Apache which doesn't use that directive. Please remove the line and restart the webserver.

After that, please post the output of this:

Code: Select all

# /usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/
and

Code: Select all

# service --status-all

Re: Problem with logon after upgrade to v5.3.1

Posted: Thu Nov 10, 2016 8:25 pm
by Ivica Mustapic
EDIT: Please wrap in code tags

Here we are:

Code: Select all

/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/
Cannot open cookies file `nagiosql.cookies': No such file or directory
--2016-11-11 09:17:59--  http://localhost/nagiosxi/
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1 [following]
--2016-11-11 09:17:59--  http://localhost/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html'

    [ <=>                                                            ] 25,694      --.-K/s   in 0.01s   

2016-11-11 09:17:59 (1.90 MB/s) - `index.html' saved [25694]

Code: Select all

service --status-all
abrt-ccpp hook is installed
abrtd (pid  2015) is running...
abrt-dump-oops (pid 2025) is running...
acpid (pid  1377) is running...
ajaxterm (pid  2140) is running...
atd (pid  2103) is running...
auditd (pid  1265) is running...
avagent Info: Could not cd into vardir ("/usr/local/avamar/var").
cpuspeed is stopped
crond (pid  2054) is running...
hald (pid  1389) is running...
htcacheclean is stopped
httpd (pid  10450) is running...
ip6tables: Firewall is not running.
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22 
5    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:80 
6    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:443 
7    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           state NEW udp dpt:162 
8    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:445 
9    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           state NEW udp dpt:445 
10   ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           state NEW udp dpt:137 
11   ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           state NEW udp dpt:138 
12   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:139 
13   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:5666 
14   LOGGING    all  --  0.0.0.0/0            0.0.0.0/0           

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination         
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination         

Chain LOGGING (1 references)
num  target     prot opt source               destination         
1    LOG        all  --  0.0.0.0/0            0.0.0.0/0           limit: avg 2/min burst 5 LOG flags 0 level 4 prefix `Dropped: ' 
2    DROP       all  --  0.0.0.0/0            0.0.0.0/0           

irqbalance (pid  1321) is running...
Kdump is operational
lvmetad is stopped
dmeventd is stopped
mdmonitor is stopped
messagebus (pid  1339) is running...
mysqld (pid  5474) is running...
nagios (pid 45187) is running...
nagios (pid 45187) is running...
ndo2db (pid 5539) is running...
netconsole module not loaded
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth1
nmbd (pid  2066) is running...
NPCD running (pid 2089).
ntpd is stopped
master is stopped
postmaster (pid  1979) is running...
Process accounting is disabled.
quota_nld is stopped
rdisc is stopped
rngd is stopped
rsyslogd (pid  1287) is running...
sandbox is stopped
saslauthd is stopped
smartd is stopped
smbd (pid  2078) is running...
Usage: /etc/init.d/sms {start|stop|restart}
snmpd (pid  1544) is running...
snmptrapd (pid  1555) is running...
snmptt (pid  27848) is running...
openssh-daemon (pid  1784) is running...
svnserve is stopped
vmtoolsd is running
winbindd is stopped
xinetd (pid  1795) is running...

Re: Problem with logon after upgrade to v5.3.1

Posted: Fri Nov 11, 2016 10:12 am
by avandemore
What is the output of these?

Code: Select all

# sestatus
# df -h
# df -i
Also please run through this document:
Repairing The Database

Re: Problem with logon after upgrade to v5.3.1

Posted: Sun Nov 13, 2016 10:01 pm
by Ivica Mustapic
As requested:

(09:29 AM)-> sestatus
SELinux status: disabled


(10:59 AM)-> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
403G 22G 361G 6% /
tmpfs 3.8G 0 3.8G 0% /dev/shm
/dev/sda1 97M 70M 22M 77% /boot


(10:59 AM)-> df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol00
26779648 156844 26622804 1% /
tmpfs 982092 1 982091 1% /dev/shm
/dev/sda1 25688 46 25642 1% /boot


Cheers,
Ivica

Re: Problem with logon after upgrade to v5.3.1

Posted: Mon Nov 14, 2016 11:49 am
by avandemore
Ok, it looks like this is an system that may have started prior to the XI 5.x version. Is this correct?

If so please upload the postgresql log, by default this is in /var/lib/pgsql/data/pg_log/*.log

Re: Problem with logon after upgrade to v5.3.1

Posted: Mon Nov 14, 2016 11:50 am
by tgriep
Can you login as root to the XI server and run the following command

Code: Select all

tail -f /var/log/httpd/*_log
Then login to the XI GUI and post the output of the tail command so we can view the errors.

Re: Problem with logon after upgrade to v5.3.1

Posted: Thu Nov 17, 2016 2:16 am
by Ivica Mustapic
Thanks for you help, please close off this post.
I will reinstall full system.

Cheers,
Ivica

Re: Problem with logon after upgrade to v5.3.1

Posted: Thu Nov 17, 2016 10:33 am
by avandemore
Thanks @Ivica Mustapic, closing per request.