You are not logged in.
Hi,
I just installed Nagios, and after some config-file wrangling I can now see the main page. The problem is that the links in the side bar don't display properly, and don't link to where they're supposed to go. I assume it's a simple PHP/Apache fix, but I have very little experience with PHP and don't know where to start.
As an example, the Services link, instead of showing up as "Services", displays as
/status.cgi?host=all" target="">Services
The link points to
http://localhost/nagios/<?php echo $cfg[
I realize that these two lines are parts of the link in the side.php file, which is
<li><a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?host=all" target="<?php echo $link_target;?>">Services</a></li>
My question is, how do I get Apache to display and recognize the link, including expanding the variables?
I have the php and php-apache packages installed, and httpd -t -D DUMP_MODULES shows me that the php5_module is loaded.
Last edited by novocaine (2010-03-27 19:54:08)
Offline
Hi,
I'm setting up nagios on Arch to do monitoring at my job site and ran into the exact same problem as topic starter.
I revisited the WiKi page on LAMP: http://wiki.archlinux.org/index.php/Apache and discovered there was a problem with the configuration of the php-apache module.
First check if php is working in Apache by creating a test file, e.g. test.php with the following content.
< ?php phpinfo() ?>
Place the file in your Apache DocumentRoot, default: /srv/http and open the url: http://localhost/test.php
You should get a nicely formatted page with lots of information about your php installation, if not revisit above mentioned page and carefully re-read the section on php.
Offline