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