# Sheba OLT Monitoring System
**Enterprise Multi-Vendor OLT & Optical Network Management Platform**

Built with **Core PHP 8.2 (OOP + PDO) + HTML5 + Bootstrap 5 + JavaScript + MySQL**.

---

## Supported OLT Vendors & Technologies
- **VSOL**: EPON & GPON (e.g. V1600G1-B, V1600D)
- **BDCOM**: EPON & GPON (e.g. P3608B, GP3600) with SNMP + Telnet CLI Fallback
- **C-Data**: EPON & GPON (e.g. FD1608GS, FD1204SN)
- **HSGQ**: EPON & GPON (e.g. HSGQ-E08, HSGQ-G16)

---

## Core Features
1. **Multi-Vendor Adapter Architecture**:
   `VendorInterface.php`, `VsolAdapter.php`, `BdcomAdapter.php`, `CdataAdapter.php`, `HsgqAdapter.php`. Standardized methods for system info, PON interfaces, ONU inventory, optical power diagnostics, CPU, memory, temperature, fan and power supply state.
2. **Dynamic MIB / OID Profile Engine**:
   All OIDs stored in MySQL (`oid_profiles`). Easily import new MIB JSON files without touching PHP source code.
3. **SNMP + Telnet Fallback Engine**:
   `SnmpClient.php` & `TelnetClient.php` supporting CLI command parsing for vendors with incomplete SNMP MIB coverage (e.g. BDCOM optical diagnostics).
4. **NOC Alarm Engine**:
   Triggers for Fiber Cut / Loss of Signal (LOS), Dying Gasp power loss, High CPU (>80%), High Temperature (>65°C), and Low Optical Margin (<-27 dBm). Supports Acknowledge and Resolve workflow with Telegram Bot API and SMS webhook notifications.
5. **cPanel Cron Queue System**:
   `cron/scheduler.php`, `cron/worker.php`, `cron/alarm-worker.php`, `cron/cleanup.php`.
6. **REST API**:
   `/api/v1/dashboard`, `/api/v1/olt`, `/api/v1/onu`, `/api/v1/alarms`, `/api/v1/mibs`, `/api/v1/settings`.
