Default (Initial) page with Nagios Core 4.0.7

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
[email protected]
Posts: 5
Joined: Wed Sep 17, 2014 1:58 pm

Default (Initial) page with Nagios Core 4.0.7

Post by [email protected] »

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.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Default (Initial) page with Nagios Core 4.0.7

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
[email protected]
Posts: 5
Joined: Wed Sep 17, 2014 1:58 pm

Re: Default (Initial) page with Nagios Core 4.0.7

Post by [email protected] »

8-) Perfect! Works great. Thank you very much.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Default (Initial) page with Nagios Core 4.0.7

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked