Skip to content

Netwatchdog is a tool used to monitor for network connection dropouts.

License

Notifications You must be signed in to change notification settings

viperman1271/Netwatchdog

Repository files navigation

Netwatchdog

Logo

License: MIT Build

Table of Contents

Introduction

Netwatchdog is a simple application that is used to monitor network connection drops.

Build

Netwatchdog uses CMake to generate necessary configuration files. As a prerequisite, python must be available on the system first.

If you're already using vcpkg, you can use the existing installation or create a new one.

Using Existing vcpkg

Windows

cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake -S .
cmake --build build --config Release

Linux

cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -S .
cmake --build build --config Release

New Installation of vcpkg

Windows

git clone https://github.com/microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.bat

cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake -S .
cmake --build build --config Release

Linux

git clone https://github.com/microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.sh

cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake -S .
cmake --build build --config Release

Docker

To build docker images, please see docker README.md

Usage

The usage of the client and the server is quite simple. Running the application is enough to use the default settings.

Server

The MongoDB can be configured through 3 options - via environment variables, command line options, or values in the config.toml. Any values passed as command line, or via environment variables, will not be saved in the config.toml for security reasons.

Variable Description
MONGO_USERNAME Username for credentials
MONGO_PASSWORD Password for credentials
MONGO_HOST Hostname of the database (defaults to localhost)
MONGO_PORT Port for the database (defaults to 27017)
NetWatchdog - ZeroMQ based network monitoring tool.
Usage: C:\git\NetWatchdog\bin\Debug\netwatchdogd.exe [OPTIONS]

Options:
  -h,--help                   Print this help message and exit
  -p,--port INT               The port to use [defaults to 32000]
  -i,--identity TEXT          Identity
  --host TEXT                 Listening address for the server [defaults to *]
  --username TEXT             Username for database access [defaults to root]
  --password TEXT             Password for database access
  --db_host TEXT              Database host address
  --db_port INT               Database port [defaults to 27017]

Client

NetWatchdog - ZeroMQ based network monitoring tool.
Usage: C:\git\NetWatchdog\bin\Debug\netwatchdogc.exe [OPTIONS]

Options:
  -h,--help                   Print this help message and exit
  -p,--port INT               The port to use [defaults to 32000]
  -i,--identity TEXT          Identity
  -c,--clientCount UINT       Number of clients to spawn.
  --host TEXT                 Host to connect to

License

Netwatchdog is licensed under the MIT license

Dependencies

About

Netwatchdog is a tool used to monitor for network connection dropouts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published