Install NAGIOS on UBUNTU ✔️
#Solvetic_eng video-tutorial to Install NAGIOS on UBUNTU ▶️ 𝗔𝗟𝗟 𝗔𝗕𝗢𝗨𝗧 𝗟𝗜𝗡𝗨𝗫 👉 https://www.youtube.com/playlist?list=PLOkioV3BTLXg_-zT9QBYRSd9s7ASoz-os
How to use Nagios on Ubuntu? In this video we explain step by step how to install NAGIOS in UBUNTU, we explain how to install NAGIOS in Ubuntu step by step, we teach you all the necessary commands to install Nagios in Ubuntu, we explain the whole process to install Nagios in Ubuntu easy by following all the guidelines in the video.
Learn how to install NAGIOS on Ubuntu. We teach you all the commands that you must run to be able to use Nagios in Ubuntu.
sudo apt update (Command to update Ubuntu system)
sudo apt install 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 (Command to install dependencies on Ubuntu)
cd ~/ (Command to access root in Ubuntu)
sudo wget https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz (Command to install the latest version of Nagios on Ubuntu)
sudo wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.6.tar.gz (Command to install the latest version of Nagios on error)
sudo tar -xf nagios-4.4.6.tar.gz (Command to access the download folder in Ubuntu)
cd nagios-(version) (Command to access the created Nagios folder in Ubuntu)
cd nagioscore-*/ (Command to run alternately)
sudo ./configure --with-httpd-conf=/etc/apache2/sites-enabled (Command to compile Nagios)
sudo make all
sudo make install-groups-users (Command to install Nagios user group on Ubuntu)
sudo usermod -a -G nagios www-data (Command to grant permissions to Nagios users on Ubuntu)
sudo make install (Commands to install Nagios binaries and scripts on Ubuntu)
sudo make install-daemoninit (Commands to install Nagios binaries and scripts on Ubuntu)
sudo make install-commandmode (Commands to install Nagios binaries and scripts on Ubuntu)
sudo make install-config (Command to run the script on Ubuntu)
sudo make install-webconf (Command to install Apache configuration on Ubuntu)
sudo a2enmod rewrite cgi (Command to enable CGI module on Ubuntu)
sudo systemctl restart apache2 (Command to restart Apache)
sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin (Command to create user in Apache)
sudo ufw allow apache (Add Apache to Firewall)
sudo ufw enable (Enable Firewall at startup)
sudo ufw reload (Command to reload the Firewall)
sudo ufw status (Command to validate the status of the Firewall)
sudo apt install monitoring-plugins nagios-nrpe-plugin (Command to install Nagios plugins)
cd /usr/local/nagios/etc (Command to access the Nagios directory)
sudo mkdir -p /usr/local/nagios/etc/servers (Command to create a new directory)
sudo nano nagios.cfg (Command to access the configuration file with some editor)
cfg_dir=/usr/local/nagios/etc/servers (Command to uncomment lines)
sudo nano resource.cfg (Command to access the file with an editor)
$USER1$=/usr/lib/nagios/plugins
sudo nano objects/contacts.cfg (Command to access a management email)
sudo nano objects/commands.cfg (Command to assign the nrpe command)
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
} (Command to add at the end)
systemctl start nagios (Command to start Nagios service)
systemctl enable nagios (Command to enable the Nagios service)
systemctl status nagios (Command to check Nagios status)
systemctl restart apache2 (Command to restart Apache)
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🔥 SUBSCRIBE: https://www.youtube.com/channel/UCkVkmxeHaBk77kAWEzopCBw?sub_confirmation=1
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
👀 Thousands more FREE tutorials Web (Spanish Language) 💡: https://www.solvetic.com
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Solvetic is the main YouTube channel for creating video solutions on computer and tech topics problems and different categories such us: Gaming, Windows, Mac, Linux, Android, iPhone, Photoshop, Web browsers, Office, Internet, Programs, Applications, Security, Programming etc.
We explain it to you in the most simple and professional way to learn new things and make solving problems related to computing and technology an easy job.