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

StateMatlab
ONLINEONLINEActive PPPoE session hai
OFFLINE_ROUTEROFFLINESession nahi mili — user offline
UNKNOWNUNKNOWNScan nahi hua abhi
ROUTER_UNREACHABLERouter tak pahunch nahi
PROVIDER_SUSPENDEDDealer ne manually suspend kiya

Connectivity Page Tabs

TabContent
OverviewOffline subscribers list + Events table
Router StatusPer-router subscriber counts
DispatchWhatsApp notification history
SettingsDetection configuration
TemplatesWhatsApp message templates

Settings — Configuration

SettingDefaultMatlab
Enable DetectionONOffline detection on/off
Enable Socket PushONReal-time WebSocket updates
Enable Offline NotificationsONWhatsApp notifications
Consecutive Miss Threshold2Kitne scans miss hone par offline mark karo
Notification Rate Limit/Hour300Maximum notifications per hour
Router Unreachable Guard50%Agar itne % users offline toh router unreachable

Real-Time Status

Connectivity page WebSocket se real-time updates leta hai:

BadgeMatlab
realtime=connectedconnectedLive updates aa rahe hain
realtime=connectingconnectingConnect ho raha hai
realtime=disconnecteddisconnectedManual refresh karo

WhatsApp Templates

Connectivity mein 2 event types ke liye templates hain:

Event TypeTrigger
offline_detectedUser offline ho gaya
recovered_onlineUser 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 status

Example 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.