Quick Start Guide¶
Get up and running with ChatOps in minutes!
Step 1: Access the Web Interface¶
- Navigate to your ChatOps instance URL
- Click "Register" to create a new account
- Fill in your details:
- Email address
- Username
- Password (minimum 8 characters)
- Full name
- Click "Create Account"
Step 2: Add Your First Server¶
- After logging in, navigate to "Servers" from the sidebar
- Click "Add Server" button
- Fill in the server details:
- Name: A descriptive name (e.g., "Production Web Server")
- Host: IP address or hostname (optional, for reference)
- Port: SSH port (optional, for reference)
- Click "Create"
Step 3: Generate an API Key¶
- Click on your newly created server
- Navigate to the "API Keys" tab
- Click "Create API Key"
- Optionally give it a name (e.g., "Main Agent")
- ⚠️ IMPORTANT: Copy the API key immediately - it's only shown once!
Step 4: Install the Agent¶
Option A: Debian/Ubuntu Package (Recommended)¶
# Download the .deb package
wget https://github.com/martian56/chatops/releases/download/v1.0.3/chatops-agent_1.0.3_amd64.deb
# Install the package
sudo dpkg -i chatops-agent_1.0.3_amd64.deb
sudo apt-get install -f # Install dependencies if needed
# Configure the API key
sudo systemctl edit chatops-agent.service
# Add: Environment="CHATOPS_API_KEY=your-api-key-here"
# Start the service
sudo systemctl daemon-reload
sudo systemctl enable chatops-agent
sudo systemctl start chatops-agent
# Check status
sudo systemctl status chatops-agent
Option B: Binary Installation¶
# Download the binary
wget https://github.com/martian56/chatops/releases/download/v1.0.3/chatops-agent-linux-amd64-1.0.3.tar.gz
tar -xzf chatops-agent-linux-amd64-1.0.3.tar.gz
# Run the agent
./chatops-agent-linux-amd64 -api-key YOUR_API_KEY_HERE
Option C: Environment Variables¶
export CHATOPS_API_KEY="your-api-key-here"
export CHATOPS_API_URL="https://your-chatops-instance.com" # Optional
./chatops-agent
Step 5: Verify Connection¶
- Return to the ChatOps web interface
- Navigate to your server's detail page
- You should see:
- Server status: ONLINE (green indicator)
- Real-time metrics appearing in the Metrics tab
- Docker containers listed (if Docker is installed)
What Happens Next?¶
Once the agent is connected:
- Metrics: System metrics (CPU, memory, disk, network) are collected every 5 seconds
- Docker: Container information is available for management
- Logs: System and application logs are accessible
- Terminal: Remote command execution is enabled
Troubleshooting¶
Agent Not Connecting¶
- Check API Key: Verify the API key is correct and active
- Check Network: Ensure the server can reach the ChatOps API URL
- Check Logs: View agent logs for error messages
No Metrics Appearing¶
- Wait a few seconds: Metrics are sent every 5 seconds
- Check Agent Status: Verify the agent is running
- Check Server Status: Ensure the server shows as ONLINE
API Key Issues¶
- Invalid Key: Generate a new API key if the current one is invalid
- Inactive Key: Check that the API key is active in the dashboard