eG uses various methods like APIs, windows perfmon counters, etc. to collect the performance metrics. Some of the common metrics like CPU/Memory/Disk utilization on windows servers use perfmon objects.
Occasionally, you might find that some of the metrics are not collected by eG. One of the most common reasons for this issue is the corruption of the perfmon objects.
In this article, we can discuss the steps to resolve such an issue, by reloading the perfmon counters.
Ensure that you have full system administrator rights, before trying the steps below
- Take a Copy of the file PerfStringBackup.ini file from C:\Windows\System32 from one of the servers where perfmon counters are not corrupted.
- On the perfmon problematic server, place the copied file PerfStringBackup.ini on any location, like C:\temp
- Finally, open a command prompt as an administrator and run the below command
lodctr /C:\temp\PerfStringBackup.ini
If you still have problems, please use the below command to get the perfmon dumps and contact eG helpesk for further assistance.
Syntax:
C:\eGurkha\lib>EgPerfmon [-all] [-objects] [-counters<valid object name>] [-values <valid objectname>] [-instances<valid object name>]
Example:
c:\egurkha\jre\bin\java -cp C:\egurkha\lib\eg_agent.jar;C:\egurkha\lib\eg_util.jar -Djava.library.path=C:\eGurkha\lib;C:\eGurkha\lib\EgPerfmon -all -counters all -values all -instance