Upgrade Nagios Core Student

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
egrudzien
Posts: 5
Joined: Thu Jul 03, 2014 3:24 pm

Upgrade Nagios Core Student

Post by egrudzien »

Greetings!

I purchased Nagios Student a little over a month ago. I just finished getting it set up with over 100 hosts and 300-400 services. I saw that new VM's were created this week with 4.0.7 (Vs 3.5.0 that I set it up with).

I followed the instructions..
Upgrade VM

To upgrade your VM to the latest version, run the following from the console as root

cd /tmp
wget http://assets.nagios.com/downloads/nagi ... est.tar.gz
tar xzf corevm-latest.tar.gz
cd /tmp/nagioscore
./upgrade
However I remain with CCM 1.x and Nagios 3.5.0 via HTTP.


Has something changed? Or has that upgrade file not been updated? Also, Is there also an easy way to export my Config and set it up with the new VM image provided? (Then I dont have to wait to see if a upgrade package to be updated).
egrudzien
Posts: 5
Joined: Thu Jul 03, 2014 3:24 pm

Re: Upgrade Nagios Core Student

Post by egrudzien »

My mistake. I had already downloaded that file in the past before it was updated and forgot to remove the extracted directory from /tmp

However when I run the upgrade script I get the following error:

Code: Select all

Duplicate column name 'locale''
Then the upgrade script stops.

**EDIT**
Editing out these lines had it go through. Running 4.0.7!

Code: Select all

	##update nagiosql user table to allow user-defined locale
	(
		cd subcomponents/nagiosql
		php ./db_upgrades.php "$oldversion"
	)
I remember running code before I found on the forum here when I had issues adding new users relating to this.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Upgrade Nagios Core Student

Post by tmcdonald »

Yea, there are some subtle bugs that can pop up when trying to add db tables that are already there. We should probably add some "IF NOT EXISTS" clauses in there.

But is everything working alright for you now?
Former Nagios employee
egrudzien
Posts: 5
Joined: Thu Jul 03, 2014 3:24 pm

Re: Upgrade Nagios Core Student

Post by egrudzien »

Yep! Its running 4.0.7 no problem now with the updated plugins and CCM!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Upgrade Nagios Core Student

Post by tmcdonald »

Awesome. I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked