My team and I have been trying to figure out the root cause of issues we are having with the polling agent on Windows 7 Pro workstations. After changing the polling method from WMI to the Polling Agent, the following entries are found in the AssetInventory.Collector.Jobs_[3660].log.
We are using the polling agent to run Process Monitor - WMI and Powershell Script component monitors against the workstations for our application monitoring needs. We have been successful in using this method but for some reason issues have been rearing their head.
Below is a copy of the agent logs from one of the monitored nodes with the polling agent. From what it looks like the issue seems to point to a problem with either .NET or Windows but I'm looking for more info.
Could this be a permissions issue with the Agent service?
Or is this a WMI performance counter issue?
Any ideas?
Anyone else having these issues too?
[Log files are found on the local node here: ----- C:ProgramData\SolarWinds\Logs\AssetInventory\ ]
I'm trying to understand what these log entries mean:
*** Assembly SolarWinds.JobEngine, Version=2.10.0.34, Culture=neutral, PublicKeyToken=null, .NET version v4.0.30319 ***
2016-01-04 15:17:21,729 [STP SmartThreadPool Thread #0] INFO SolarWinds.JobEngine.PluginStore - Refreshing using C:\Program Files\SolarWinds\Agent\Plugins\JobEngine\plugins as plug-ins manifest container
2016-01-04 15:17:21,776 [STP SmartThreadPool Thread #0] WARN SolarWinds.JobEngine.Diagnostics.PerformanceCounters - Accessing raw value of counter failed
System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.get_RawValue()
at SolarWinds.JobEngine.Diagnostics.PerformanceCounters.GetPerformanceCounter(String category, String counterName, String instanceName, PerformanceCounterInstanceLifetime instanceLifetime)
2016-01-04 15:17:21,776 [STP SmartThreadPool Thread #0] WARN SolarWinds.JobEngine.Diagnostics.PerformanceCounters - Error creating counter
System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.get_RawValue()
at SolarWinds.JobEngine.Diagnostics.PerformanceCounters.GetPerformanceCounter(String category, String counterName, String instanceName, PerformanceCounterInstanceLifetime instanceLifetime)
*** Assembly SolarWinds.Orion.Collector.Plugins, Version=2015.1.25300.8197, Culture=neutral, PublicKeyToken=null, .NET version v4.0.30319 ***
*** Assembly SolarWinds.Orion.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=316e86daa515e407, .NET version v4.0.30319 ***
*** Assembly SolarWinds.Orion.Pollers.Framework, Version=2015.1.25300.8197, Culture=neutral, PublicKeyToken=null, .NET version v4.0.30319 ***
*** Assembly SolarWinds.Common, Version=2015.1.25300.8197, Culture=neutral, PublicKeyToken=null, .NET version v2.0.50727 ***
2016-01-04 15:17:23,773 [25] ERROR SolarWinds.Common.Diagnostics.PerformanceCounters - Failed to ensure performance counters are registered. Performance counter may not be available. Error Message: "Cannot load Counter Name data because an invalid index '' was read from the registry."
2016-01-04 15:17:23,773 [25] WARN SolarWinds.Common.Diagnostics.PerformanceCounters - Error creating counter
System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.get_RawValue()
at SolarWinds.Common.Diagnostics.PerformanceCounters.GetPerformanceCounter(String category, String counterName, String instanceName, PerformanceCounterInstanceLifetime instanceLifetime)
2016-01-04 15:17:23,773 [25] ERROR SolarWinds.Common.Diagnostics.PerformanceCounters - Initialization failed SolarWinds: PollerBasic Benchmarks Aggregate/
System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.get_RawValue()
at SolarWinds.Common.Diagnostics.PerformanceCounters.GetPerformanceCounter(String category, String counterName, String instanceName, PerformanceCounterInstanceLifetime instanceLifetime)
at SolarWinds.Common.Diagnostics.PerformanceCounters.CreateInstancePerformanceCounters(String category, CounterCreationDataCollection counterDefs, String instanceName, PerformanceCounterInstanceLifetime lifeTime)
at SolarWinds.Common.Diagnostics.PerformanceCounters.InitializeCounters(Object state)
2016-01-04 15:17:23,866 [25] ERROR SolarWinds.Common.Diagnostics.PerformanceCounters - Failed to ensure performance counters are registered. Performance counter may not be available. Error Message: "Cannot load Counter Name data because an invalid index '' was read from the registry."
2016-01-04 15:17:23,866 [25] WARN SolarWinds.Common.Diagnostics.PerformanceCounters - Error creating counter
System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.get_RawValue()
at SolarWinds.Common.Diagnostics.PerformanceCounters.GetPerformanceCounter(String category, String counterName, String instanceName, PerformanceCounterInstanceLifetime instanceLifetime)
2016-01-04 15:17:23,866 [25] ERROR SolarWinds.Common.Diagnostics.PerformanceCounters - Initialization failed SolarWinds: PollerBasic Benchmarks/PID:3660
System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.get_RawValue()
at SolarWinds.Common.Diagnostics.PerformanceCounters.GetPerformanceCounter(String category, String counterName, String instanceName, PerformanceCounterInstanceLifetime instanceLifetime)
at SolarWinds.Common.Diagnostics.PerformanceCounters.CreateInstancePerformanceCounters(String category, CounterCreationDataCollection counterDefs, String instanceName, PerformanceCounterInstanceLifetime lifeTime)
at SolarWinds.Common.Diagnostics.PerformanceCounters.InitializeCounters(Object state)
*** Assembly SolarWinds.AssetInventory.Pollers, Version=1.4.1.8, Culture=neutral, PublicKeyToken=null, .NET version v4.0.30319 ***
*** Assembly SolarWinds.Net.WMI, Version=2015.1.25300.8197, Culture=neutral, PublicKeyToken=null, .NET version v2.0.50727 ***
2016-01-04 15:18:04,223 [22] ERROR SolarWinds.Common.Diagnostics.PerformanceCounters - Failed to ensure performance counters are registered. Performance counter may not be available. Error Message: "Cannot load Counter Name data because an invalid index '' was read from the registry."
2016-01-04 15:18:04,223 [22] WARN SolarWinds.Common.Diagnostics.PerformanceCounters - Error creating counter
System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.get_RawValue()
at SolarWinds.Common.Diagnostics.PerformanceCounters.GetPerformanceCounter(String category, String counterName, String instanceName, PerformanceCounterInstanceLifetime instanceLifetime)
2016-01-04 15:18:04,223 [22] ERROR SolarWinds.Common.Diagnostics.PerformanceCounters - Initialization failed SolarWinds: WmiConnection Benchmarks Aggregate/
System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.get_RawValue()
at SolarWinds.Common.Diagnostics.PerformanceCounters.GetPerformanceCounter(String category, String counterName, String instanceName, PerformanceCounterInstanceLifetime instanceLifetime)
at SolarWinds.Common.Diagnostics.PerformanceCounters.CreateInstancePerformanceCounters(String category, CounterCreationDataCollection counterDefs, String instanceName, PerformanceCounterInstanceLifetime lifeTime)
at SolarWinds.Common.Diagnostics.PerformanceCounters.InitializeCounters(Object state)
*** Assembly SolarWinds.AssetInventory.Common, Version=1.4.1.8, Culture=neutral, PublicKeyToken=null, .NET version v4.0.30319 ***
2016-01-04 15:18:05,331 [23] ERROR SolarWinds.Common.Diagnostics.PerformanceCounters - Failed to ensure performance counters are registered. Performance counter may not be available. Error Message: "Cannot load Counter Name data because an invalid index '' was read from the registry."
2016-01-04 15:18:05,331 [23] WARN SolarWinds.Common.Diagnostics.PerformanceCounters - Error creating counter
System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.get_RawValue()
at SolarWinds.Common.Diagnostics.PerformanceCounters.GetPerformanceCounter(String category, String counterName, String instanceName, PerformanceCounterInstanceLifetime instanceLifetime)
2016-01-04 15:18:05,331 [23] ERROR SolarWinds.Common.Diagnostics.PerformanceCounters - Initialization failed SolarWinds: WmiConnection Benchmarks/PID:3660
System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter.get_RawValue()
at SolarWinds.Common.Diagnostics.PerformanceCounters.GetPerformanceCounter(String category, String counterName, String instanceName, PerformanceCounterInstanceLifetime instanceLifetime)
at SolarWinds.Common.Diagnostics.PerformanceCounters.CreateInstancePerformanceCounters(String category, CounterCreationDataCollection counterDefs, String instanceName, PerformanceCounterInstanceLifetime lifeTime)
at SolarWinds.Common.Diagnostics.PerformanceCounters.InitializeCounters(Object state)