- 
- Update your system:
bashsudo apt update && sudo apt upgrade -y
 <button class=”copy-code-button”>Copy Code</button> 
- Install required dependencies:
bashsudo apt install -y build-essential libgd-dev openssl libssl-dev apache2 php
 <button class=”copy-code-button”>Copy Code</button> 
- Download and compile Nagios Core:
bashwget https://github.com/NagiosEnterprises/nagioscore/releases/download/nagios-4.5.9/nagios-4.5.9.tar.gz
 tar -zxvf nagios-4.5.9.tar.gz
 cd nagios-4.5.9
 ./configure
 make all
 sudo make install
 <button class=”copy-code-button”>Copy Code</button> 
 
 
- Update your system:
