Nagios >>>statusmap.cgi missing

I installed Nagios Core from source on Red Hat 6.4.
On my Nagios Core 3.5 Web interface all links work but the map, I receive the error messages when I Map under Current Status:

>>>The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server.
In my directory /usr/local/nagios/sbin, I learned that my statusmap.cgi is missing and it is  necessary.  

Current /usr/local/nagios/sbin.... contents>>>avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi statuswrl.cgi summary.cgi tac.cgi

Is there way to resolve the statusmap.cgi issue short of re-installation?

FYI---I have referenced this site  >> for answers.  As of Nagios newbie, I am trying to obtain the best answer/correct answer.
Who is Participating?
Seth SimmonsConnect With a Mentor Sr. Systems AdministratorCommented:
you will have to compile again in order to get the cgi binaries made

histogram.cgi, statusmap.cgi, trends.cgi won't be created if gd-devel is missing
gumball60Author Commented:
I have installed and/re-installed
gd,gd-devel,png,png-devel,jpeg,jpeg-devel,zlib,zlib-devel these packages.

Where should I compile?  i.e nagios
Seth SimmonsSr. Systems AdministratorCommented:
i usually just delete the nagios folder extracted from the tarball and extract again to start clean and run through the configure, make, make all, etc. again

i setup a test environment and those 3 cgi scripts weren't created until i installed gd-devel
Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

gumball60Author Commented:
I will run configure again and see if it creates the needed cgi.scripts.
Sorry for ignorance on this matter....but should I initiate the configure script from the nagios directory?  

Would the directions( for recreating the needed cgi.scripts work?

#make devclean
# ./configure --with-gd-lib=/usr/lib   --with-gd-inc=/usr/include
#./configure --with-command-group=nagcmd
 #make all; make install; make install-init; make install-config; make install-commandmode; make install-webconf
Seth SimmonsSr. Systems AdministratorCommented:
i'm just a little confused here because you have the packages already installed and the files aren't there

usually when you have to specify --with-gd option it's when you have compiled gd from source and configure script can't find the gd files since it's in a different location than expected

if you didn't try make devclean yet, i would do that first
that could be the reason it didn't work if you just tried your configure/make/make install commands again.  cleaning out that build area might do it; i've experienced that before when having compiling issues with apache
gumball60Author Commented:
I have gotten map piece working....Thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.