# Clone repository
git clone https://github.com/ASAD2204/NetMon-AI.git
cd NetMon-AI
# Create virtual environment
python -m venv venv
.\venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
pip install pyreadline3 # For Windows tab completion
python -m nltk.downloader wordnet
# Set API key
echo "GROQ_API_KEY=your_api_key_here" > .env
# Run
python src/shell.py# Clone repository
git clone https://github.com/ASAD2204/NetMon-AI.git
cd NetMon-AI
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
python3 -m nltk.downloader wordnet
# Set API key
echo "GROQ_API_KEY=your_api_key_here" > .env
# Run
python3 src/shell.py# View current thresholds
alert-config
# Customize for your needs
set-threshold cpu 70 85
set-threshold memory 75 90
set-threshold disk 80 95# Create shortcuts for common tasks
alias ll "ls -la"
alias check "health"
alias backup "export"
# View all aliases
aliases# Get overall health score
health
# Output shows:
# - CPU, Memory, Disk usage
# - Individual scores
# - Overall health rating# Ask anything about your system
ask "show me CPU usage"
ask "what processes are using most memory"
ask "show me network connections"
ask "open the dashboard"monitor # Live dashboard (Ctrl+C to exit)
health # System health score
pslist # List all processes
connections # Show network connectionsls /var/log # List directory
cat error.log # View file contents
search "error" app.log # Search in file
touch newfile.txt # Create file
pwd # Current directory
cd /tmp # Change directoryalerts # View recent alerts (last 10)
alerts 20 # View last 20 alerts
alert-config # Show configurationpassword-policy # View password requirements
sessions # Show active sessionsregister /etc/hosts # Monitor file for changes
audit # Check all registered files
analyze /var/log/auth.log # AI-powered log analysisrun-script playbook.json # Execute automation playbookhistory # Show command history
export # Export system state
help # Show all commands
clear # Clear screen# Pipe commands
pslist | search python
# Save output to file
pslist > processes.txt
health > health_report.txt
# Chain multiple commands
cat error.log | search "critical"# Navigate to a Git repo
cd /path/to/project
# Prompt automatically shows branch
/path/to/project (main) $
# Your commands here...# Create a daily health check workflow
alias daily-check "health && alerts 10 && export"
# Run it
daily-check
# Create monitoring aliases
alias cpu-monitor "ask show cpu usage"
alias mem-monitor "ask show memory usage"
alias disk-monitor "ask show disk usage"-
Configure thresholds for your environment:
# For development machine (relaxed) set-threshold cpu 80 95 set-threshold memory 85 95 # For production server (strict) set-threshold cpu 60 75 set-threshold memory 70 85 set-threshold disk 75 90
-
Enable email notifications (optional):
- Edit
data/alert_config.json - Add SMTP settings
- Add recipient emails
- Edit
-
Test alerts:
# Check current metrics health # View recent alerts alerts
- Press
Tabto autocomplete commands and filenames - Works for built-in commands, aliases, and files
- Use
Ctrl+R(Linux/Mac) to search command history - Type part of a command to find it
Save your favorite aliases and settings
# Run dashboard in background terminal
monitor
# Work in another terminal# Create a cron job (Linux)
*/15 * * * * /path/to/venv/bin/python /path/to/src/shell.py -c "health && export"pip install richpip install pyreadline3# Run with elevated privileges
sudo python3 src/shell.py # Linux
# Run as Administrator # Windows# Check .env file
cat .env
# Verify format
GROQ_API_KEY=gsk_your_key_here# Check if alerts are enabled
alert-config
# View alert history
alerts 50-
Customize Your Setup
- Set thresholds for your environment
- Create useful aliases
- Configure alert channels
-
Explore AI Capabilities
- Ask complex questions
- Use natural language
- Let AI help with diagnostics
-
Automate Tasks
- Create playbooks for routine operations
- Use aliases for workflows
- Export system state regularly
-
Monitor Proactively
- Set up alerts
- Check health regularly
- Review alert history
# Show all commands
help
# Check documentation
cat README.md
cat ENHANCEMENTS.md
# GitHub Issues
https://github.com/ASAD2204/NetMon-AI/issues- π Full Documentation
- π Enhancement Guide
- π¬ GitHub Discussions
- π Report Issues
Happy Monitoring! π