mkdir /usr/local/nagios/share/backup
mv /usr/local/nagios/share/*.html /usr/local/nagios/share/backup
Download Nagios of new version, Example nagios-4.1.1.tar.gz
- 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