Page 1 of 2
Missing /nagios/cgi-bin/statusmap.cgi was not foun
Posted: Tue Jan 24, 2017 11:38 am
by neworderfac33
Good afternoon,
I installed 4.2.4 using the following document:
https://assets.nagios.com/downloads/nag ... edora.html
However, when trying to view the site map, I get:
Code: Select all
The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server
Surely enough, statusmap.cgi is not in the /usr/local.nagios/sbin folder.
There are MANY posts on the forum about this subject and after trawling through some of them I have found one:
https://support.nagios.com/forum/viewto ... f=7&t=9659
that includes the steps:
Code: Select all
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
When I carried out my installation, I'm not sure if I ran the the final step.
I don't want to run everything again as this would (I suspect) wipe out my config files, but would running just make install-webconf help to resolve my issue, do you think?
Thanks
Pete
Re: Missing /nagios/cgi-bin/statusmap.cgi was not foun
Posted: Tue Jan 24, 2017 11:44 am
by dwhitfield
Are you actually using Fedora? If not, you might have better luck with
https://support.nagios.com/kb/article.php?id=96
As far as wiping out your configs, you can just back them up first.

Re: Missing /nagios/cgi-bin/statusmap.cgi was not foun
Posted: Wed Jan 25, 2017 5:05 am
by neworderfac33
Good morning - looks like Fedora to me
cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.2 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.2"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.2 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.2:GA:server"
HOME_URL="
https://www.redhat.com/"
BUG_REPORT_URL="
https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.2"
[root@mn2svlbde006su0 ~]#
Just thinking - if I hadn't run the webconf step, surely I wouldn't be able to see anything in my web interface at all..?
What is the step that actually unpacks and installs statusmap.cgi?
Cheers
Re: Missing /nagios/cgi-bin/statusmap.cgi was not foun
Posted: Wed Jan 25, 2017 9:13 am
by neworderfac33
I've also found this article:
http://danxlog.blogspot.co.uk/2010/07/n ... apcgi.html
that contains some additional steps, but not sure if they apply to RedHat or not.
Code: Select all
[root@localhost]# ./configure
[root@localhost]# make
[root@localhost]# make-cgis
[root@localhost]# make install-cgis
Any thoughts, folks?
Cheers
Re: Missing /nagios/cgi-bin/statusmap.cgi was not foun
Posted: Wed Jan 25, 2017 10:35 am
by dwhitfield
That's RHEL 7.2, not Fedora. You should use the instructions at
https://support.nagios.com/kb/article.php?id=96.
Fedora changes are rapid, so instructions can be very different from RHEL.
Re: Missing /nagios/cgi-bin/statusmap.cgi was not foun
Posted: Wed Jan 25, 2017 11:22 am
by neworderfac33
Now I'm REALLY confused.
RHEL and Fedora are two different things?
My cat /etc/os-release command returns:
Code: Select all
cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.2 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.2"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.2 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.2:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.2"
which includes the terms "Red Hat Enterprise Linux Server" (is this RHEL?), "Maipo" and "Fedora".
I'm not really a Linux person at all - what AM I running here?
As far as I can see (and apologies for my ignorance and/or frustration), all I'm short of is the file "statusmap.cgi" in the folder /usr/local/nagios/bin - why is it so difficult to get it in there?
There seem to be zillions of articles on the web, but none of them tell me how to do this!
Does the following help, as it indicates that I have a statusmap.c somewhere?
Code: Select all
find / -name statusmap.*
/usr/local/nagios/share/stylesheets/statusmap.css
/home/downloads/nagios-4.2.4/cgi/statusmap.c
/home/downloads/nagios-4.2.4/contrib/exfoliation/stylesheets/statusmap.css
/home/downloads/nagios-4.2.4/html/stylesheets/statusmap.css
As always, thanks for your help
Pete
Re: Missing /nagios/cgi-bin/statusmap.cgi was not foun
Posted: Wed Jan 25, 2017 11:41 am
by dwhitfield
Yes, Fedora and RHEL are very different. Some things will be similar or even the same. For example, they both use
yum.
It's not exactly the same model, but Fedora is kinda to RHEL what Nagios Core is to Nagios XI. Red Hat Enterprise Linux 7 (also called Maipo because people like names instead of numbers I guess) is based on Fedora 19, which is much older than the version written for the instructions you are using.
CentOS and RHEL are binary compatible, and Oracle is too (possibly to a lesser extent), but Fedora is bleeding edge. Fedora changes things all the time. Not very many people run it on servers (though some people do, of course).
The upshot of all of this is, you should use the RHEL 7 instructions at
https://support.nagios.com/kb/article.php?id=96
Does that make sense?
For further reading:
https://en.wikipedia.org/wiki/Fedora_(operating_system)
https://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux
https://en.wikipedia.org/wiki/Oracle_Linux
https://en.wikipedia.org/wiki/CentOS
Re: Missing /nagios/cgi-bin/statusmap.cgi was not foun
Posted: Wed Jan 25, 2017 11:44 am
by neworderfac33
Thanks for the info?
So, from this:
Code: Select all
cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.2 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.2"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.2 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.2:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.2"
[root@mn2svlbde006su0 sbin]#
You seem to infer that I'm running RHEL, but when I originally asked for the server to be built, i was told that company standards said it was going to be "RedHat 7".
I'll read the articles, but as it stands, I'm terminally bewildered!
AND - does the following help, as it indicates that I have a statusmap.c somewhere?
Code: Select all
find / -name statusmap.*
/usr/local/nagios/share/stylesheets/statusmap.css
/home/downloads/nagios-4.2.4/cgi/statusmap.c
/home/downloads/nagios-4.2.4/contrib/exfoliation/stylesheets/statusmap.css
/home/downloads/nagios-4.2.4/html/stylesheets/statusmap.css
As always, thanks for your help
Pete
Last edited by neworderfac33 on Wed Jan 25, 2017 5:42 pm, edited 1 time in total.
neworderfac33
Posts: 225
Joined: Fri Jul 24, 2015 5:04 pm
Re: Missing /nagios/cgi-bin/statusmap.cgi was not foun
Posted: Wed Jan 25, 2017 12:04 pm
by dwhitfield
RHEL stands for Red Hat Enterprise Linux. Generally speaking, "7" will be the important bit, but you are running 7.2 and occasionally the .2 will matter. The current version is 7.3, so if your policy allows you could just run
yum -y update and get the latest security and bug fixes (for the things installed via yum).
It looks to me that unzipping the package worked, but compiling from source did not.
If it were me, I'd just revert the snapshot (assuming you have one) and start over using
https://support.nagios.com/kb/article.php?id=96 but it's probably safe to just run through the compile steps again. It only takes like five minutes to compile. Just parsing the steps in the document with all the different versions is the hardest part!
Re: Missing /nagios/cgi-bin/statusmap.cgi was not foun
Posted: Wed Jan 25, 2017 12:13 pm
by neworderfac33
I'm going to concede defeat and edit main.php (like I did with 4.0.8 because I couldn't get it to work there either!) to remove any reference to the site map - what people don't know about, they won't worry about.
Plus I spent days getting NagiosGraph to work with 4.2.4 and I don't want to risk messing it up by reinstalling Core.
I've spent days on this (again) and to be honest I'm thoroughly cheesed off with it
But nevertheless, thanks for all your assistance.
Pete