After searching diligently through the forums and manuals, I can not find where the location field is read for a windows server when I am polling it with WMI. Could someone please point me in the right direction?
Thanks,
-Cory
The "Location" field for WMI managed nodes in Orion comes from the Active Directory Site Name.
Is this field only available for Windows DCs?
In our own environment this data is only populated in our DCs, not on any of our other Windows 2008/2012 servers and then they reflect the continent, not the physical location.
I tried using a bit of Powershell (and wbemtest) to set the field in Win32_NTDomain, but Solarwinds never seems to pick up on it.
Any ideas?
This information should be queryable from the client/end-point based on Microsofts references but it does appear from my own investigation that you may be correct. It look as though this value is only populated for Domain Controllers, and not the endpoints joined to the domain.
Hi,
im having the same issue, If I run the command nltest /dsgetsite it comes back with the correct result 'LON' for London. But in SolarWinds the location field is blank why is SolarWinds not updating the field?
dodo123 thanks for the tip on nltest!
I wrapped this into a Windows PowerShell monitor to retrieve this into Orion:
$test = nltest /dsgetsite 2>$null
if($LASTEXITCODE -eq 0)
{
$location = $test[0]
Write-Host "Message: $location"
Write-Host "Statistic: 1"
}
Now all I need I need to create a little report to display this on the nodes summary view, or see if I can create a nightly DB job to update the Nodes table with this value.
Like it but will put more load on SAM could do with an actual fix to work via NPM.
maybe this could work?
Add location to the Location field for nodes monitored via ICMP - SolarWinds Worldwide, LLC. Help and Support