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

Nagios 4.1.1 on Ubuntu 14.04

Post by andresr »

I recently upgraded my Ubuntu Server to 14.04LTS and my Nagios installation to 4.1.1 and the Statusmap, Trends and Histogram stopped working. The other pages load fine. In the Apache error log it says "error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory". If I do a locate command for libgd.so.2, nothing shows up but I do have libgd.so.3. I guess some of the libraries are newer on 14.04 than they were on 12.04.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by hsmith »

What is the locale of this system?
Former Nagios Employee.
me.
andresr
Posts: 17
Joined: Tue Apr 05, 2016 7:52 pm

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by andresr »

As in geographically? Canada.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by tmcdonald »

The locale refers to the system language, such as en_US (American English), fr_FR (French), etc. - this can have an impact on the system, as different languages can have different number/date formats, character encodings, etc. libgd in particular has some language-sensitive functions. You can type locale to see what yours is.
Former Nagios employee
andresr
Posts: 17
Joined: Tue Apr 05, 2016 7:52 pm

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by andresr »

Ah. Here is a copy paste from the locale command.

LANG=en_CA.UTF-8
LANGUAGE=
LC_CTYPE="en_CA.UTF-8"
LC_NUMERIC="en_CA.UTF-8"
LC_TIME="en_CA.UTF-8"
LC_COLLATE="en_CA.UTF-8"
LC_MONETARY="en_CA.UTF-8"
LC_MESSAGES="en_CA.UTF-8"
LC_PAPER="en_CA.UTF-8"
LC_NAME="en_CA.UTF-8"
LC_ADDRESS="en_CA.UTF-8"
LC_TELEPHONE="en_CA.UTF-8"
LC_MEASUREMENT="en_CA.UTF-8"
LC_IDENTIFICATION="en_CA.UTF-8"
LC_ALL=
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by hsmith »

Is that package available on apt for you to install?
Former Nagios Employee.
me.
andresr
Posts: 17
Joined: Tue Apr 05, 2016 7:52 pm

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by andresr »

I installed libgd2-xpm-dev.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by tmcdonald »

How did you update Core? Was this from apt-get, source, or some other method?

It almost sounds like the CGI portions need to be recompiled to work with the new libraries.
Former Nagios employee
andresr
Posts: 17
Joined: Tue Apr 05, 2016 7:52 pm

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by andresr »

I downloaded the source and compiled with make and then make install.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios 4.1.1 on Ubuntu 14.04

Post by rkennedy »

Just to clarify, did you upgrade your OS as a whole (Ubuntu) AND Nagios? What version of Nagios were you on previously?

What is the output of apachectl -v?
Former Nagios Employee
Locked