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.
Adding a pnp4nagios link to Nagios navigation bar
Re: Adding a pnp4nagios link to Nagios navigation bar
In side.php, look for these two lines -
Before those lines, add the following. Be sure to replace <iphere> with the actual IP of your server.
Is this what you're looking for?
Code: Select all
<div class="navsection">
<div class="navsectiontitle">Reports</div>
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>
Former Nagios Employee
Re: Adding a pnp4nagios link to Nagios navigation bar
Thanks.
That worked.
That worked.
Re: Adding a pnp4nagios link to Nagios navigation bar
You're welcome. I'll go ahead and close this out now, but feel free to post another thread if you ever need assistance!
Former Nagios Employee