Linux Installation Guide
Step-by-step guide to install TE Monitor agent on Linux
Linux Server Monitoring Setup
Supported Distributions: Ubuntu, Debian, CentOS, RHEL, Fedora, and other Linux distributions with bash support.
1
Download the Monitoring Script
Download the Linux monitoring script to your server.
wget https://monitor.te.com.tr/downloads/te-monitor.sh
Note: The script will be downloaded to your current directory.
2
Make Script Executable
Set execute permissions for the script.
chmod +x te-monitor.sh
3
Install Required Dependencies
Install curl and bc packages if not already installed.
For Ubuntu/Debian:
sudo apt-get update && sudo apt-get install -y curl bc
For CentOS/RHEL/Fedora:
sudo yum install -y curl bc
For Arch Linux:
sudo pacman -S curl bc
4
Get Your API Key
From the Servers page, click the key icon next to your server to get the API key.
API Key: You'll need this unique key to authenticate your server with the monitoring system.
5
Run the Monitoring Script
Start monitoring with your API key.
./te-monitor.sh -k "YOUR_API_KEY"
Success: If everything is working correctly, you should see "SUCCESS: Metrics sent successfully" messages.
6
🚀 Run in Background (Production)
For production servers, run the monitoring script silently in the background.
nohup ./te-monitor.sh -k "YOUR_API_KEY" > /dev/null 2>&1 &
Background Execution: This command runs the script silently in the background. Replace 'YOUR_API_KEY' with your actual API key.
Important: The script will continue running even after you log out. To stop it, you'll need to find and kill the process.
7
Verify Monitoring
Check that your server appears online in the NetSentryAlert dashboard.
Verification: Go to the Servers page and verify that your Linux server shows as "online" with real-time metrics in TE Monitor dashboard.
Troubleshooting
If you get "Permission denied" error:
chmod +x te-monitor.sh
Install required packages:
sudo apt-get install curl bc # Ubuntu/Debian
sudo yum install curl bc # CentOS/RHEL
Check network connectivity and firewall settings:
curl -I https://your-server-url.com
telnet your-server-url.com 443
Script Options
Command Line Options:
-k, --api-key- API Key (required)-s, --server-url- Server URL (optional)-i, --interval- Update interval in seconds (optional)-h, --help- Show help message
Example Usage:
./te-monitor.sh -k "abc123" -s "https://monitor.te.com.tr" -i 10
Security Notes
Important:
- Keep your API key secure and private
- Use HTTPS for secure communication
- Monitor script logs for any issues
- Regularly update the monitoring script