Issues with the Web Interface

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
linuxnewbie
Posts: 21
Joined: Tue Feb 19, 2013 6:54 pm

Issues with the Web Interface

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Issues with the Web Interface

Post 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
linuxnewbie
Posts: 21
Joined: Tue Feb 19, 2013 6:54 pm

Re: Issues with the Web Interface

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Issues with the Web Interface

Post 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?
linuxnewbie
Posts: 21
Joined: Tue Feb 19, 2013 6:54 pm

Re: Issues with the Web Interface

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Issues with the Web Interface

Post by abrist »

Looks like potential vhosts issues. Could you post the contents of your apache vhost files? What distro are you running?
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.
Locked