Enable Service Mapping to
perform discovery based on data collected using the Netflow protocol. This setup results in
fully automated data collection flow, where all involved components send, collect, and
analyze data automatically.
Before you begin
Learn about Traffic-based discovery in Service Mapping.
Enable the following scheduled job: Flow Discovery Scheduler
[sysauto_script_74c676f0dbb0220060ff742eaf9619f2].
Role required: admin or service_mapping_admin
About this task
In base systems, which are the default or standard configurations, traffic-based discovery relies solely on TCP-related data collected using the netstat,
ss, and lsof commands. Discovery based on Netflow and VPC logs requires additional configuration. You can enrich your traffic-based discovery by configuring Service Mapping to use the Netflow protocol. For more information
about the way Service Mapping uses Netflow, see Data collection and discovery using Netflow.
Configure the ServiceNow
Netflow connector to trigger the MID Server to collect the data
from the Netflow flows and process them.
Procedure
-
Install the nfdump package on a server hosting the MID Server in your
organization:
-
Configure the Netflow collector to save the nfdump file in the required directory.
-
Open the
/etc/init.d/nfdump file.
-
Modify the parameter responsible for saving this file in the required
location.
For example, on an Ubuntu server, specify the location using the
DEAMON_ARGS
parameter:
DATA_BASE_DIR="/var/cache/nfdump"
DAEMON_ARGS="-D -l $DATA_BASE_DIR -P
$PIDFILE"
-
Configure the switches to forward their nfdump files to the MID Server.
The default value for the MID Server is port 9995.
-
Configure the Netflow collector to save data for one day.
-
Open the command-line window on the server hosting the Netflow collector.
-
Create a cron job.
crontab -e
-
Enter the following command using the correct paths.
*/10 * * * * /usr/local/bin/nfexpire -e /data/nfdump -t 1d
-
Verify that the Netflow collector is configured correctly and receives the
correct data from the network resources.
-
Run the following command:
nfdump -q -O tstart -R /data/nfdump/ -o extended
-
In the command output, verify that marked fields contain real data:
-
Configure Service Mapping
to receive data collected by the Netflow collector:
-
Navigate to .
-
Click New.
-
Click nfdump install.
-
On the nfdump install page, configure parameters as follows:
-
Click Submit.
-
Verify that Service Mapping collects data using Netflow:
-
On the nfdump install form, select the newly
configured connector and click Run now to start
the data collection flow and populate the Flow Connection
[sa_flow_connection] table.
-
Navigate to .
-
Click the Flow Connection [sa_flow_connection] table.
-
Under Related Links, click Show
List.
-
Verify that the table contains data.