Multiple instances of FastNetMon Community

We can run multiple instances of FastNetMon Community on the same server.

Note: You cannot apply the same approach for FastNetMon Advanced.

First, please create multiple configuration files for each instance.

In each file, specify unique paths for the following options for each separate instance:

# Path to pid file for checking process liveness 
pid_path = /var/run/fastnetmon.pid

# Path to file where we store information for fastnetmon_client
cli_stats_file_path = /tmp/fastnetmon.dat

Next, you need to specify a custom path to the configuration file:

./fastnetmon --configuration_file=/etc/fastnetmon_mayflower.conf --daemonize
./fastnetmon --configuration_file=/etc/fastnetmon_hetzner.conf --daemonize

FastNetMon CLI client expects stats file with default path /tmp/fastnetmon.dat, so you need to seta custom path with the environment variable:

cli_stats_file_path=/tmp/fastnetmon_second_instance.dat  ./fastnetmon_client