SmsGateWay24 Platform for client communication via SMS and WhatsApp

19.04.2024
info

Monitoring your systems

Monitoring your systems

Why SMS Monitoring Alerts Are Valuable

System monitoring is the practice of continuously observing the state of your infrastructure — servers, databases, services, and network devices — and reacting quickly when something goes wrong. While email and app notifications are common, SMS alerts delivered directly to a phone offer an important advantage: they are seen immediately, even when the recipient is away from a computer or has poor internet access.

With SmsGateWay24, you can configure your monitoring tools to send SMS alerts through your Android phone's SIM card, without relying on expensive commercial SMS gateways.

What You Can Monitor and Alert On

Server and Service Availability

Monitor uptime for your web servers, application servers, and APIs. When a service goes down, an SMS is sent immediately to the on-call engineer. This is critical for reducing mean time to resolution (MTTR) — the sooner the team is notified, the sooner the issue is fixed.

Hardware Resource Thresholds

Set thresholds for CPU usage, RAM consumption, and disk space. When usage exceeds the defined limit (e.g., disk at 90%), an SMS alert is triggered. This prevents outages caused by resource exhaustion before they happen.

Application Error Rates

Integrate SmsGateWay24 with your logging system (e.g., Grafana, Zabbix, Nagios, or a custom script) to send an SMS when error rates spike above a normal baseline. This allows teams to catch application regressions quickly after deployments.

Database Health and Query Performance

Alert on slow queries, replication lag, connection pool exhaustion, or failed backups. Database issues can cascade quickly, and SMS alerts ensure the DBA is notified even outside of working hours.

Network and Security Events

Detect and alert on unusual network traffic patterns, failed login attempts, firewall rule violations, or SSL certificate expiration. Early notification gives security teams time to respond before a minor incident becomes a breach.

How to Integrate SmsGateWay24 with Monitoring Tools

Using the REST API

SmsGateWay24 provides a simple REST API that any monitoring tool or custom script can call. A typical alert script looks like this:

curl -X POST https://smsgateway24.com/api/v1/send   -H "Authorization: Bearer YOUR_TOKEN"   -d "phone=+1234567890&message=ALERT: CPU at 95% on server-01&device_id=YOUR_DEVICE"

Zabbix Integration

In Zabbix, create a new media type of type "Script" or "Webhook" that calls the SmsGateWay24 API. Assign it to the appropriate user and link it to your alert actions. Zabbix will then automatically send SMS whenever a trigger fires.

Grafana Alerting

Use Grafana's alerting webhook feature. Configure a notification channel with a webhook URL pointing to a small middleware script that forwards the Grafana payload to the SmsGateWay24 API.

Custom Shell Scripts

For lightweight setups, a simple shell script run by cron every minute can check a condition (e.g., disk usage) and call the API if the threshold is exceeded. This requires no additional monitoring software.

Best Practices for SMS Monitoring Alerts

  • Avoid alert fatigue: Only send SMS for critical issues that require immediate action. For informational events, use email or dashboards instead.
  • Include context in messages: "ALERT: disk 95% on web-01" is far more actionable than "Disk alert". Include the server name, metric, and current value.
  • Set up escalation: If no acknowledgment is received within 15 minutes, send the alert to a second contact or phone number.
  • Test your alert pipeline regularly: Run a manual test alert monthly to confirm the entire pipeline is working.

Categories

News
5