Code in this video: How to Install and Configure Nagios Core Server on Ubuntu 23 | 22.04 LTS | 21 | 20.04 LTS | 18.04 LTS

Code in this video: How to Install and Configure Nagios Core Server on Ubuntu 23 | 22.04 LTS | 21 | 20.04 LTS | 18.04 LTS

Thank You for watching and Don't forget to subscribe to my channel

	sudo apt install -y autoconf bc gawk dc build-essential gcc libc6 make wget unzip apache2 php libapache2-mod-php libgd-dev libmcrypt-dev make libssl-dev snmp libnet-snmp-perl gettext
	
	sudo wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.13.tar.gz

	sudo ./configure --with-httpd-conf=/etc/apache2/sites-enabled

	sudo make install-groups-users
	
	sudo usermod -a -G nagios www-data
	
	sudo make install

	sudo make install-daemoninit
	
	sudo make install-init

	sudo make install-commandmode

	sudo make install-config
	
	sudo make install-webconf
	
	sudo a2enmod rewrite cgi
	
	sudo apt install monitoring-plugins nagios-nrpe-plugin -y
	
	$USER1$=/usr/lib/nagios/plugins

define command{
        command_name check_nrpe
        command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}

Leave a Reply

Your email address will not be published. Required fields are marked *