This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.
PATROL Agent/KM for Windows NT
This is applicable on all version of PATROL Agent
PATROL Agent service fails to start with error "Error: 1067: the process terminated unexpectedly" and error "Failed to get performance counters. Exiting.." in the agent log file.
When the agent is started in debug mode using the command prompt, the below error is seen:
Error 4018: Cannot reach the performance database counter names, reason
The system cannot find the file specified.
The performance counters work fine and show the data as well. Even reloading the counters does not help.
Check the perfmon registry called perflib under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib and confirm its corresponding DLL files is present in System32 folder. Also check the registry 009 under Perflib and verify it has the keys "Counter" and "Help". Counter key should have names of all performance counters.
If the Counter key is not present or does not have any values, copy this key/value from a similar server.
If the above steps still doesn't resolve the error rebuild the counters, to do it please follow these steps:
Open a 'cmd' prompt with Administrator permissions and run these commands:
With this the error should be resolved.