From a63dea5812fa75fef6ec77366645f80d8e909978 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Mon, 28 Sep 2015 18:44:01 +0300 Subject: [PATCH] Add documentation about multi-instance mode --- docs/MULTIPE_INSTANCES.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/MULTIPE_INSTANCES.md diff --git a/docs/MULTIPE_INSTANCES.md b/docs/MULTIPE_INSTANCES.md new file mode 100644 index 00000000..d1bbb5bf --- /dev/null +++ b/docs/MULTIPE_INSTANCES.md @@ -0,0 +1,23 @@ +### We could run multiple instances of FastNetMon on same server + +First of all please create multiple configuration files for each instance. + +In each file you should specify uniq paths for following options for each separate instance: +```bash +# 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 custom path to configuration file: +```bash +./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 set custom path with environment variable: +```bash +cli_stats_file_path=/tmp/fastnetmon_second_instance.dat ./fastnetmon_client +```