Nagios – Missing statusmap.cgi

The Nagios installation can go really smoothly but sometimes statusmap.cgi is not compiled and the error doesn’t really come up during the make. And that’s why we’ll found out only when the system is up and running but this nice little feauture is missing getting to this error:

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

This is often caused by the missing gd libraries, so if you experience this error be sure to perform the following commands (tested on Centos, should work for Redhat as well):

[root@localhost]# yum install gd
[root@localhost]#
yum install gd-devel

Then go in your nagios source folder and lauch the following:

[root@localhost]# ./configure
[root@localhost]# make

[root@localhost]# make-cgis

[root@localhost]# make install-cgis

This should fix very well this kind of problem. If you still experience problems with your nagios application please refer the following guide (imho one of the best around):

http://www.thegeekstuff.com/2008/05/nagios-30-jumpstart-guide-for-red-hat-overview-installation-and-configuration/