Netwatchdog is a simple application that is used to monitor network connection drops.
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.
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake -S .
cmake --build build --config Release
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -S .
cmake --build build --config Release
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
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
To build docker images, please see docker README.md
The usage of the client and the server is quite simple. Running the application is enough to use the default settings.
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]
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
Netwatchdog is licensed under the MIT license