Page 1 of 1

Default (Initial) page with Nagios Core 4.0.7

Posted: Wed Sep 17, 2014 2:15 pm
Hello all, just joined the forum, been using Nagios since version 2-dot-something.

In earlier versions, like 3.x, I was able to easily patch the PHP/HTML to make Nagios start with the Tactical Overview by default.

What I mean is, loading http://server.company.com/nagios in your browser jumps straight to the tactical overview page. From there you can jump to the home page, host list, map, whatever.

Here was the mod prior to um, I think version 4.04:

Code: Select all

Modification to /usr/local/nagios/share/index.php to set initial page to tactical overview:
    add $corewindow="cgi-bin/tac.cgi";
    comment out original line of code.


I can't make it work for 4.0.7 and I don't know enough about PHP to figure out how to do it. I've tried, but there's something I'm missing. I don't think it's been working since before 4.0.5, in fact, my memory may be faulty and it may not have worked in several versions before that.

Can anyone tell me how to make this mod in 4.0.7? Actually, I'm updating to Nagios Core 4.0.8 soon, so maybe that's a better target.

Thanks in advance.

Re: Default (Initial) page with Nagios Core 4.0.7

Posted: Wed Sep 17, 2014 2:26 pm
by eloyd

Code: Select all

cd /usr/local/nagios/share
vi index.php
<replace line 2:
  $url = 'main.php';
with
  $url = '/nagios/cgi-bin/tac.cgi';
<save file>
Note that the "/nagios/cgi-bin/tac.cgi" needs to be whatever the valid URL is to your tac.cgi file. You can ge this by hovering over the "Tactical Overview" link and grabbing whatever is apropos for your installation.

Re: Default (Initial) page with Nagios Core 4.0.7

Posted: Wed Sep 17, 2014 2:40 pm
8-) Perfect! Works great. Thank you very much.

Re: Default (Initial) page with Nagios Core 4.0.7

Posted: Wed Sep 17, 2014 2:58 pm
by tmcdonald
I'll be closing this thread now, but feel free to open another if you need anything in the future!