Page 1 of 4
Nagios 4.1.1 on Ubuntu 14.04
Posted: Tue Apr 05, 2016 8:10 pm
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.
Re: Nagios 4.1.1 on Ubuntu 14.04
Posted: Wed Apr 06, 2016 1:00 pm
by hsmith
What is the locale of this system?
Re: Nagios 4.1.1 on Ubuntu 14.04
Posted: Wed Apr 06, 2016 1:19 pm
by andresr
As in geographically? Canada.
Re: Nagios 4.1.1 on Ubuntu 14.04
Posted: Wed Apr 06, 2016 1:34 pm
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.
Re: Nagios 4.1.1 on Ubuntu 14.04
Posted: Wed Apr 06, 2016 1:37 pm
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=
Re: Nagios 4.1.1 on Ubuntu 14.04
Posted: Wed Apr 06, 2016 4:42 pm
by hsmith
Is that package available on apt for you to install?
Re: Nagios 4.1.1 on Ubuntu 14.04
Posted: Wed Apr 06, 2016 5:11 pm
by andresr
I installed libgd2-xpm-dev.
Re: Nagios 4.1.1 on Ubuntu 14.04
Posted: Thu Apr 07, 2016 2:14 pm
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.
Re: Nagios 4.1.1 on Ubuntu 14.04
Posted: Thu Apr 07, 2016 2:46 pm
by andresr
I downloaded the source and compiled with make and then make install.
Re: Nagios 4.1.1 on Ubuntu 14.04
Posted: Thu Apr 07, 2016 5:05 pm
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?