Page 1 of 1

Core web interface not displaying correctly

Posted: Thu Sep 17, 2015 2:56 am
by dapaulio
Hi all
Not only am i Nagios newbie i am also a linux newbie.
I have installed Ubuntu Server 14.04.3 LTS core only installation on a virtual machine and installed Nagios Core 4.1.1 with Nagios Plugins 2.0.3 as per the install instructions outlined in the Nagios install notes and also from unixmen.
I have reinstalled Nagios three times and on all occasions i can log in to the nagios core web interface however it shows as not running and most of the pages in the web interface look like the screen shot attached.

in fact here are my cmds i used
My experience and knowledge extends solely to these three attempts of installing Nagios
Your help would be greatly appreciated

Code: Select all

http://www.unixmen.com/how-to-install-nagios-4-1-in-ubuntu-15-04/
##################################################################

sudo -i
sudo apt-get update
sudo apt-get install openssh-server
sudo apt-get install wget build-essential apache2 php5-gd libgd2-xpm-dev libapache2-mod-php5
cd /tmp
http_proxy=http://Proxy:port wget http://sourceforge.net/projects/nagios/files/nagios-4.x/nagios-4.1.1/nagios-4.1.1.tar.gz
http_proxy=http://Proxy:port wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
useradd nagios
groupadd nagcmd 
usermod -a -G nagcmd nagios
tar zxvf /tmp/nagios-4.1.1.tar.gz 
tar zxvf /tmp/nagios-plugins-2.0.3.tar.gz
cd nagios-4.1.1
./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail
sudo make all 
sudo make install
sudo make install-init 
sudo make install-config 
sudo make install-commandmode
sudo make install-webconf
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/ 
mkdir /usr/local/nagios/libexec/eventhandlers
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
mkdir /usr/local/nagios/var/spool/
mkdir /usr/local/nagios/var/spool/checkresults
chmod 777 /usr/local/nagios/var/spool/checkresults
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg 
/etc/init.d/nagios start
sudo /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/sites-enabled/nagios.conf
sudo service apache2 restart
apt-get install apache2-utils
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin


cd nagios-plugins-2.0.3 
sudo ./configure --with-nagios-user=nagios --with-nagios-group=nagios 
sudo make 
sudo make install

sudo apt-get install sysv-rc-conf
sysv-rc-conf nagios on
sysv-rc-conf httpd on

ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
sudo reboot now

Re: Core web interface not displaying correctly

Posted: Thu Sep 17, 2015 10:17 am
by jdalrymple
This is because your web server isn't running the cgis, it's just spitting them out. I don't know ubuntu, but I found this:

http://askubuntu.com/questions/403067/c ... ot-working

Looks like you need to do this bit:

Code: Select all

a2enmod cgi
service apache2 restart

Re: Core web interface not displaying correctly

Posted: Thu Sep 17, 2015 10:45 pm
by Box293
I have a guide here for 4.0.8 which is similar

http://sites.box293.com/nagios/guides/i ... untu-14-04

In addition to what @jdalrymple said try:

Code: Select all

a2enmod rewrite

Re: Core web interface not displaying correctly

Posted: Mon Sep 21, 2015 8:35 am
by dapaulio
thank you i appreciate you responding. i did try the sugegsted and it didnt work however i reinstalled with nagios3 (rather than 4) and it works fine

Thanks
paul

Re: Core web interface not displaying correctly

Posted: Mon Sep 21, 2015 11:01 am
by jolson
Sounds good - is this thread okay to close?