Page 1 of 1
/nagios/cgi-bin/statusmap.cgi was not found on this server
Posted: Mon Mar 11, 2013 1:21 pm
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.
Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv
Posted: Mon Mar 11, 2013 2:50 pm
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?
Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv
Posted: Tue Mar 12, 2013 7:04 am
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)
Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv
Posted: Tue Mar 12, 2013 9:29 am
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.
Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv
Posted: Tue Mar 12, 2013 1:53 pm
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
Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv
Posted: Tue Mar 12, 2013 3:04 pm
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
Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv
Posted: Wed Mar 13, 2013 8:07 am
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
Re: /nagios/cgi-bin/statusmap.cgi was not found on this serv
Posted: Wed Mar 13, 2013 9:40 am
by slansing
Hmm interesting, glad I mentioned to back them up, and glad you did. No problem, locking as resolved.