Installing Nagios Core on Ubuntu using google cloud

Опубликовано: 05 Ноябрь 2020
на канале: Technical Skills Linux
546
13

Nagios Core -
Installing Nagios Core on Ubuntu using google cloud within 10minute

#Nagios_Core
#monitoring_tools_nagios

Nagios provides complete monitoring of Linux operating systems and distributions – including operating system metrics, service state, process state, file system usage, and more. When you use Nagios to monitor your Linux environment, you're using one of the most powerful Linux monitoring tools on the planet.

===== Ubuntu 18.x =====
sudo apt-get update
sudo apt-get install -y autoconf gcc libc6 make wget unzip apache2 php libapache2-mod-php7.2 libgd-dev


Downloading the Source
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/...
tar xzf nagioscore.tar.gz


Compile
cd /tmp/nagioscore-nagios-4.4.5/
sudo ./configure --with-httpd-conf=/etc/apache2/sites-enabled
sudo make all

Create User And Group
sudo make install-groups-users
sudo usermod -a -G nagios www-data

nstall Binaries
sudo make install

Install Service / Daemon
sudo make install-daemoninit

Install Command Mode
sudo make install-commandmode

Install Configuration Files
sudo make install-config

Install Apache Config Files
sudo make install-webconf
sudo a2enmod rewrite
sudo a2enmod cgi

Configure Firewall
sudo ufw allow Apache
sudo ufw reload

Create nagiosadmin User Account
sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

Installing The Nagios Plugins

Prerequisites
sudo apt-get install -y autoconf gcc libc6 libmcrypt-dev make libssl-dev wget
bc gawk dc build-essential snmp libnet-snmp-perl gettext

Downloading The Source
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nag...
tar zxf nagios-plugins.tar.gz


Compile + Install
cd /tmp/nagios-plugins-release-2.2.1/
sudo ./tools/setup
sudo ./configure
sudo make
sudo make install

sudo systemctl start nagios.service
sudo systemctl stop nagios.service
sudo systemctl restart nagios.service
sudo systemctl status nagios.service

help url:
https://support.nagios.com/kb/

Thank you for watching my video if my video any help to you please like , comment, and subscribe to my channel for the next video.


Thank you once again...


-like -comment -share -subscribe


***********************Subscribe Please********************