string(19) "ViewArticleOrg.html"
Run it as root..
The following steps describes how to install the latest version of Nagios Core from source.
Start by installing the following packages that are necessary for compiling and running Nagios:
apt update && apt upgrade apt install autoconf gcc libc6 make wget unzip apache2 php libapache2-mod-php7.0 libgd-dev \ libmcrypt-dev libssl-dev bc gawk dc build-essential libnet-snmp-perl gettexcd /usr/src/ wget https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.3.tar.gz tar zxf nagios-*.tar.gz cd nagioscore-nagios-*/
./configure --prefix=/usr --with-httpd-conf=/etc/apache2/conf-enabled \ --sysconfdir=/etc/nagios --with-lockfile=/var/lock/nagios \ --datarootdir=/usr/share/nagios --localstatedir=/var/lib/nagios \ --with-cgibindir=/usr/lib/cgi-bin --sbindir=/usr/lib/cgi-bin \ --with-logdir=/var/log/nagios
Upon successful completion, you will see the following message:
*** Configuration summary for nagios 4.4.3 2019-01-15 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagios Event Broker: yes Install ${prefix}: /usr Install ${includedir}: /usr/include/nagios Lock file: /var/lock/nagios Check result directory: /var/lib/nagios/spool/checkresults Init directory: /etc/init.d Apache conf.d directory: /etc/apache2/conf-enabled Mail program: /usr/bin/mail Host OS: linux-gnu IOBroker Method: epoll Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): /usr/sbin/traceroute Review the options above for accuracy. If they look okay, tMype 'make all' to compile the main program and CGIs.
Now make it..
make all make install-groups-users usermod -a -G nagios www-data usermod --shell /bin/bash nagios make install make install-commandmod make install-config make install-webconf a2enmod rewritesudo a2enmod cgi sudo make install-daemoninit mkdir /var/lib/nagios/rw chown nagios /var/lib/nagios/rw sudo htpasswd -c /etc/nagios/htpasswd.users nagiosadmin
/etc/init.d/apache2 restart /etc/init.d/nagios restartTo access the Nagios web interface open your favorite browser and type your server's domain name or public IP address followed by
/nagios
:
http(s)://your_domain_or_ip_address/nagios
Enter the
nagiosadmin
use_authentication=0
default_user_name=nagiosadmin
$USER1$=/usr/lib/nagios/plugins