Page 1 of 2

nagiosxi error

Posted: Fri Jun 14, 2013 11:04 am
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

Re: nagiosxi error

Posted: Fri Jun 14, 2013 12:12 pm
by abrist
Have you created/added any rewrite rules to the apache config?

Re: nagiosxi error

Posted: Fri Jun 14, 2013 1:06 pm
by benhank
I installed the nnagios network anyliser

Re: nagiosxi error

Posted: Fri Jun 14, 2013 1:10 pm
by abrist
Was that all that was changed before this error occurred?

Re: nagiosxi error

Posted: Fri Jun 14, 2013 1:11 pm
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/

Re: nagiosxi error

Posted: Fri Jun 14, 2013 1:14 pm
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?

Re: nagiosxi error

Posted: Fri Jun 14, 2013 1:23 pm
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

Re: nagiosxi error

Posted: Mon Jun 17, 2013 10:53 am
by benhank
hey how do I uninstall NNA? I was just testing it.

Re: nagiosxi error

Posted: Mon Jun 17, 2013 12:12 pm
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

Re: nagiosxi error

Posted: Mon Jun 17, 2013 12:43 pm
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 ****