Core web interface not displaying correctly

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
dapaulio
Posts: 6
Joined: Thu Sep 17, 2015 2:22 am

Core web interface not displaying correctly

Post 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
Attachments
Capture.PNG
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Core web interface not displaying correctly

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Core web interface not displaying correctly

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dapaulio
Posts: 6
Joined: Thu Sep 17, 2015 2:22 am

Re: Core web interface not displaying correctly

Post 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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Core web interface not displaying correctly

Post by jolson »

Sounds good - is this thread okay to close?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked