Page 3 of 4

Re: Nagios 4.1.1 on Ubuntu 14.04

Posted: Wed Apr 13, 2016 8:05 am
by andresr
These are the steps I did to upgrade to 14.04 starting with 10.04.

Updated Nagios to 4.1.1

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install update-manager-core
sudo apt-get dist-upgrade
modify config to allow unauthenticated sources to work around a bug that prevents upgrading to 12.04

Code: Select all

sudo do-release-upgrade
These are the steps I did to upgrade to 14.04 from 12.04

Removed unauthenticated sources workaround

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install update-manager-core
sudo apt-get dist-upgrade
Removed old OpenVMTools, OpenVMDkms, and Dkms packages

Code: Select all

sudo do-release-upgrade
After 14.04 install

Repaired Grub to fix blinking underscore character, no boot issue
Installed Dkms
Installed Vbox Guest extensions
modified config to prevent loading PIIX4 SMB module, as this is running in a VM and causes Log SPAM if left on
Reinstalled Nagios 4.1.1

Re: Nagios 4.1.1 on Ubuntu 14.04

Posted: Wed Apr 13, 2016 11:49 am
by tgriep
In the config.log, the linker couldn't find the GD library, try and reinstall it just in case and then you will have to reconfigure, recompile and reinstall Nagios.

I found this link for installing Nagios Core it on Ubuntu 15.10 but it should work for 14.
http://www.unixmen.com/how-to-install-n ... ntu-15-10/
After reintalling the library and reconfiguring Nagios, if you see the following line in the config.log, then it still cannot find the library.
/usr/bin/ld: cannot find -lgd

If it still fails, run this and post the output.

Code: Select all

ldconfig -v

Re: Nagios 4.1.1 on Ubuntu 14.04

Posted: Wed Apr 13, 2016 11:58 am
by andresr
I couldn't find the link you referred to. Also, just so I understand, I should run:

./configure
./make
./make install

After the linking error is fixed?

Re: Nagios 4.1.1 on Ubuntu 14.04

Posted: Wed Apr 13, 2016 12:54 pm
by tgriep
I updated the link in my previous post. Somehow it didn't paste correctly.

I would do a

Code: Select all

make clean
from the source folder first before re configuring, etc.. to make sure it gets rebuilt correctly.

Re: Nagios 4.1.1 on Ubuntu 14.04

Posted: Wed Apr 13, 2016 7:49 pm
by andresr
Ok the Legacy Trends and Map are working. But the non-Legacy ones don't show anything except the hamburger link.

Re: Nagios 4.1.1 on Ubuntu 14.04

Posted: Thu Apr 14, 2016 10:46 am
by tgriep
Can you screen capture the error and post it here so we can see it?
Are there any errors in the Apache error logs when you click on those links?
If so, can you post them?

Re: Nagios 4.1.1 on Ubuntu 14.04

Posted: Sun Apr 17, 2016 9:46 pm
by andresr
I don't see anything showing up in the apache error logs. I have uploaded a screenshot though.

Re: Nagios 4.1.1 on Ubuntu 14.04

Posted: Mon Apr 18, 2016 10:44 am
by tgriep
I found that there are possible issues displaying the Map and Trends report in the server's locale is not set to US.
You can either set the server's locale to US or update to Core 4.1.2-Pre1 which fixed that issue.
Below is the link to Core 4.1.2-Pre1 if you want to download and compile that.
https://github.com/NagiosEnterprises/na ... 4.1.2-Pre1

Re: Nagios 4.1.1 on Ubuntu 14.04

Posted: Mon Apr 18, 2016 11:20 am
by andresr
Are there downsides to installing the pre-release? With the legacy functions working, I am not pressed to upgrade until final release.

Re: Nagios 4.1.1 on Ubuntu 14.04

Posted: Mon Apr 18, 2016 12:14 pm
by lmiltchev
Are there downsides to installing the pre-release?
I don't see any. You can always upgrade when the "final" release is out.