-   Linux - Software (
-   -   Nagios: statusmap.cgi & Trends.cgi files missing (

wlchak 10-28-2009 01:10 AM

Nagios: statusmap.cgi & Trends.cgi files missing
Hi All,

I've installed Nagios core 3.2 & Plugin 1.4.14 on RHEL5.4. Installation went smoothly & i managed to get the web interface up.
However, i have problems accessing to the MAPS & TRENDS tab on the web interface.

Errors shown are:


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

Apache server 2.2.3 ( Red Hat ) at local host port 80


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

Apache server 2.2.3 ( Red Hat ) at local host port 80


1. Why were these files missing in the first place? Or should they be in by default? All other files like status.cgi, config.cgi, cmd.cgi etc are all in.

2. Where can i download them if i need to manually put it in there?

3. What other configurations do i need to implement besides editing the httpd.conf file ( /etc/httpd/conf )?

My httpd.conf file contents for ScriptAlias & Aliases configurations were as follows:

ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all

Alias /nagios/ /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all

I would appreciate if any experts or experienced nagios users could enlighten me on this..

Thank you.

kirukan 10-28-2009 08:21 AM

check your nagios3.2.0 source there is a another directory cgi, there should be these cgi's (statusmap.cgi, trends.cgi)

MensaWater 10-28-2009 08:44 AM

When I installed the 3.x version of Nagios it put the files in:

Your config shows you're using that. Check there to see if the files exist in that directory:

You might also want to review the Nagios cgi.cfg (likely in /usr/local/nagios/etc" unless you put Nagios somewhere else) just to make sure it doesn't have any issues.

wlchak 10-29-2009 08:04 AM

Hi jlightner,

The statusmap.cgi & trends.cgi files were not in the directory /usr/local/nagios/sbin.
However all other cgi files were there except for the above mentioned 2 files..
What could be the reason for the 2 missing files?

Could it be due to some problems during compilation of the core 3.2 installation?

You've suggested that i check the nagios.cfg file to ensure that there are "no issues".
What should i be looking out for in the file?

I would appreciate if you could give me some pointers on this.

Thank you.

kirukan 10-29-2009 10:38 AM

Did you check nagios source there is a another directory cgi?

wlchak 10-29-2009 08:29 PM

Nagios: statusmap.cgi & Trends.cgi files missing
Hi Kirukan,

I've checked the source directory for nagios core installer, checked the source cgi directory & i could see statusmap.c file in there, and also trends.c file in there too. However, all other files has both the .c files & also the .cgi files there, except for statusmap, trends, and histogram files. ( statusmap.c, trends.c & histogram.c )

Is this due to a compilation error during installation?

What do you think?

Would i be able to manually copy those .c files over to the working cgi directory & do a compile again?

Pls advise..

Thank you.

MensaWater 10-30-2009 06:47 AM

No - the .c files are the source. You'd need to compile them to make the .cgi files.

Did you run steps similar to those shown in this Fedora quick start guide?
(configure, make, make install?). It is the make install that should have put the .cgi files in place. If it didn't you might want to retry to see what it missed.

All times are GMT -5. The time now is 11:06 PM.