Este procedimiento de actualizacion se realizo en un Debian 9 (stretch):
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
NOTA: recordemos realizar un respaldo a los archivos que ya tenemos configurado del Nagios antes de ejecutar esta actualizacion.
Procederemos actualizar la version del Nagios 4.3.4 a la ultima version actual estable a la fecha de hoy 04/12/2018, que seria la version Nagios 4.4.2; ver imagen:
Lo primero es descargar el archivo desde la pagina web de nagios https://www.nagios.org/downloads/nagios-core/
#tar -zxf nagios-4.4.2.tar.gz
Procedemos acceder al directorio:
#cd nagios-4.4.2
Ahora viene la instalacion o actualizacion del Nagios, ejecutando los siguientes comandos:
#./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-httpd_conf=/etc/apache2/sites-enabled/
#make all
#make install
#make install-init
#systemctl enable nagios
#make all
#make install
#make install-init
#systemctl enable nagios
#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Si todo ha ido bien, no deberia mostrarnos ningun error:
Nagios Core 4.4.2
Copyright
(c) 2009-present Nagios Core Development Team and Community
Contributors
Copyright
(c) 1999-2009 Ethan Galstad
Last
Modified: 2018-08-16
License:
GPL
Website:
https://www.nagios.org
Reading
configuration data...
Read
main config file okay...
Read
object config files okay...
Running
pre-flight check on configuration data...
Checking
objects...
Checked
158 services.
Checked
48 hosts.
Checked
8 host groups.
Checked
0 service groups.
Checked
5 contacts.
Checked
1 contact groups.
Checked
29 commands.
Checked
5 time periods.
Checked
0 host escalations.
Checked
0 service escalations.
Checking
for circular paths...
Checked
48 hosts
Checked
0 service dependencies
Checked
0 host dependencies
Checked
5 timeperiods
Checking
global event handlers...
Checking
obsessive compulsive processor commands...
Checking
misc settings...
Total Warnings: 0
Total Errors: 0
Things
look okay - No serious problems were detected during the pre-flight
check
#systemctl restart nagios
Verificamos el status del servicio de Nagios:
#systemctl status nagios
nagios.service
- Nagios Core 4.4.2
Loaded:
loaded (/lib/systemd/system/nagios.service; enabled; vendor preset:
enabled)
Active:
active
(running)
since Mon 2018-11-19 14:56:20 -03; 9min ago
Accedemos via web y observamos que esta corriendo la version actualizada:
Referencia WEB:
No hay comentarios.:
Publicar un comentario