About Me

My photo
Kalyan Kumar Pasupuleti B-Tech(Information Technology). • AWS Certified Solutions Architect - Associate • RedHat Certified Engineer(RHCE) • Directory Services and Authentication Certificate of Expertise(LDAP) • Red Hat SELinux Policy Administration Certificate of Expertise(SELinux) • Network Services Security Certificate of Expertise (Network Services) • RedHat Certified Virtualization Administrator(RHCVA) • Red Hat Certified Security Specialist (RHCSS) Working as Cloud DevOps engineer

Sunday, January 19, 2014

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:

  1. Take the backup of your nagios folder:
    • # cd /usr/local/
    • # tar -cvzf nagios.bkp-yyyy-mm-dd.gz nagios/
  2. 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
  3. 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
  4. Change directory to /opt:
    • # cd /opt
  5. Extract the Nagios source code tarball:
    • # tar -xzvf nagios-3.5.tar.gz
  6. Change directory to nagios-3.5:
    • # cd nagios-3.5
  7. Now run the Nagios configure script:
    • # ./configure --with-command-group=nagcmd
  8. Next, Compile the Nagios source code using make all command
  9. Install updated binaries, documentation, and web web interface using make install command
  10. 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
  11. Restart Nagios service: /etc/init.d/nagios restart
  12. You are done. Now check your Nagios web interface using URL: http://<Nagios server IP>/nagios

No comments:

Post a Comment