-
Re: Customizing Node Details resource in NPM 10.4
petrf Jan 18, 2013 4:44 AM (in response to Anthony Ussery)Hello,
We changed that resource to load its data asynchronously.
What needs to be done is:
1. backup files mentioned bellow
2. open file AsyncResources.asmx, default location is in "c:\inetpub\SolarWinds\Orion\Services\"
3. locate string "node.HrefIPAddress" (without quotes)
4. add ", ObjectProperties = node.ObjectProperties.ToDictionary(de => de.Key.ToLower(), de => de.Value != null ? de.Value.ToString() : string.Empty)" just behind "node.HrefIPAddress" (without quotes)
5. open NodeDetails.ascx, default location is in "C:\inetpub\SolarWinds\Orion\NetPerfMon\Resources\NodeDetails"
6. in html template refer to custom property like this: "{{ ObjectProperties.city }}", example:
<tr>
<td class="Property" width="10"> </td>
<td class="PropertyHeader">Infrastructure Contact</td>
<td class="Property"> </td>
<td class="Property"><a href="mailto:{{ ObjectProperties.infrastructureowner }}">{{ ObjectProperties.infrastructureowner }} </a></td>
</tr>
Note that this solution is not supported. Files are replaced when website is configured by Configuration Wizard.