We had an intergration importing 3rd party web charts (by url) to Orion NPM interfaceDetail view for 9.1 and previous versoins of NPM. The attached file CoS_sample.Resource was created under C:\InetPub\SolarWinds\NetPerfMon\Resources\3-1-InterfaceDetails for this purpose. The Resource files does two things:
1. the javascript lets user toggle display of the chart
2. the "Select case ... Case" section contains thousands of interfaces matched to individual urls by Interface Fullname so that on an individual interface's Interface Detail page, only the correct url's chart is displayed. The attached Resource files only shows a few interfaces for illustration.
This Resource file was automatically updated daily by some other processes to add new matching interfaces.
After upgrading to NPM 9.5.1 today, the above setting does not work anymore. Rather than using this Resource file, we were suggested by Solarwinds tech support to find the eqvialent implementation in ASP.NET. Specifically, we probably need a new sample .ascx file and possibly .cs code in C:\InetPub\SolarWinds\Orion\NetPerfMon\Resources\InterfaceDetails so that this resource can be added to Interface Detail view in NPM 9.5.1. A sample is helpful and I will modify it to fit into the daily processes for automatic generation of the .ascx or .cs code.
Thanks in advance for help from ASP.NET and NPM 9.5.1 gurus.
Here are the ASP code of the Resource file (also in the attached file):
---------------------------------------------
<!-- Title= CoS util stats -->
<!-- Level=6 -->
<!--#include Virtual=/NetPerfMon/scripts/Resource.asp -->
<HEAD>
<script type="text/javascript" language="JavaScript"><!--
function RemoveContent(d) {
document.getElementById(d).style.display = "none";
}
function InsertContent(d) {
document.getElementById(d).style.display = "";
}
function ToggleDisplay(d) {
if (document.getElementById(d).style.display == "none" )
{
document.getElementById(d).style.display = "";
}
else
{
document.getElementById(d).style.display = "none";
}
}
//--></script>
</HEAD>
<%
Select Case Interface.GetProperty("FullName")
%>
<% Case "CAPFA-CALAB01R-Serial0.100 - PVC to RPM CLGRCDD1P03-0132 Switch1.1906" %>
<%
Title="CoS util Stats"
HelpPage=""
DoResourceHeader
%>
<table width = "100%">
<tr>
<td >
<a href="javascript:ToggleDisplay('cosframe')"; color="0000FF" >
Click Here to toggle chart display
</a>
</td>
<td>
<a href="javascript:InsertContent('cosframe')" >
<img src="/NetPerfMon/images/Button.Chevron_down.gif">
</a>
</td>
<td>
<a href="javascript:RemoveContent('cosframe')" >
<img src="/NetPerfMon/images/Button.Chevron_up.gif">
</a>
</td>
</tr>
<tr>
<td colspan="4">
<div id="cosframe" style="font-size: 16px;display: none;">
<br>
<b>Inbound CoS Util Stats</b>
<iframe src="amrndhw1120/report.jsp width=765 height=650 id=myFrame></iframe>
<br>
<br>
<br>
<b>Outbound CoS Util Stats</b>
<iframe src="amrndhw1120/report.jsp width=765 height=650 id=myFrame></iframe>
</div>
<% Case "CAPFA-CALAB01R-FastEthernet0 - ***Connection to 5954 Controller, LAN & PCs-CA2011x1 FA0/23***" %>
<%
Title="CoS util Stats"
HelpPage=""
DoResourceHeader
%>
<table width = "100%">
<tr>
<td >
<a href="javascript:ToggleDisplay('cosframe')"; color="0000FF" >
Click Here to toggle chart display
</a>
</td>
<td>
<a href="javascript:InsertContent('cosframe')" >
<img src="/NetPerfMon/images/Button.Chevron_down.gif">
</a>
</td>
<td>
<a href="javascript:RemoveContent('cosframe')" >
<img src="/NetPerfMon/images/Button.Chevron_up.gif">
</a>
</td>
</tr>
<tr>
<td colspan="4">
<div id="cosframe" style="font-size: 16px;display: none;">
<br>
<b>Inbound CoS Util Stats</b>
<iframe src="amrndhw1120/report.jsp width=765 height=650 id=myFrame></iframe>
<br>
<br>
<br>
<b>Outbound CoS Util Stats</b>
<iframe src="amrndhw1120/report.jsp width=765 height=650 id=myFrame></iframe>
</div>
<% Case Else %>
<table width = "100%">
<tr>
<td colspan="4">
<tr>
<td colspan="4" class="PropertyHeader"></td>
</tr>
<% End Select %>
</td>
</tr>
</table>
<br>
<!--Date/Time: 20100302011805 Matched interfaces: 2285, missing interfaces: 5038, Total Number of interfaces: 7323
-->