← Todas las guías
Nagios Core
Nagios Core is the original open-source host and service monitoring engine, still distributed and officially documented as a source build rather than a packaged binary.
Esta guía se elaboró a partir de la documentación oficial de Nagios Core, enlazada arriba — verifica siempre ahí los nombres exactos de paquetes/versiones antes de ejecutar estos comandos en un servidor de producción, ya que las versiones de la distribución y del proyecto cambian con el tiempo.
1Install build prerequisites
sudo apt-get updatesudo apt-get install -y autoconf gcc libc6 make wget unzip apache2 php libapache2-mod-php libgd-dev ufwsudo apt-get install -y openssl libssl-dev2Download and extract the latest Nagios Core release
cd /tmpwget -O nagioscore.tar.gz $(wget -q -O - https://api.github.com/repos/NagiosEnterprises/nagioscore/releases/latest | grep '"browser_download_url":' | grep -o 'https://[^"]*')tar xzf nagioscore.tar.gz3Compile Nagios Core
sudo ./configure --with-httpd-conf=/etc/apache2/sites-enabledsudo make all4Create the nagios user/group and install
sudo make install-groups-userssudo usermod -a -G nagios www-datasudo make installsudo make install-daemoninitsudo make install-commandmodesudo make install-config5Configure Apache and start services
sudo make install-webconfsudo a2enmod rewritesudo a2enmod cgisudo systemctl restart apache2.servicesudo systemctl start nagios.serviceThis installs Nagios Core only — you still need to add the Nagios Plugins separately to get working check commands.