nagiosxi error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

nagiosxi error

Post by benhank »

My nagios server wont let me login,
I am getting this error when I run:

Code: Select all

tail -f /var/log/httpd/error_log

Code: Select all

 [error] [client ::1] (13)Permission denied: access to /nagiosxi/backend/index.html.var denied
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi error

Post by abrist »

Have you created/added any rewrite rules to the apache config?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: nagiosxi error

Post by benhank »

I installed the nnagios network anyliser
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi error

Post by abrist »

Was that all that was changed before this error occurred?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: nagiosxi error

Post by sreinhardt »

Ah I may be mistaken, but you should never be going to a .html page in XI. It should always be a directory or a .php. Can you confirm for me that you do not have this file on your system, unless of course its a part of NNA.

Code: Select all

ll /usr/local/nagiosxi/html/backend/
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: nagiosxi error

Post by benhank »

Code: Select all

[root@LkennagiosT01 ~]# ll /usr/local/nagiosxi/html/backend/
total 16
-rwxr-x---. 1 nagios nagios  149 Feb 21 16:35 config-backend.inc.php
drwxr-x---. 2 nagios nagios 4096 Aug 10  2012 includes
-rwxr-x---. 1 nagios nagios 5600 Feb 21 16:35 index.php
You have new mail in /var/spool/mail/root
[root@LkennagiosT01 ~]#
is there a way to uninstall NNA?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi error

Post by abrist »

Could you post a copy of the following apache vhost configs in code wraps:

Code: Select all

/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/nagiosna.conf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: nagiosxi error

Post by benhank »

hey how do I uninstall NNA? I was just testing it.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi error

Post by abrist »

You should be able to uninstall it by:
Removing NNA files:

Code: Select all

rm -r /usr/local/nagiosna
rm /etc/httpd/conf.d/nagiosna.conf
Restart apache:

Code: Select all

service httpd restart
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: nagiosxi error

Post by benhank »

it's gonna be one of those days.... I am so close to just reinstalling centos and nagios on this svr...

Code: Select all


[root@LkennagiosT01 ~]# rm -r /usr/local/nagiosna
rm: descend into directory `/usr/local/nagiosna'? y
rm: descend into directory `/usr/local/nagiosna/var'? y
rm: remove directory `/usr/local/nagiosna/var/spool'? y
rm: cannot remove `/usr/local/nagiosna/var/spool': Device or resource busy

[root@LkennagiosT01 ]# service httpd stop
Stopping httpd:                                            [  OK  ]

[root@LkennagiosT01 ]# rm -r /usr/local/nagiosna
rm: descend into directory `/usr/local/nagiosna'? y
rm: descend into directory `/usr/local/nagiosna/var'? y
rm: remove directory `/usr/local/nagiosna/var/spool'? y
rm: cannot remove `/usr/local/nagiosna/var/spool': Device or resource busy
I am left with the following empty directories:

Code: Select all

/usr/local/nagiosna/var/spool
so I tried a reinstall. ( You can tell I'm a windows guy huh"what? it aint workin?? Reboot! That didn't work?? reinstall man!" That's not workin too?? oh well break out the "Useless acronyms and Tech explanations sound really really good", book ...)

Code: Select all

=========================================
**** INSTALLER DID NOT SUCCESSFULLY FINISH ****
[root@LkennagiosT01 nagiosna]# python fullinstall.py
=========================================
Running installconfigdjango
=========================================
rm: cannot remove `/usr/local/nagiosna/var/config.sql': No such file or directory
**** IRRECOVERABLE ERROR ****
=========================================
[Errno 2] No such file or directory: '/usr/local/nagiosna/html/nna/nfquery/static/'
=========================================
**** INSTALLER DID NOT SUCCESSFULLY FINISH ****
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked