Again we'll take the web client framework from one of the previous recipes, and modify that to our needs. What we want to achieve is a horizontal bar chart that lists the MPLS destinations downwards, illustrating the traffic level on the x-axis.
- Copy the system.html example from the Monitoring system health recipe, and rename it to mpls.html.
- First of all, change the title of the HTML document to something more appropriate:
<!DOCTYPE HTML> <html> <head> <title>JUNOS MPLS Traffic Monitor</title>
<script src="RGraph.common.core.js" ></script> <script src="RGraph.common.key.js"></script> <script src="RGraph.hbar.js"></script> ...