Nagios Map

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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post by abrist »

You may need to enable some repos . . . what distro/version are you running?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post by diverseft »

Running 12.04.3 Ubuntu server
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post by diverseft »

If I run "yum repolist all" I get repolist: 0
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios Map

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
diverseft
Posts: 40
Joined: Wed May 23, 2012 6:13 am

Re: Nagios Map

Post 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 :)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Map

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked