Open crossan007 opened 5 years ago
I just discovered the disable option for CheckSystem
, so I am trying to disable network now via:
[/settings/system/windows]
# Disable automatic checks
disable=network
https://docs.nsclient.org/reference/windows/CheckSystem/#disable-automatic-checks
Issue and Steps to Reproduce
When
CheckSystem=enabled
is set innsclient.ini
, the system will encounter noticeable performance issues for a few minutes every 20 minutes.Steps to reproduce: Start NSCP. No external monitoring or remote access is necessary to reproduce
Expected Behavior
NSCP should not cause system-wide performance issues.
Actual Behavior
The performance issues are most noticed in response times for IIS web pages (identified by the
timeTaken
field in the IIS logs).These performance issues can be exactly correlated with ~3% CPU utilization by
WmiPrvSe.exe
, and this line in theMicrosoft-Windows-WMI-Activity/Operational
log:Having enabled WMI trace logging (https://docs.microsoft.com/en-us/windows/desktop/WmiSdk/tracing-wmi-activity) via
Wevtutil.exe sl Microsoft-Windows-WMI-Activity/Trace /e:true
it does not appear that a large number of WMI queries are being executed during these times. The only notable queries in the trace logs pertain to network interfaces (executed by theClientProcessId
owned bynscp.exe
)This appears to be the same scenarios as described here: https://github.com/martinlindhe/wmi_exporter/issues/89
According to that thread, it looks like the PDH queries should not cause this lag, but only WMI queries will. The NSCP source code seems to use PDH for most counters, but the networking counters still appear to use WMI.
I don't see an easy way to disable network counters from the
CheckSystem
module, but this would be my first guess as to diagnosing this issue.Details
Additional Details
NSClient++ log: