This will show you how to upgrade from Core 4.0.8 to Core 4.1.1 which is running on a CentOS 6.7 system. The original Core 4.0.8 install was performed following these steps. SSH To HostAll
steps can be done via an ssh session to the host, the added
benefit is that commands here can be copied and pasted into the ssh
session (saves typing mistakes). Login as root.
Install Prerequisites And Other ItemsThe following commands will install all the prerequisites for Nagios core. - Type yum install -y unzip and press Enter
- Wait while all of these components are installed
Download Nagios CoreThese steps will download Nagios Core 4.1.1
- Type cd /tmp and press Enter
- Type wget https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.1.1.tar.gz and press Enter
- Wait while the file is downloaded
Install Nagios CoreThe following steps will upgrade Nagios Core 4.1.1 - Type tar zxf nagios-4.1.1.tar.gz and press Enter
- Type cd nagioscore-nagios-4.1.1 and press Enter
- Type ./configure --with-command-group=nagcmd and press Enter
- Wait for the configure command to complete
- Type make all and press Enter
- Wait for the make all command to complete
- Type make install and press Enter
- Wait for the make install command to complete
- Type make install-init and press Enter
- Wait for the make install-init command to complete
- Type make install-commandmode and press Enter
- Wait for the make install-commandmode command to complete
- Type cp -Ru contrib/eventhandlers/ /usr/local/nagios/libexec/ and press Enter
- Type chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers and press Enter
- Type /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg and press Enter
- The last command ran the nagios pre-flight check
- Type service nagios restart and press Enter
- The last command restarted nagios core
This completes the Nagios Core upgrade.
Login To Nagios Core Web Interface- Open a web browser to http://xxx.xxx.xxx.xxx/nagios
- Enjoy
|