Link to home
Start Free TrialLog in
Avatar of gumball60
gumball60Flag for United States of America

asked on

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  >>http://www.unixmen.com/nagioscgi-binstatusmapcgi-was-not-found-on-this-server/ for answers.  As of Nagios newbie, I am trying to obtain the best answer/correct answer.
ASKER CERTIFIED SOLUTION
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gumball60

ASKER

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
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
I will run configure again and see if it creates the needed cgi.scripts.
Additionally...
Sorry for ignorance on this matter....but should I initiate the configure script from the nagios directory?  

Would the directions(http://www.unixmen.com/nagioscgi-binstatusmapcgi-was-not-found-on-this-server) for recreating the needed cgi.scripts work?

#make devclean
# ./configure --with-gd-lib=/usr/lib   --with-gd-inc=/usr/include
next
#./configure --with-command-group=nagcmd
next
 #make all; make install; make install-init; make install-config; make install-commandmode; make install-webconf
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
I have gotten map piece working....Thanks