Skip to content

kljama/netscan

Repository files navigation

netscan

network monitoring service that performs automated ICMP discovery, continuous ping monitoring and SNMP metadata collection with time-series storage in InfluxDB.


Docker Quick Start

1. Clone the Repository

git clone https://github.com/kljama/netscan.git
cd netscan

2. Create Configuration File

cp config.yml.example config.yml

3. Edit Your Network Configuration

Open config.yml and modify the networks: section:

networks:
  - "192.168.1.0/24"    # Replace with YOUR actual network range
  - "10.0.50.0/24"      # Add additional ranges as needed

Use ip addr (Linux) or ipconfig (Windows) to determine your network range.

4. (Optional) Configure Production Credentials

For production deployments, create a .env file to override default credentials:

cp .env.example .env
# Edit .env with your secure credentials

See MANUAL.md for details.

5. Start the Service

docker compose up -d

This starts both netscan and InfluxDB v2.7 using default credentials (suitable for testing).


Verify It's Running

View Logs:

docker compose logs -f netscan

Check Health Status:

curl http://localhost:8080/health

Access InfluxDB UI (optional):
Navigate to https://localhost in your browser

Self-Signed Certificate Warning:

  • Username: admin
  • Password: admin123
  • Organization: test-org

Stopping the Service

Stop (keeps data):

docker compose down

Stop and delete all data:

docker compose down -v

Further Documentation

For detailed configuration, performance tuning, troubleshooting, and advanced deployment options, see MANUAL.md.

Alternative Deployment: A native systemd deployment option is available for maximum security (runs as non-root with capability-based ICMP access). See MANUAL.md for instructions.


License

MIT License - See LICENSE.md

About

A tool for scanning defined network ranges and querying sysName and sysDescr

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •