Page 1 of 1

Upgrade Nagios Core Student

Posted: Wed Jul 30, 2014 8:05 am
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).

Re: Upgrade Nagios Core Student

Posted: Wed Jul 30, 2014 9:18 am
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.

Re: Upgrade Nagios Core Student

Posted: Thu Jul 31, 2014 10:06 am
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?

Re: Upgrade Nagios Core Student

Posted: Thu Jul 31, 2014 9:04 pm
by egrudzien
Yep! Its running 4.0.7 no problem now with the updated plugins and CCM!

Re: Upgrade Nagios Core Student

Posted: Fri Aug 01, 2014 9:26 am
by tmcdonald
Awesome. I'll be closing this thread now, but feel free to open another if you need anything in the future!