Connectivity Monitoring
Offline detection, real-time alerts, aur WhatsApp notifications
Connectivity Monitoring Kya Hai?
Connectivity Monitoring ek automated system hai jo regular intervals par sab subscribers ka status check karta hai, offline users detect karta hai, aur WhatsApp notifications bhejta hai.
Regular Scan
Automatic intervals par status check
Offline Detection
PPPoE session miss hone par alert
WhatsApp Alerts
Offline users ko automatic message
History
Kab offline gaya, kab wapas aaya
Subscriber States
| State | Matlab |
|---|---|
| ONLINEONLINE | Active PPPoE session hai |
| OFFLINE_ROUTEROFFLINE | Session nahi mili — user offline |
| UNKNOWNUNKNOWN | Scan nahi hua abhi |
| ROUTER_UNREACHABLE | Router tak pahunch nahi |
| PROVIDER_SUSPENDED | Dealer ne manually suspend kiya |
Connectivity Page Tabs
| Tab | Content |
|---|---|
| Overview | Offline subscribers list + Events table |
| Router Status | Per-router subscriber counts |
| Dispatch | WhatsApp notification history |
| Settings | Detection configuration |
| Templates | WhatsApp message templates |
Settings — Configuration
| Setting | Default | Matlab |
|---|---|---|
| Enable Detection | ON | Offline detection on/off |
| Enable Socket Push | ON | Real-time WebSocket updates |
| Enable Offline Notifications | ON | WhatsApp notifications |
| Consecutive Miss Threshold | 2 | Kitne scans miss hone par offline mark karo |
| Notification Rate Limit/Hour | 300 | Maximum notifications per hour |
| Router Unreachable Guard | 50% | Agar itne % users offline toh router unreachable |
Real-Time Status
Connectivity page WebSocket se real-time updates leta hai:
| Badge | Matlab |
|---|---|
| realtime=connectedconnected | Live updates aa rahe hain |
| realtime=connectingconnecting | Connect ho raha hai |
| realtime=disconnecteddisconnected | Manual refresh karo |
WhatsApp Templates
Connectivity mein 2 event types ke liye templates hain:
| Event Type | Trigger |
|---|---|
| offline_detected | User offline ho gaya |
| recovered_online | User wapas online aa gaya |
Available Variables:
template
{{subscriber_name}} → Customer ka naam
{{router_name}} → Router ka naam
{{offline_since}} → Kab se offline hai
{{status}} → Current statusExample Template:
text
Assalam o Alaikum {{subscriber_name}},
aapka internet {{offline_since}} se offline hai.
Router: {{router_name}}.
Please apna router check karein.Cooldown
Ek user ko 4 ghante mein sirf 1 notification bheja jata hai — repeated alerts nahi.