Page 2 of 2

Re: Nagios running on CLI but not running on web interface

Posted: Tue Aug 01, 2017 1:18 am
by Bumblebee
We are using Linux 14.0.4.
I followed the below steps to install nagios:
· mkdir nagios
· wget http://prdownloads.sourceforge.net/sour ... 2.0.tar.gz
· wget http://nagios-plugins.org/download/nagi ... 1.2.tar.gz <http://nagios-plugins.org/download/nagi ... 1.2.tar.gz>
· tar zxvf nagios-4.2.0.tar.gz
· tar zxvf nagios-plugins-2.1.2.tar.gz
· cd nagios-4.2.0/
· ./configure --with-command-group=nagcmd --with-httpd-conf=/etc/apache2/sites-enabled
· make all
· make install
· groupadd nagios
· usermod -G nagios nagios
· groupadd nagcmd
· usermod -a -G nagcmd nagios
· usermod -a -G nagcmd www-data
· make install-init
· make install-config
· make install-commandmode
· make install-webconf
· update-rc.d nagios defaults
· cd /software/nagios/nagios-plugins-2.1.2/
· ./configure
· make
· make install
· vi /usr/local/nagios/etc/objects/contacts.cfg
· htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
· apt-get install apache2-utils
· htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
· service apache2 start
· service nagios start

later I installed PHP

Re: Nagios running on CLI but not running on web interface

Posted: Tue Aug 01, 2017 9:42 am
by bolson
I believe that your issue is probably related to installing Nagios Core before PHP. Assuming your Linux distribution is Ubuntu 14.0.4, please follow this guide. This is our supported download link and our supported installation instructions.

https://support.nagios.com/kb/article/n ... tml#Ubuntu

Thank you!

Re: Nagios running on CLI but not running on web interface

Posted: Fri Aug 04, 2017 2:37 am
by Bumblebee
Reinstalled nagios. Installed php first nagios next.
Now I 'm unable to open dashboard.
Getting 404 page not found error here.

Not Found

The requested URL /nagios/ was not found on this server.

Re: Nagios running on CLI but not running on web interface

Posted: Fri Aug 04, 2017 10:25 am
by bolson

Code: Select all

ps aux | grep nagios
And post result

Re: Nagios running on CLI but not running on web interface

Posted: Thu Aug 10, 2017 12:37 am
by Bumblebee
nagios 31578 0.0 0.0 32684 6816 ? Ss Aug04 1:53 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 31579 0.0 0.0 10832 1040 ? S Aug04 0:01 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 31580 0.0 0.0 10832 1040 ? S Aug04 0:01 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 31581 0.0 0.0 10832 1040 ? S Aug04 0:01 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 31582 0.0 0.0 10832 1040 ? S Aug04 0:01 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 31583 0.0 0.0 10832 1040 ? S Aug04 0:01 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 31584 0.0 0.0 10832 1036 ? S Aug04 0:01 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 31585 0.0 0.0 29360 2700 ? S Aug04 0:47 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 62443 0.0 0.0 11760 916 pts/1 S+ 06:36 0:00 grep --color=auto nagios

This is th result when I run ps aux | grep nagios

Re: Nagios running on CLI but not running on web interface

Posted: Thu Aug 10, 2017 9:56 am
by bolson
What URL are you entering to open the Web GUI?