Page 1 of 1
Adding a pnp4nagios link to Nagios navigation bar
Posted: Tue Nov 24, 2015 4:00 pm
by kaplan71
Hello --
I have pnp4nagios running on our system, and I want to add a link to the left panel navigation bar to the page.
I know the file to modify is the side.php, but I wanted to know what would be the correct syntax to insert into
the file in order to go to the page in question.
Thanks.
Re: Adding a pnp4nagios link to Nagios navigation bar
Posted: Tue Nov 24, 2015 4:30 pm
by rkennedy
In side.php, look for these two lines -
Code: Select all
<div class="navsection">
<div class="navsectiontitle">Reports</div>
Before those lines, add the following. Be sure to replace <iphere> with the actual IP of your server.
Code: Select all
</div>
<div class="navsection">
<div class="navsectiontitle">Nagios Resources</div>
<ul class="navsectionlinks">
<li><a href="http://<iphere>/mrtg/nagios-a.html" target="<?php echo $link_target;?>">Service Check Latency</a></li>
<li><a href="http://<iphere>/mrtg/nagios-c.html" target="<?php echo $link_target;?>">Host Check Latency</a></li>
<li><a href="http://<iphere>/mrtg/nagios-j.html" target="<?php echo $link_target;?>">Active Service Checks</a></li>
<li><a href="http://<iphere>/mrtg/nagios-i.html" target="<?php echo $link_target;?>">Active Host Checks</a></li>
</ul>
</div>
</div>
Is this what you're looking for?
Re: Adding a pnp4nagios link to Nagios navigation bar
Posted: Tue Nov 24, 2015 4:51 pm
by kaplan71
Thanks.
That worked.
Re: Adding a pnp4nagios link to Nagios navigation bar
Posted: Tue Nov 24, 2015 5:03 pm
by rkennedy
You're welcome. I'll go ahead and close this out now, but feel free to post another thread if you ever need assistance!