اتصل

بناء مجموعة مراقبة لمزود خدمة الإنترنت على Proxmox

الصفحة الرئيسية / مدونة

8 دقيقة قراءة
ZILL E ALIأبريل 18, 2026الدروس

يجب أن يبدو مكدس مراقبة موثوق لمزود خدمة الإنترنت على مضيفات Proxmox متشابهًا في كل نقطة انتشار (POP) تقوم بإنشائها.

كل نقطة انتشار تحصل على نفس بنية المراقبة، لأن أسوأ وقت لتصميم المراقبة هو أثناء الانقطاع. هذا هو المكدس، والحجم، والتنبيهات التي تُطلق فعليًا على شيء حقيقي.

مضيفات Proxmox لمكدس مراقبة مزود خدمة الإنترنت

المكوّن الدور حجم الحاوية
LibreNMS استطلاع SNMP، جرد الأجهزة، التنبيه 4 vCPU، 8 جيجابايت RAM، 100 جيجابايت
Grafana لوحات معلومات لشاشات مركز عمليات الشبكة (NOC) والإدارة 2 vCPU، 2 جيجابايت RAM، 20 جيجابايت
SmokePing خطوط أساس للكمون وفقدان الحزم 1 vCPU، 1 جيجابايت RAM، 20 جيجابايت
Uptime Kuma فحوصات الخدمات العامة وصفحة الحالة 1 vCPU، 1 جيجابايت RAM، 10 جيجابايت

جميع الأربعة تعمل كحاويات LXC غير متميزة على عقدة Proxmox VE واحدة. عند حوالي 800 جهاز مراقبة، تكون العقدة قريبة من 6٪ من وحدة المعالجة المركزية — القيد هو I\/O القرص من عمليات كتابة RRD، وليس الحوسبة. ضع الـ LibreNMS الحاوية على SSD.

ISP monitoring stack Proxmox hosts: VE node running LibreNMS, Grafana, SmokePing and Uptime Kuma containers polling the network over SNMP v3

ترتيب البناء لتجنب إعادة العمل

  1. مضيف Proxmox: تخزين منفصل للحاويات والنسخ الاحتياطية، ZFS إذا كان لديك الذاكرة الكافية، وشبكة VLAN إدارية يمكن الوصول إليها عندما لا يكون الشبكة الموجهة للعميل متاحة.
  2. LibreNMS أولاً, مع SNMP v3 (مصادقة + خصوصية) — سلاسل المجتمع v2c على حافة عامة هي مشكلة تنتظر الحدوث.
  3. SmokePing تشير إلى البوابات العليا الخاصة بك، مرساة عامة مثل 1.1.1.1، وكل موجه برج.
  4. Grafana أخيرًا، القراءة من LibreNMS. لا تقم بإنشاء لوحات معلومات قبل أن تعرف ما الذي يتعطل.

SNMP على RouterOS

\/snmp community\nadd name=nms-v3 authentication-protocol=SHA1 encryption-protocol=AES \\ authentication-password= encryption-password= \\ security=private addresses=10.60.0.0\/24\n\n\/snmp\nset enabled=yes contact="[email protected]" location="POP-A"

تقييد العناوين إلى شبكة المراقبة الفرعية هو الفرق بين المراقبة وثغرة كشف المعلومات.

أخطاء استطلاع SNMP التي تشوه رسوماتك

نصف الشكاوى “LibreNMS يكذب عليّ” التي أتلقاها تتبع إلى أحد هذه الأسباب، وليس خطأ في LibreNMS:

  • ترك ifHighSpeed غير مضبوط على أي شيء فوق 1 جيجابت في الثانية. يعود LibreNMS إلى عداد ifSpeed 32‑بت، الذي يصل إلى حد أقصى للرياضيات عند 4.29 جيجابت في الثانية وينتج نسبًا خاطئة بصمت فوق ذلك. تأكد من أن الواجهات عالية السعة تُبلغ عن ifHighSpeed بالميغابت في الثانية، وهو ما يفعله RouterOS بشكل صحيح افتراضيًا على منافذ SFP28\/QSFP – عادةً يأتي الخطأ من تجاوز MIB مخصص قديم، وليس من RouterOS نفسه.
  • الاستطلاع أسرع من 60 ثانية على مستوى الموقع “للتأكد.” على بضع مئات من الأجهزة يتحول المستطلع نفسه إلى عنق الزجاجة وتبدأ في فقدان الاستطلاعات تحت الحمل – مما يسبب تنبيهات خاطئة بانقطاع الأجهزة. الاستطلاع كل خمس دقائق يكفي لتتبع السعة؛ استخدم SmokePing، وليس استطلاع SNMP، للحصول على دقة الكمون التي تريدها فعليًا.
  • مجتمع SNMP واحد لكل جهاز. Fine for a lab, not for 28 sites – if one router’s community leaks, you are rotating credentials everywhere at once instead of on one device. Scope community/v3 users per site or per device tier.
  • Trusting default RouterOS SNMP OIDs for queue stats. Simple queues report differently from queue trees in SNMP. If PCQ or HTB is doing the real shaping, poll the queue tree OIDs directly rather than assuming the simple-queue graph reflects actual throughput.

Adding flow visibility with RouterOS traffic-flow

SNMP tells you how full an interface is. It does not tell you which subscriber, protocol, or destination is filling it – that is what NetFlow/IPFIX is for, and RouterOS exports it natively without extra licensing:

/traffic-flow set enabled=yes interfaces=all cache-entries=256k active-flow-timeout=30s /traffic-flow target add address=10.60.0.5 port=2055 version=9 v9-template-refresh=20 v9-template-timeout=30m

Point that at a flow collector (nfdump, or LibreNMS’s own flow support if you enable the module) and keep it on the same monitoring VLAN the SNMP community is scoped to – a flow export is itself traffic metadata worth protecting. This is what actually answers “why is uplink utilisation suddenly at 90%” during an incident instead of just confirming that it is.

Alerts worth waking up for

Most default alert sets are noise. These are the rules that earn their place:

  • Device down for 3 polls — not 1. A single missed poll is usually the poller, not the device.
  • Interface utilisation > 80% for 15 minutes — capacity planning signal, not an emergency page.
  • Uplink packet loss > 2% for 5 minutes — this is the one that catches upstream problems before the phones ring.
  • PPPoE session count drops > 20% in 10 minutes — a tower or BNG problem, visible before individual complaints.
  • Optical RX power drift > 3 dB from baseline — a splice or connector degrading; fix it in daylight rather than at 2 am.
  • Proxmox host disk > 85% — because the monitoring dying silently is the worst failure of all.

Route them by severity: chat for informational, phone call only for the ones that mean customers are offline.

Grafana panels worth building on day one

An empty Grafana instance is worse than no Grafana – it invites someone to build a dozen panels nobody reads. Start with five that earn a daily glance:

  1. Top 10 interfaces by utilisation, sorted descending, refreshed every minute – the single panel that answers “is anything close to saturated right now.”
  2. SmokePing latency heatmap per upstream – a slow creep here predicts a support-ticket spike before it happens.
  3. PPPoE active session count over 24 hours, per BNG – a flat line at the wrong time of day is as informative as a drop.
  4. Optical RX power per ONU/OLT port, trended over 30 days – this is the panel that turns the alert threshold in the next section from a guess into a baseline.
  5. Proxmox host resource panel – CPU, RAM, and disk I/O for the node running the monitoring stack itself, because a monitoring stack that cannot see its own host failing is not finished.

Retention and backups

RRD data compacts on its own; the database does not. Keep 90 days of syslog and eventlog, and back up the LibreNMS database plus /opt/librenms/config.php nightly to a different physical box. Snapshot the containers weekly from Proxmox.

Test a restore once. A backup you have never restored is a belief, not a backup.

What this stack does not replace

Worth saying plainly: LibreNMS, Grafana, SmokePing, and Uptime Kuma answer “is something wrong and roughly where” – they are not a ticketing system, an escalation chain, or a root-cause database. Pair this with:

  • A real ticketing/escalation path, even a simple one, so an alert in chat actually becomes an owned task with a timestamp – “someone saw it in the channel” is not the same as “someone is working it.”
  • A change log separate from monitoring, so when a graph shifts at 3pm, the first question – “did someone change something?” – has a fast answer instead of starting an investigation from zero.
  • Vendor support contacts and SLAs for anything this stack flags but cannot fix itself, like upstream packet loss on a transit link that is not yours to touch.

A monitoring stack earns its keep by shortening the gap between “something broke” and “someone who can fix it knows exactly what broke.” Everything in this guide is in service of that one gap – nothing here matters if the alert fires into a channel nobody is watching at 2 am.

Multi-POP visibility: one LibreNMS instance or one per site?

One central LibreNMS instance polling every POP over a site-to-site tunnel works fine up to roughly a dozen sites, as long as the tunnels themselves are reliable – the moment a WAN link to one POP flaps, every device behind it reports down at once, which is correct but noisy. Past that, two patterns actually hold up:

  • Regional LibreNMS instances (one per metro or per upstream provider), each feeding a shared Grafana that reads from all of them via multiple data sources. This isolates a WAN flap to one instance’s alerting and keeps the blast radius of any single LibreNMS outage small.
  • A lightweight local poller per POP (a small LXC running just SmokePing and a distributed poller agent) reporting back to one central LibreNMS, so latency/loss detection survives even if the backhaul to the central instance briefly drops – the local poller buffers and catches up.

Neither pattern is worth building before you actually have the multi-site problem. A single LibreNMS instance covering every POP from one Proxmox host, per the build order above, is the right starting point – this is the upgrade path once that instance is itself page one of the dashboard every morning.

Start smaller than this

If you are deploying your first POP, run LibreNMS and SmokePing only. Add Grafana when someone asks for a wall display, and Uptime Kuma when you want a public status page. A monitoring stack you understand end to end beats a bigger one you inherited and never verified.

كتب بواسطة

ZILL E ALI

مهندس شبكات معتمد بشهادتي MTCNA و MTCRE ومتخصص في بنية تحتية لمزودي خدمة الإنترنت، ومؤسس Developer Zon. يكتب هنا عن MikroTik و Cisco وبنية تحتية لمزودي الخدمة، وأحيانًا عن سجلات البناء.

اترك ردًا

يستخدم هذا الموقع Akismet لتقليل البريد المزعج. تعرف على كيفية معالجة بيانات تعليقك.