Download .cgi files from Nagios site


#1

I just finished installing Nagios on Fedora 12 and I’m having some strange problems.

I can bring up the site and can only access the home and documentation links. All of the other links don’t work correctly. When I click on the links, the .cgi files want to download from the website. I’ve checked my httpd error_log file and only have a “caught SIGTERM, shutting down” error and “Python version mismatch, expected ‘2.6’, found ‘2.6.2’” error. I’ve researched both of these errors and found them not to be serious. Below is a copy of the log:

[Thu May 06 10:09:49 2010] [notice] caught SIGTERM, shutting down
[Thu May 06 10:09:50 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu May 06 10:09:50 2010] [notice] Digest: generating secret for digest authentication …
[Thu May 06 10:09:50 2010] [notice] Digest: done
[Thu May 06 10:09:50 2010] [error] python_init: Python version mismatch, expected ‘2.6’, found ‘2.6.2’.
[Thu May 06 10:09:50 2010] [error] python_init: Python executable found ‘/usr/bin/python’.
[Thu May 06 10:09:50 2010] [error] python_init: Python path being used ‘/usr/lib/python26.zip:/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload’.
[Thu May 06 10:09:50 2010] [notice] mod_python: Creating 4 session mutexes based on 150 max processes and 0 max threads.
[Thu May 06 10:09:50 2010] [notice] mod_python: using mutex_directory /tmp
[Thu May 06 10:09:50 2010] [notice] Apache/2.2.14 (Unix) DAV/2 PHP/5.3.2 mod_python/3.3.1 Python/2.6.2 mod_ssl/2.2.14 OpenSSL/1.0.0-fips-beta4 mod_perl/2.0.4 Perl/v5.10.0 configured – resuming normal operations

What is going wrong here? Any help would be great!


#2

You installed from RPM? if yes, throw the RPM install away and go for the sources and compile yourself.


#3

unfortunately luca is right, this one requires step by step manual labor (in the computer sense). The first thing I would do is try to restore your system to a point where you hadn’t begun the process yet. Once you feel comfortable with that, I would consider running some kind of a pst repair tool to ensure you haven’t lost any important personal documents in the process. Then comes the fun part. Step by step you need to take your time in constructing the installation and keeping an eye on every little piece of data that you can. Good luck to you, and feel free to ask any questions.