Page 2 of 3
Re: Edit nagios navigation bar
Posted: Tue Apr 15, 2014 1:31 am
by tariqondego
See below,I added a link to Paynet Systems
Code: Select all
<div class="navsection">
<div class="navsectiontitle">General</div>
<div class="navsectionlinks">
<ul class="navsectionlinks">
<li><a href="main.php" target="<?php echo $link_target;?>">Home</a></li>
<li><a href="http://go.nagios.com/nagioscore/docs" target="_blank">Documentation</a></li>
<li><a href="http://172.16.111.7/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=paynetsystems" target=" blank"> Paynet Systems</a></li>
</ul>
</div>
</div>
Re: Edit nagios navigation bar
Posted: Tue Apr 15, 2014 9:53 am
by abrist
Well, I don't know the effect this will have, but you are missing the underscore in target. Change:
To:
Code: Select all
<li><a href="http://172.16.111.7/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=paynetsystems" target="_blank">Paynet Systems</a></li>
Re: Edit nagios navigation bar
Posted: Wed Apr 23, 2014 3:59 am
by tariqondego
Hi,
That did not solve it.The changes are still not reflecting on the browser yet.Any other ideas? Because now I am surely stuck.
Re: Edit nagios navigation bar
Posted: Wed Apr 23, 2014 10:16 am
by abrist
Umm, do you use caching on this server? (if so, you may need to restart apache) Changing the side.php should most definitely work, or at least cause some type of noticeable change to the webpage. Can you add any other html to the side.php file and then subsequently see it in your browser?
Re: Edit nagios navigation bar
Posted: Wed Apr 23, 2014 1:31 pm
by tariqondego
I have tried reseting apache and nagios several times.Adding html to the side.php file even cutting the default links that already exist in this file,but the changes are not reflecting on the browser.I have confirmed that nagios.conf for apache point to /usr/local/nagios/share where side.php exists,which means it is pointing to the correct location.But this file is still not reflecting on the browser.
Help.
Re: Edit nagios navigation bar
Posted: Wed Apr 23, 2014 2:15 pm
by abrist
Just out of curiosity:
1) Have you cleared your browser's cache?
2) Is it possible that you may have 2 nagios installs with different share folder locations?
Re: Edit nagios navigation bar
Posted: Thu Apr 24, 2014 2:19 am
by tariqondego
Well,clearing the cache did not help,if you meant cache of my local machine,since nagios is at a central dedicated server.
And since the installation was done by a previous admin,your second opinion was always suspect,so always i have been going back and forth re-confirming that there is no second nagios install and that this is the directory that apache is using.I have added several,hosts,services and hostgroups under this same install directory and the changes are reflected on the browser.
So this whole thing has my head twisted.
Help.
Re: Edit nagios navigation bar
Posted: Thu Apr 24, 2014 2:27 am
by tariqondego
I also went ahead to rename the side.html file and yes this caused an error on the browser of this missing file,so this means I am in the right directory but the side.php is just not effecting this changes.
Re: Edit nagios navigation bar
Posted: Thu Apr 24, 2014 10:12 am
by abrist
odd. I added the following line to the general navsectionlinks ul:
Code: Select all
<li><a href="http://google.com/" target="_blank">google</a></li>
So that the div code looks like:
Code: Select all
<div class="navsection">
<div class="navsectiontitle">General</div>
<div class="navsectionlinks">
<ul class="navsectionlinks">
<li><a href="main.php" target="<?php echo $link_target;?>">Home</a></li>
<li><a href="http://google.com" target="_blank">google</a></li>
<li><a href="http://go.nagios.com/nagioscore/docs" target="_blank">Documentation</a></li>
</ul>
</div>
</div>
And it works just fine. What version of nagios are you running?
Re: Edit nagios navigation bar
Posted: Thu Apr 24, 2014 10:48 am
by tariqondego
I am runnung Nagios® Core⢠3.3.1