Skip to content

Net-Monitor is a simple command-line interface (CLI) application built in Go that monitors all network interfaces on your computer and displays the upload and download speeds for each interface in real-time.

License

Notifications You must be signed in to change notification settings

kiapanahi/net-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Net Monitor

Net Monitor is a simple CLI tool to monitor network interfaces activity. It provides real-time statistics on network usage.

Table of Contents

Installation

To build the project, you need to have Go installed. Clone the repository and run the following command to build the executable:

On Windows:

go build -o bin/nm.exe

On Linux/Unix:

go build -o bin/nd

Alternatively, you can use the provided VS Code task to build the project:

Open the Command Palette (Ctrl+Shift+P). Select Tasks: Run Build Task.

Usage

After building the project, you can run the executable to start monitoring network interfaces:

nm monitor

Commands

monitor

The monitor command starts monitoring network interfaces and displays real-time statistics.

Development

Prerequisites

  • Go 1.23.0 or higher
  • VS Code (optional, but recommended)

Running the Project

To run the project using VS Code, you can use the provided launch configuration:

  1. Open the Command Palette (Ctrl+Shift+P).
  2. Select Debug: Start Debugging.

This will start the monitor command.

Project Structure

  • cmd/: Contains the CLI commands.
    • monitor.go: Implements the monitor command.
    • root.go: Defines the root command and initializes subcommands.
  • main.go: Entry point of the application.

Dependencies

The project uses the following dependencies:

github.com/shirou/gopsutil: For fetching network statistics. github.com/spf13/cobra: For building the CLI.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Net-Monitor is a simple command-line interface (CLI) application built in Go that monitors all network interfaces on your computer and displays the upload and download speeds for each interface in real-time.

Topics

Resources

License

Stars

Watchers

Forks

Languages