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
Nagios running on CLI but not running on web interface
-
bolson
Re: Nagios running on CLI but not running on web interface
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!
https://support.nagios.com/kb/article/n ... tml#Ubuntu
Thank you!
Re: Nagios running on CLI but not running on web interface
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.
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.
-
bolson
Re: Nagios running on CLI but not running on web interface
Code: Select all
ps aux | grep nagiosRe: Nagios running on CLI but not running on web interface
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
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
-
bolson
Re: Nagios running on CLI but not running on web interface
What URL are you entering to open the Web GUI?