Page 6 of 6

Re: Nagios Map

Posted: Mon Dec 23, 2013 12:57 pm
by abrist
Looks like you are missing some package dependencies:

Code: Select all

*** GD, PNG, and/or JPEG libraries could not be located... *********
 
Boutell's GD library is required to compile the statusmap, trends
and histogram CGIs.  Get it from http://www.boutell.com/gd/, compile
it, and use the --with-gd-lib and --with-gd-inc arguments to specify
the locations of the GD library and include files.
 
NOTE: In addition to the gd-devel library, you'll also need to make
      sure you have the png-devel and jpeg-devel libraries installed
      on your system.
 
NOTE: After you install the necessary libraries on your system:
      1. Make sure /etc/ld.so.conf has an entry for the directory in
         which the GD, PNG, and JPEG libraries are installed.
      2. Run 'ldconfig' to update the run-time linker options.
      3. Run 'make clean' in the Nagios distribution to clean out
         any old references to your previous compile.
      4. Rerun the configure script.
 
NOTE: If you can't get the configure script to recognize the GD libs
      on your system, get over it and move on to other things.  The
      CGIs that use the GD libs are just a small part of the entire
      Nagios package.  Get everything else working first and then
      revisit the problem.  Make sure to check the nagios-users
      mailing list archives for possible solutions to GD library
      problems when you resume your troubleshooting.
Lets try to get the dependencies:

Code: Select all

yum install -y gd gd-devel png-devel jpeg-devel
Afterward, reconfigure and make clean:

Code: Select all

./configure --with-command-group=nagcmd
make clean
make all
make install

Re: Nagios Map

Posted: Mon Dec 23, 2013 3:50 pm
by diverseft
yum install -y gd gd-devel png-devel jpeg-devel Gives me:

Setting up Install Process
No package gd available.
No package gd-devel available.
No package png-devel available.
No package jpeg-devel available.
Nothing to do

Re: Nagios Map

Posted: Mon Dec 23, 2013 3:58 pm
by abrist
You may need to enable some repos . . . what distro/version are you running?

Re: Nagios Map

Posted: Mon Dec 23, 2013 4:20 pm
by diverseft
Running 12.04.3 Ubuntu server

Re: Nagios Map

Posted: Tue Dec 24, 2013 6:26 am
by diverseft
If I run "yum repolist all" I get repolist: 0

Re: Nagios Map

Posted: Wed Dec 25, 2013 1:23 pm
by sreinhardt
you would need to use apt-get and find the appropriate ubuntu package names, they often differ from cent\rhel names to some extent.

Re: Nagios Map

Posted: Fri Dec 27, 2013 3:37 am
by diverseft
So I tried:

sudo apt-get install php5-gd
./configure --with-command-group=nagcmd
make clean
make all
make install
/etc/init.d/nagios restart

Still not working

Re: Nagios Map

Posted: Fri Dec 27, 2013 10:39 am
by abrist
Ubuntu Packages:

Code: Select all

apt-get install libgd2-xpm php5-gd libgd2-xpm-dev
./configure --with-command-group=nagcmd
make clean
make all
make install
make install-cgis
/etc/init.d/nagios restart
If you see the error:
*** GD, PNG, and/or JPEG libraries could not be located... *********
[snip]
Then you are still missing required packages.

Re: Nagios Map

Posted: Mon Dec 30, 2013 3:47 am
by diverseft
THANK YOU everyone (particularly abrist and sreinhardt) who has helped in this thread. I finally got it working with this command:

sudo apt-get install libgd2-xpm-dev
from here: http://nagios.sourceforge.net/docs/3_0/ ... buntu.html - followed by:

make clean
make all
make install
/etc/init.d/nagios restart

As stated before, my Linux skills basic hence the struggle. Why would this be required since upgrading Nagios?

Anyway, Thanks again. Really happy I have the maps working :)

Re: Nagios Map

Posted: Mon Dec 30, 2013 10:44 am
by abrist
diverseft wrote:As stated before, my Linux skills basic hence the struggle. Why would this be required since upgrading Nagios?
Not entirely sure. Most of the packages you were missing were most likely required for earlier versions as well. Maybe they were too far out of date?
Anyways, glad we could help you resolve this. You may want to make a mental (or physical) note about which packages you had to install for future cases. Happy trails.