Re: Nagios running on CLI but not running on web interface
Posted: Tue Aug 01, 2017 1:18 am
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
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