Forum Discussion
Azure ATP Sensor Setup - service not starting - missing dependency
But SFC /scannow still fails with same errors
The faulth must be related to something else?
- EliOfekJul 04, 2023
Microsoft
It might be related, not sure, it seems to be related to broken perf counters, I guess that it might break the network interface category as well.
You need to see if you are able to see data from this category using perfmon.exe. - Marthin2770Jul 04, 2023Copper Contributor
Thanks Eli, I'll try and keep it running. What should I keep my eye on, missing data in the monitoring?
Btw I've also noticed these Events in the application log, could those be an issue?
Event 1022: Windows cannot open the 64-bit extensible counter DLL C:\Program Files\Microsoft Monitoring Agent\Agent\HealthServicePerformance.dll in a 32-bit environment (Win32 error code C:\Program Files\Microsoft Monitoring Agent\Agent\HealthServicePerformance.dll is not a valid Win32 application.). Contact the file vendor to obtain a 32-bit version. Alternatively if you are running a 64-bit native environment, you can open the 64-bit extensible counter DLL by using the 64-bit version of Performance Monitor. To use this tool, open the Windows folder, open the System32 folder, and then start Perfmon.exe.
Event 1022:Windows cannot open the 64-bit extensible counter DLL C:\Program Files\Microsoft Monitoring Agent\Agent\MOMConnectorPerformance.dll in a 32-bit environment (Win32 error code C:\Program Files\Microsoft Monitoring Agent\Agent\MOMConnectorPerformance.dll is not a valid Win32 application.). Contact the file vendor to obtain a 32-bit version. Alternatively if you are running a 64-bit native environment, you can open the 64-bit extensible counter DLL by using the 64-bit version of Performance Monitor. To use this tool, open the Windows folder, open the System32 folder, and then start Perfmon.exe.
Event 1008: The Open procedure for service ".NETFramework" in DLL "C:\Windows\system32\mscoree.dll" failed with error code The system cannot find the file specified.. Performance data for this service will not be available.
Event 3009: Installing the performance counter strings for service .NETFramework () failed. The first DWORD in the Data section contains the error code.
Event 1008: The Open procedure for service "BITS" in DLL "C:\Windows\System32\bitsperf.dll" failed with error code The system cannot find the file specified.. Performance data for this service will not be available.
Event 1023: Windows cannot load the extensible counter DLL "C:\Windows\System32\iasperf.dll" (Win32 error code The specified module could not be found.).
Event 1023: Windows cannot load the extensible counter DLL "C:\Windows\system32\InterceptCounters.dll" (Win32 error code The specified module could not be found.).
- EliOfekJul 04, 2023
Microsoft
According to the stack you shared above, the issue is for sure just with "Network Interface" category. focus on that, and see if using perfmon.exe you can actually capture counters from the nics you have on the machine. - Marthin2770Jul 04, 2023Copper Contributor
So far we made sure the following monitoring is available in perfmon:
1. NET CLR Lock and Thread
2. NET CLR Memory
3. NET CLT Networking
4. Processor
5. Processor Information
6. Network Adapter
7. Network Interface
I can also add Network Interface and see its working in perfmon:
We also tried to rebuild the .Net CLR performance counters.
- EliOfekJul 03, 2023
Microsoft
Marthin2770 The code is failing because it expects to see the "Network Interface" Performance counter category in the machine and it's not there, if you run perfmon.exe you will probably see that it's missing there as well.
A Platform engineer might help find out why it is missing (turned off or counters needs to be rebuilt). - Marthin2770Jul 03, 2023Copper ContributorI've created a ticket with Microsoft support trying to fix the issue without luck so far.
Still getting the error "The type initializer for 'Microsoft.Tri.Infrastructure.PerformanceCounterMetricManager' threw an exception. ---> System.InvalidCastException: Specified cast is not valid." - Jun 28, 2023try to repair it using an ISO media
DISM /Online /Cleanup-Image /RestoreHealth /Source:G:\Sources\install.wim