[windows] Try to start NPM only when network_enabled is true
On Windows, set sysprobe_enabled to true only when node['datadog']['system_probe']['network_enabled'] is true, to prevent operations on the system-probe service when it is not installed.
MODIFY
recipes/system-probe.rb
recipes/system-probe.rb
is_windows = platform_family?('windows')
# Set the correct agent startup action
-sysprobe_enabled = node['datadog']['system_probe']['enabled'] || node['datadog']['system_probe']['network_enabled']
+sysprobe_enabled = if is_windows
+ node['datadog']['system_probe']['network_enabled']
+ else
+ node['datadog']['system_probe']['enabled'] || node['datadog']['system_probe']['network_enabled']
+ end
sysprobe_agent_start = sysprobe_enabled ? :start : :stop
#

[windows] Try to start NPM only when network_enabled is true (#803)

On Windows, set sysprobe_enabled to true only when node['datadog']['system_probe']['network_enabled'] is true, to prevent operations on the system-probe service when it is not installed.