LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2009, 01:10 AM   #1
wlchak
LQ Newbie
 
Registered: Oct 2009
Location: Singapore
Posts: 12

Rep: Reputation: 0
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:

MAPS

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


TRENDS

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


Question:

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
</Directory>

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

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

Thank you.
 
Old 10-28-2009, 08:21 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

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

Last edited by kirukan; 10-28-2009 at 08:22 AM.
 
Old 10-28-2009, 08:44 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
When I installed the 3.x version of Nagios it put the files in:
/usr/local/nagios/sbin/

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

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.
 
Old 10-29-2009, 08:04 AM   #4
wlchak
LQ Newbie
 
Registered: Oct 2009
Location: Singapore
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
Old 10-29-2009, 10:38 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Did you check nagios source there is a another directory cgi?
 
Old 10-29-2009, 08:29 PM   #6
wlchak
LQ Newbie
 
Registered: Oct 2009
Location: Singapore
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
Old 10-30-2009, 06:47 AM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.

http://nagios.sourceforge.net/docs/3...rt-fedora.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nagios + cgi aeby Linux - Server 6 09-21-2007 08:33 AM
Nagios cgi problem michieldg Linux - Software 0 12-12-2005 03:05 AM
Nagios & cgi-bin JJX Linux - Software 0 10-12-2005 07:24 AM
Nagios statusmap ds12476 Linux - Networking 0 10-20-2004 10:51 AM
Nagios and Check.cgi kopite2012 Linux - Newbie 1 04-08-2004 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration