Help Center/ Migration Center/ Tool Guide/ Tool Discovery/ Configuring Collector Parameters/ Process and Network Collector (app-discovery-process-netstat)
Updated on 2024-03-18 GMT+08:00

Process and Network Collector (app-discovery-process-netstat)

This collector collects process and network associations on a node. For details about the configuration parameters, see Table 1.

Table 1 Parameters for configuring the process and network collector

Parameter

Mandatory

Configuration

output_path

No

Enter the storage path of the collection result file (app-discovery-process-netstat-xxx.csv). If this parameter is left blank, the storage path defaults to <Collector installation path>\output\file.

Example: C:\Edge\tools\plugins\collectors\app-discovery-collectors\python\mgc-app-discovery-collectors\app-discovery-process-netstat\output\file\app-discovery-process-netstat-xxx.csv

rules_path

No

Enter the storage path of the collection rule file (a .properties file). If this parameter is left blank, the path defaults to <Collector installation path>\config\rules.properties.

Example: C:\Edge\tools\plugins\collectors\app-discovery-collectors\python\mgc-app-discovery-collectors\app-discovery-process-netstat\config\rules.properties

NOTICE:

You are advised to use the default rule file. If you need to customize collection rules, modify the default rule file.

interval

No

Specify the collection interval, in minutes. The value is an integer ranging from 1 to 30. If this parameter is not set, the default value 1 m is used.

time

No

This parameter is mandatory when app_only is set to false.

Specify the collection duration. If the collection duration exceeds the specified value, the collection stops. The unit can be m (minute), h (hour), or d (day). The value is an integer greater than or equal to 1.

app_only

No

Specify whether to collect only process information. The options are true and false. true indicates only process information is collected. false indicates only network information is collected. The default value is false.

CAUTION:

If this parameter is set to false, the time parameter is mandatory.

nodes_path

No

  • If you want to use the default configuration file provided by the collector, leave this parameter empty. Before data collection, you need to fill out the node information to be collected in the default configuration file nodes.csv. The path of file is <Collector installation directory>\config\nodes.csv.

    Example: C:\Edge\tools\plugins\collectors\app-discovery-collectors\python\mgc-app-discovery-collectors\app-discovery-process-netstat\config\nodes.csv

  • If you want to customize a configuration file, create a CSV file by referring to the default configuration file nodes.csv. Set this parameter to the path of the created CSV file.
NOTICE:

You are advised to fill out your node information in the default configuration file nodes.csv. If you need to customize a configuration file, use the default file as a reference.