Nagios 4.1.1 on Ubuntu 14.04

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.
andresr
Posts: 17
Joined: Tue Apr 05, 2016 7:52 pm

Re: Nagios 4.1.1 on Ubuntu 14.04

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios 4.1.1 on Ubuntu 14.04

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
andresr
Posts: 17
Joined: Tue Apr 05, 2016 7:52 pm

Re: Nagios 4.1.1 on Ubuntu 14.04

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios 4.1.1 on Ubuntu 14.04

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
andresr
Posts: 17
Joined: Tue Apr 05, 2016 7:52 pm

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by andresr »

Ok the Legacy Trends and Map are working. But the non-Legacy ones don't show anything except the hamburger link.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios 4.1.1 on Ubuntu 14.04

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
andresr
Posts: 17
Joined: Tue Apr 05, 2016 7:52 pm

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by andresr »

I don't see anything showing up in the apache error logs. I have uploaded a screenshot though.
Attachments
Nagios non-Legacy map
Nagios non-Legacy map
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios 4.1.1 on Ubuntu 14.04

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
andresr
Posts: 17
Joined: Tue Apr 05, 2016 7:52 pm

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by andresr »

Are there downsides to installing the pre-release? With the legacy functions working, I am not pressed to upgrade until final release.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios 4.1.1 on Ubuntu 14.04

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked