/nagios/cgi-bin/statusmap.cgi was not found on this server

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.
Locked
fugitive
Posts: 15
Joined: Fri Mar 08, 2013 12:49 pm

/nagios/cgi-bin/statusmap.cgi was not found on this server

Post by fugitive »

The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server

I installed libgd2-xpm-dev but i'm unsure how to recompile to fix this issue.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv

Post by abrist »

Couple of questions:

1. What distro is running on the core box?
2. What version of nagios core?
3. Was this a source install or from the distro's repos?
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.
fugitive
Posts: 15
Joined: Fri Mar 08, 2013 12:49 pm

Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv

Post by fugitive »

1. Distro is Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-27-generic x86_64)
2. Nagios Core 3.4.4
3. From source. (Originally I installed from repo but the version was really outdated, so I uninstalled and installed from source)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv

Post by slansing »

Are you using a Desktop version of Ubuntu? The reason why I ask is in the following document it has you install that package:

http://nagios.sourceforge.net/docs/3_0/ ... buntu.html

Though that should not have an effect on Nagios reading cgi's.

You may need to re-compile Nagios because of the way it was installed and then removed, a few files could have gone missing.. if you do recompile you will not lose your configuration files though we recommend a backup in any case.
fugitive
Posts: 15
Joined: Fri Mar 08, 2013 12:49 pm

Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv

Post by fugitive »

Server version.

Backing up nagios would backing up these files be sufficient?
/usr/local/nagios/etc/*

The steps to recompile nagios would be like this ?
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv

Post by slansing »

Yes that backup would be sufficient for your configurations, I would recommend following this guide on installing from source on Ubuntu:

http://assets.nagios.com/downloads/nagi ... Source.pdf
fugitive
Posts: 15
Joined: Fri Mar 08, 2013 12:49 pm

Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv

Post by fugitive »

Recompiling fixed my issue.

It did wipe out my config files but since I backed those files up no big deal. Just restored and restarted nagios.

Thanks for your help slansing
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv

Post by slansing »

Hmm interesting, glad I mentioned to back them up, and glad you did. No problem, locking as resolved.
Locked