Page 1 of 1

Issues with the Web Interface

Posted: Mon Jul 22, 2013 6:35 pm
by linuxnewbie
Hey Everyone!

So over the weekend my nagios server has stopped displaying the Web Interface stating it cannot connect.
I get this error if i attempt: http//localhost/nagios, http//127.0.0.1/nagios, and the web address we would normally use.

Nothing has been changed since the date of installation a few months ago. Anyone know why the site would stop working randomly?

Thanks

Re: Issues with the Web Interface

Posted: Tue Jul 23, 2013 9:45 am
by slansing
Have you verified that apache is properly running, selinux and iptables are either disabled or forwarding properly?

Code: Select all

service httpd restart

Code: Select all

sestatus

Code: Select all

iptables -L

Re: Issues with the Web Interface

Posted: Tue Jul 23, 2013 1:02 pm
by linuxnewbie
Thanks for the help with this.

Attempting to restart httpd: gives me this error - httpd: unrecognized service

Running sestatus - The program 'sestatus' is currently not installed. You can install it by typing:
sudo apt-get install policycoreutils
(i will be looking up policycoreutils after i finish this to see if i should install it.)

Iptables -L looks like its empty:

Code: Select all

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination        

Ive checked to see if apache2 is installed it is, its also the latest update of apache2.

Re: Issues with the Web Interface

Posted: Tue Jul 23, 2013 2:02 pm
by slansing
Don't worry about SELINUX at the time being, what distro are you running? Sounds like some sort of Debian based build? Maybe Ubuntu? Was Apache running? Were you able to restart it and re-check the interface?

Have you verified that nagios is also running on the system?

Re: Issues with the Web Interface

Posted: Tue Jul 30, 2013 12:17 pm
by linuxnewbie
Sorry for the long delay, been out of the office for a bit.

Were runnig Ubuntu 12.10

Attempting to restart apache has it throwing errors at me like crazy. Attepting to research whats going on, but with a limited knowlage of linux im getting lost.

I know nagios is still running because im getting email alerts from nagios.

So here is the error im fighting with in apache:

Code: Select all

#:~$ sudo service apache2 start 
 * Starting web server apache2                    
[Tue Jul 30 10:05:50 2013] [warn] NameVirtualHost *:85 has no VirtualHosts
Action 'start' failed.
The Apache error log may have more information.
The apache log file is greek to me, but ill paste a bit for you to see.

Code: Select all

[Tue Jul 30 10:05:50 2013] [error] Init: Private key not found
[Tue Jul 30 10:05:50 2013] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Tue Jul 30 10:05:50 2013] [error] SSL Library Error: 218640442 error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
[Tue Jul 30 10:05:50 2013] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Tue Jul 30 10:05:50 2013] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Tue Jul 30 10:05:50 2013] [error] SSL Library Error: 67710980 error:04093004:rsa routines:OLD_RSA_PRIV_DECODE:RSA lib
[Tue Jul 30 10:05:50 2013] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Tue Jul 30 10:05:50 2013] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error

At this point i highly doubt it is an issue with nagios and rather an issue with apache. With my limited knowlage im having a little trouble lol.

Tanks for looking.

Re: Issues with the Web Interface

Posted: Tue Jul 30, 2013 3:03 pm
by abrist
Looks like potential vhosts issues. Could you post the contents of your apache vhost files? What distro are you running?