Upgrade Nagios core from 3.X version to 3.5 Howto?
Follow the below procedure to upgrade Nagios core 3.X version to 3.5:
- Take the backup of your nagios folder:
- # cd /usr/local/
- # tar -cvzf nagios.bkp-yyyy-mm-dd.gz nagios/
- After taking backup,Remove the following old HTML files that were used by the web frontend.
- # rm -f /usr/local/nagios/share/{main,side,index}.html
- Download the source code tarball of the Nagios Core version 3.5 from URL: http://www.nagios.org/download/ and copy it to /opt directory in Nagios server
- Change directory to /opt:
- Extract the Nagios source code tarball:
- # tar -xzvf nagios-3.5.tar.gz
- Change directory to nagios-3.5:
- Now run the Nagios configure script:
- # ./configure --with-command-group=nagcmd
- Next, Compile the Nagios source code using make all command
- Install updated binaries, documentation, and web web interface using make install command
- Verify the configuration files. Correct any errors shown here before proceeding with the next step:
- # /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
- Restart Nagios service: /etc/init.d/nagios restart
- You are done. Now check your Nagios web interface using URL: http://<Nagios server IP>/nagios
No comments:
Post a Comment