Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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..
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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.