Backup current nagios directory
cd /usr/local
tar -zcvf nagios-backup.ar.gz nagios
cd /tmp
wget
https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.3.2.tar.gz .
tar -zxvf nagios-4.3.2.tar.gz
cd nagios-4.3.2
./configure
--with-command-group=nagcmd
make
all
make
install
Once the above process is completed run the
verification check on the upgrade to make sure there are no errors reported.
# /usr/local/nagios/bin/nagios -v
/usr/local/nagios/etc/nagios.cfg
It will give below warning then resolve
by executing below command
WARNING: The normal_check_interval attribute is
deprecated and will be removed in future versions. Please use check_interval
instead.
for resolve excute cd /usr/local/nagios/etc/
sed -i -e 's/normal_check_interval/check_interval/g' *.cfg
WARNING: The normal_retry_interval attribute is deprecated and will be removed
in future versions. Please use retry_interval instead.
for resolve excute cd /usr/local/nagios/etc/
sed -i -e 's/retry_check_interval/retry_interval/g' *.cfg
Verify once again vai
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Restart nagios it will show updated version
If face any issue just remove /usr/local/nagios
directory and restore tar file backup and restart nagios