diff --git a/README.md b/README.md index 8c02b0d..4a1c172 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ + +[English](README.md) | [简体中文](docs/i18n/zh-CN/README.md) | [हिन्दी](docs/i18n/hi-IN/README.md) | [Español (España)](docs/i18n/es-ES/README.md) | [Español (Latinoamérica)](docs/i18n/es-419/README.md) | [العربية](docs/i18n/ar-SA/README.md) + + # plugin_fabric A Cacti 1.2 plugin that brings InfiniBand port counters, link width and speed, and congestion indicators into Cacti as ordinary devices, data sources, and graphs. A link that trained at 1X instead of 4X then shows up as a graph and a Thold alert next to the host it serves, under Cacti's permissions, with Maint able to suppress it. @@ -5,7 +9,7 @@ A Cacti 1.2 plugin that brings InfiniBand port counters, link width and speed, a > **Status: in development, no release yet.** Milestone 2 (foundation) is merged on `main`, and milestone 3 (Cacti objects and alerting) is in review. Milestone 1 confirmed the design against documentation and upstream source (PR #71); the results, with sources, are in [docs/research/](docs/research/). Milestone 2 adds the plugin foundation: > > - install, upgrade, uninstall, and the PHP 8.2 guard -> - two realms and the settings +> - View, Operator and Admin realms, and settings > - fabric records > - the read-only command boundary for `perfquery`, `ibnetdiscover`, and `iblinkinfo` > - inventory by GUID, with identity conflicts and re-link proposals @@ -22,6 +26,28 @@ A Cacti 1.2 plugin that brings InfiniBand port counters, link width and speed, a > > A fabric can be swept only from the main poller until remote data collectors are supported in phase 3. It has been tested against fake tools and the ibsim fabric simulator, never on an InfiniBand fabric. Checks that need a fabric remain open in each research page's live-checks table. This project is not affiliated with the Cacti project. +## Access roles + +| Realm | Access | +| --- | --- | +| Fabric View | Existing monitoring pages. | +| Fabric Operator | Monitoring plus the Operations page and personal triage acknowledgments. | +| Fabric Admin | Operator access plus the existing configuration and administrative actions. | + +After copying upgrade files, open the Plugins page as an administrator to register +the new realm. Assign the Operator realm explicitly under **Configuration > Users** or user groups. +Upgrades retain the existing View and Admin realm IDs and grants. Admin access +inherits Operator access, and Operator access inherits View access on each request; +this does not add stored grants to users or groups. Plugin settings also require +Fabric Admin access in addition to Cacti's Settings permission. + +Cacti device permissions still limit the rows and actions available to each user; unmapped objects require an administrator. +Credentials, configuration, mapping, deletion and other administrative changes +remain in the administrative pages. Acknowledgments last only in the current +user's session, for at most one hour and only while the same observation remains +fresh. New or changed observations invalidate them. They never mark a failed +measurement healthy or suppress alerts. + ## Why A degraded InfiniBand link still passes traffic. A 4X link that retrains at 1X leaves the port "active", and the host's SNMP interface graphs look normal, but tightly coupled jobs slow down. The evidence is in the fabric: each port reports its active, enabled, and supported width and speed, plus error and congestion counters. Reading it takes the InfiniBand diagnostic tools or a fabric manager API. Run by hand, they leave three gaps: diff --git a/docs/PLAN.md b/docs/PLAN.md index b2abc23..04dc003 100644 --- a/docs/PLAN.md +++ b/docs/PLAN.md @@ -351,7 +351,7 @@ Plugin code is object-oriented wherever Cacti's plugin contract allows it. Cacti - Classes live in `lib/*.php` under the `Somethingwithproof\Fabric` namespace (the plugin is not a Cacti project; the namespace follows the repository owner, as the sibling plugins do), one class per file, loaded by a small `spl_autoload_register()` loader registered only after the PHP version check. No Composer runtime dependency is added. Files stay at depth 2 or less because the translation tooling scans only that deep. - Settings use the `config_settings` hook. Logging uses `cacti_log()` with a `FABRIC` tag. Strings use the `fabric` text domain with a `locales/` directory and POT file. -- Realms: two, "Fabric View" and "Fabric Admin". +- Realms: three, "Fabric View", "Fabric Operator" and "Fabric Admin". **Planned classes.** Names are illustrative; milestone 2 settles the set. diff --git a/docs/i18n/ar-SA/README.md b/docs/i18n/ar-SA/README.md new file mode 100644 index 0000000..8b82949 --- /dev/null +++ b/docs/i18n/ar-SA/README.md @@ -0,0 +1,122 @@ + + + +[English](../../../README.md) | [简体中文](../zh-CN/README.md) | [हिन्दी](../hi-IN/README.md) | [Español (España)](../es-ES/README.md) | [Español (Latinoamérica)](../es-419/README.md) | [العربية](README.md) + + + +# plugin_fabric + +إضافة لـ Cacti 1.2 تُدخل عدّادات منافذ InfiniBand وعرض الروابط وسرعتها ومؤشرات الازدحام إلى Cacti كأجهزة ومصادر بيانات ورسوم عادية. يظهر الرابط الذي تفاوض على 1X بدلًا من 4X كرسم وتنبيه Thold بجانب المضيف الذي يخدمه، ضمن أذونات Cacti ومع إمكانية كبح التنبيه بواسطة Maint. + +> **الحالة: قيد التطوير، لم يصدر إصدار بعد.** دُمجت المرحلة المرحلية 2 (الأساس) في `main`، وتخضع المرحلة 3 (كائنات Cacti والتنبيهات) للمراجعة. أكدت المرحلة 1 التصميم بمقارنته بالوثائق والشيفرة الأصلية (PR #71)؛ توجد النتائج ومصادرها في [docs/research/](../../research). تضيف المرحلة 2 أساس الإضافة: +> +> - التثبيت والترقية وإلغاء التثبيت والتحقق من PHP 8.2 +> - نطاقات أذونات View وOperator وAdmin والإعدادات +> - سجلات شبكات الربط +> - حدود أوامر للقراءة فقط لأدوات `perfquery` و`ibnetdiscover` و`iblinkinfo` +> - مخزون حسب GUID مع تعارضات الهوية واقتراحات إعادة الربط +> - حالة الروابط وذاكرة مؤقتة لفحوص العدّادات +> - صفحات المخزون والإدارة والحالة الصحية +> +> تضيف المرحلة 3 كائنات Cacti: +> +> - قوالب أجهزة وبيانات ورسوم بصيغة XML لقوالب Cacti، واستعلام البيانات «Fabric Port» +> - ربط عقدة بجهاز Cacti، أو إنشاؤه بعد التأكيد ([ADR 0010](../../decisions/0010-one-device-per-node.md)) +> - مصادر بيانات عدّادات للرسوم، ومصادر GAUGE لحالة الروابط ومعدلاتها لاستخدام Thold ([ADR 0011](../../decisions/0011-derive-counters-and-gauge-alert-values.md)) +> - معالجة الانقطاعات وقراءة العدّادات الأساسية المشبعة كقيم غير معروفة ([ADR 0012](../../decisions/0012-saturated-basic-counters-read-as-unknown.md))، وصلاحية العدّادات وروابط الرسوم في صفحة المنافذ، وترتيب الازدحام +> - اختبار شامل باستخدام Thold v1.8.2 وMaint v1.3 دون تعديل، ومهمة CI تشغّل أدوات التشخيص الحقيقية على شبكة ربط محاكاة +> +> لا يمكن فحص شبكة الربط إلا من المُستطلِع الرئيسي حتى تُدعم جامعات البيانات البعيدة في المرحلة 3. اختُبرت باستخدام أدوات وهمية ومحاكي شبكات الربط ibsim، ولم تُختبر على شبكة InfiniBand حقيقية. تظل الفحوص التي تحتاج إلى شبكة فعلية معلّقة في جدول الفحوص المباشرة لكل صفحة بحث. هذا المشروع غير تابع لمشروع Cacti. + + +## أدوار الوصول + +| نطاق الأذونات | الوصول | +| --- | --- | +| Fabric View | صفحات المراقبة الحالية. | +| Fabric Operator | المراقبة وصفحة العمليات والإقرارات الشخصية أثناء التحقيق. | +| Fabric Admin | وصول المشغّل مع الإعدادات والإجراءات الإدارية الحالية. | + +بعد نسخ ملفات الترقية، افتح صفحة الإضافات بصفتك مسؤولًا لتسجيل نطاق الأذونات الجديد. امنح نطاق Operator صراحةً ضمن **الإعداد > المستخدمون** أو مجموعات المستخدمين. تحتفظ الترقيات بمعرّفات نطاقي View وAdmin ومنحهما الحالي. يرث Admin وصول Operator ويرث Operator وصول View في كل طلب؛ ولا يضيف ذلك منحًا مخزّنة للمستخدمين أو المجموعات. تتطلب إعدادات الإضافة أيضًا Fabric Admin بالإضافة إلى إذن الإعدادات في Cacti. + +تظل أذونات أجهزة Cacti تقيّد الصفوف والإجراءات المتاحة لكل مستخدم؛ وتتطلب الكائنات غير المرتبطة مسؤولًا. تبقى بيانات الاعتماد والإعدادات والربط والحذف والتغييرات الإدارية الأخرى في الصفحات الإدارية. لا تستمر الإقرارات إلا في جلسة المستخدم الحالي، لمدة ساعة على الأكثر وفقط ما دامت الملاحظة نفسها حديثة. تُبطلها الملاحظات الجديدة أو المعدّلة. ولا تجعل قياسًا فاشلًا سليمًا أو تكبح التنبيهات مطلقًا. + + +## الدافع + +يظل رابط InfiniBand المتدهور ينقل الحركة. الرابط 4X الذي يعيد التفاوض على 1X يترك المنفذ «نشطًا»، وتبدو رسوم واجهات SNMP للمضيف طبيعية، لكن المهام وثيقة الترابط تتباطأ. الدليل موجود في شبكة الربط: يبلغ كل منفذ عن العرض والسرعة النشطين والمفعّلين والمدعومين، إضافة إلى عدّادات الأخطاء والازدحام. تتطلب قراءتها أدوات تشخيص InfiniBand أو واجهة API لمدير شبكة الربط. يترك تشغيلها يدويًا ثلاث فجوات: + +- **لا يوجد تاريخ.** تعرض `perfquery` و`iblinkinfo` الحاضر، لذا لا يظهر رابط تدهور الأسبوع الماضي. +- **لا يوجد سياق جهاز.** منافذ شبكة الربط ليست كائنات Cacti، فلا يمكن رسم منفذ بجانب المضيف الذي يغذيه. +- **لا يوجد مسار إلى تنبيهات Cacti.** يعمل Thold وMaint على مصادر بيانات Cacti وأجهزته. + +تسد الإضافة هذه الفجوات بقراءة شبكة الربط عبر أدوات تشخيصها (ولاحقًا عبر UFM)، وتحديد العقد والمنافذ بواسطة GUID، ونشر العدّادات وحالة الروابط كمصادر بيانات Cacti. إنها تقرأ فقط: لا تعيد ضبط العدّادات ولا تغيّر حالة المنافذ مطلقًا. + + +## النطاق المخطط + +| المرحلة | النطاق | المعالم | +|---|---|---| +| 0، البحث | مصفوفة الإصدارات، تأكيد السلوك الأصلي، سلوك العدّادات على العتاد، نموذج الامتيازات، ميزانية MAD، واجهة UFM API | [M1](https://github.com/somethingwithproof/plugin_fabric/milestone/1) | +| 1، المراقبة | مخزون حسب GUID، أجهزة Cacti، استعلام المنافذ، مصادر بيانات العدّادات وحالة الروابط، تنبيهات Thold، كبح Maint، صفحة الحالة الصحية | [M2](https://github.com/somethingwithproof/plugin_fabric/milestone/2)، [M3](https://github.com/somethingwithproof/plugin_fabric/milestone/3)، [M4](https://github.com/somethingwithproof/plugin_fabric/milestone/4) | +| 2، UFM | واجهة خلفية UFM REST للقراءة فقط، معالجة بيانات الاعتماد، استمرارية الهوية بين الواجهات الخلفية | [M5](https://github.com/somethingwithproof/plugin_fabric/milestone/5) | +| 3، البعيد | جامعات بيانات بعيدة، نسخ متماثل، إجراءات `remote_agent`، فحوص مجزّأة للشبكات الكبيرة | [M6](https://github.com/somethingwithproof/plugin_fabric/milestone/6) | + +خارج النطاق: تغيير حالة شبكة الربط، واستبدال مدير شبكة الربط أو الشبكة الفرعية، ومحرك تنبيه خاص بالإضافة، وخدمة خلفية أو بروتوكول شبكة مخصص، وشبكات Ethernet أو RoCE (قيد البحث). + + +## أهداف التوافق + +| المكوّن | الهدف | +|---|---| +| Cacti | 1.2.31 أو أحدث، دون ترقيعات للنواة | +| PHP | 8.2 أو أحدث؛ يظل `setup.php` قابلًا للتحليل على 8.0 لكي يُرفض وقت التشغيل غير المدعوم بدل تعطيل واجهة Cacti | +| أدوات InfiniBand | infiniband-diags من rdma-core؛ فُحصت تنسيقات الخرج مقابل مصدر v66.0 | +| UFM | واجهة UFM Enterprise REST API، المرحلة 2؛ مصفوفة الإصدارات من مخرجات المعلم 1 | +| Thold وMaint | لا يتطلبان تغييرات | + +أبقِ مهلة البرامج النصية في Cacti عند القيمة الافتراضية 25 ثانية أو أكثر. يقيّد الفحص الذي يبدأ بقراءة استعلام بيانات تشغيل الأدوات بتلك المهلة ناقص خمس ثوانٍ، لحجز وقت لقراءة الذاكرة المؤقتة والرد. عند انتهاء الوقت، يعيد الاستعلام آخر عينة حديثة أو قيمة غير معروفة؛ وتعيد الدورة التالية محاولة الفحص. ينطبق هذا الحد على مُستطلِع PHP أيضًا. لا تترك مهلة خمس ثوانٍ أو أقل وقتًا لبدء أداة. + + +## التصميم + +- [docs/PLAN.md](../../PLAN.md) هو الخطة الكاملة: البنية، والحقائق الأصلية التي تعتمد عليها مع مصادرها والافتراضات التي تنتظر التأكيد، ونموذج الهوية، وقواعد العدّادات وحالة الروابط، وحدود الأمان، وحسابات الأداء، والاختبارات والمخاطر. +- يحتوي [docs/decisions/](../../decisions) على سجلات قرارات البنية المتخذة بالفعل. +- يربط [docs/REQUIREMENTS.md](../../REQUIREMENTS.md) كل معرّف متطلب بمشكلته. + +```mermaid +flowchart LR + F[InfiniBand fabric] --> T[infiniband-diags tools, read-only] + F --> U[UFM REST, phase 2] + T --> S[Sweep job on the Cacti poller] + U --> S + S --> C[(Sample cache)] + C --> SS[Script server and data query] + SS --> R[RRD files and Cacti graphs] + SS -->|poller_output| TH[Thold and Maint] + R --> P[Cacti graph permissions] +``` + + +## تتبّع العمل + +- تتبع **المعالم** معالم الخطة. لكل منها مشكلة ملحمية تسرد مشكلاتها الفرعية وأدلة اكتمالها. +- تُصنَّف **المشكلات** بالوسوم `type: requirement` و`type: research` و`type: decision` و`type: epic`. تتضمن مشكلات المتطلبات متطلبات مرقمة قابلة للاختبار (`REQ-AREA-NNN`) ومعايير قبول. +- تشمل **الوسوم** أيضًا `area:` و`phase:` و`priority:` و`status:`. راجع [CONTRIBUTING.md](../../../CONTRIBUTING.md#labels). +- تعرض [لوحة المشروع](https://github.com/users/somethingwithproof/projects/8) كل المشكلات عبر المعالم. + + +## المساهمة + +اقرأ [CONTRIBUTING.md](../../../CONTRIBUTING.md). تتطلب عمليات الإيداع إقرار DCO. تجري مناقشة التصميم في المشكلات؛ وتحمل القرارات المفتوحة وسم `type: decision`. + + +## الأمان + +أبلغ عن الثغرات على نحو خاص؛ راجع [SECURITY.md](../../../SECURITY.md). + + +## الترخيص + +رخصة GNU العمومية العامة v2.0، وهي رخصة Cacti وإضافاته نفسها. راجع [LICENSE](../../../LICENSE). diff --git a/docs/i18n/es-419/README.md b/docs/i18n/es-419/README.md new file mode 100644 index 0000000..bd03a7e --- /dev/null +++ b/docs/i18n/es-419/README.md @@ -0,0 +1,122 @@ + + + +[English](../../../README.md) | [简体中文](../zh-CN/README.md) | [हिन्दी](../hi-IN/README.md) | [Español (España)](../es-ES/README.md) | [Español (Latinoamérica)](README.md) | [العربية](../ar-SA/README.md) + + + +# plugin_fabric + +Un complemento para Cacti 1.2 que incorpora contadores de puertos InfiniBand, anchura y velocidad de enlaces e indicadores de congestión como dispositivos, fuentes de datos y gráficos normales de Cacti. Un enlace que negoció 1X en lugar de 4X aparece así como un gráfico y una alerta Thold junto al host al que sirve, bajo los permisos de Cacti y con posibilidad de supresión mediante Maint. + +> **Estado: en desarrollo, todavía sin publicación.** El hito 2 (base) está integrado en `main` y el hito 3 (objetos Cacti y alertas) está en revisión. El hito 1 contrastó el diseño con la documentación y el código original (PR #71); los resultados y sus fuentes están en [docs/research/](../../research). El hito 2 añade la base del complemento: +> +> - instalación, actualización, desinstalación y comprobación de PHP 8.2 +> - permisos View, Operator y Admin, y ajustes +> - registros de redes InfiniBand +> - límites de comandos de solo lectura para `perfquery`, `ibnetdiscover` e `iblinkinfo` +> - inventario por GUID, con conflictos de identidad y propuestas de reasociación +> - estado de enlaces y caché de consultas de contadores +> - páginas de inventario, administración y estado +> +> El hito 3 añade los objetos Cacti: +> +> - plantillas de dispositivos, datos y gráficos distribuidas como XML de plantillas Cacti, y la consulta de datos «Fabric Port» +> - asociación de un nodo a un dispositivo Cacti, o creación de uno tras confirmación ([ADR 0010](../../decisions/0010-one-device-per-node.md)) +> - fuentes de datos de contadores para gráficos y fuentes GAUGE de estado y velocidad de enlaces para Thold ([ADR 0011](../../decisions/0011-derive-counters-and-gauge-alert-values.md)) +> - gestión de discontinuidades y lectura de contadores básicos saturados como desconocidos ([ADR 0012](../../decisions/0012-saturated-basic-counters-read-as-unknown.md)), validez de contadores y enlaces a gráficos en la página de puertos, y clasificación de congestión +> - una prueba integral con Thold v1.8.2 y Maint v1.3 sin modificar, y un trabajo de CI que ejecuta las herramientas reales de diagnóstico sobre una red simulada +> +> Solo el sondeador principal puede consultar una red hasta que se admitan recolectores remotos en la fase 3. Se ha probado con herramientas simuladas y con el simulador de redes ibsim, nunca en una red InfiniBand. Las comprobaciones que requieren una red real siguen pendientes en la tabla de pruebas en vivo de cada página de investigación. Este proyecto no está afiliado al proyecto Cacti. + + +## Roles de acceso + +| Permiso | Acceso | +| --- | --- | +| Fabric View | Páginas de supervisión existentes. | +| Fabric Operator | Supervisión, página de operaciones y acuses personales de investigación. | +| Fabric Admin | Acceso de operador más configuración y acciones administrativas existentes. | + +Después de copiar los archivos de actualización, abra la página Complementos como administrador para registrar el nuevo permiso. Asigne expresamente Operator en **Configuración > Usuarios** o en los grupos de usuarios. Las actualizaciones conservan los identificadores y las concesiones de View y Admin. En cada petición, Admin hereda el acceso Operator y Operator hereda View; esto no añade concesiones almacenadas a usuarios ni grupos. Los ajustes del complemento también requieren Fabric Admin, además del permiso Ajustes de Cacti. + +Los permisos de dispositivos de Cacti siguen limitando las filas y acciones disponibles para cada usuario; los objetos sin asociación requieren un administrador. Credenciales, configuración, asociaciones, eliminación y otros cambios administrativos permanecen en las páginas administrativas. Los acuses solo duran en la sesión del usuario actual, como máximo una hora y mientras la misma observación siga vigente. Las observaciones nuevas o modificadas los invalidan. Nunca marcan como correcta una medición fallida ni suprimen alertas. + + +## Motivo + +Un enlace InfiniBand degradado sigue transportando tráfico. Un enlace 4X que renegocia a 1X deja el puerto «activo», y los gráficos SNMP de interfaces del host parecen normales, pero los trabajos estrechamente acoplados se ralentizan. La evidencia está en la red: cada puerto informa de anchura y velocidad activas, habilitadas y admitidas, además de contadores de errores y congestión. Leerlos requiere las herramientas de diagnóstico InfiniBand o una API de gestión de red. Su ejecución manual deja tres carencias: + +- **Sin historial.** `perfquery` e `iblinkinfo` muestran el presente, por lo que un enlace degradado la semana anterior resulta invisible. +- **Sin contexto de dispositivo.** Los puertos de la red no son objetos Cacti, de modo que no se puede representar un puerto junto al host al que sirve. +- **Sin integración con las alertas de Cacti.** Thold y Maint trabajan con fuentes de datos y dispositivos Cacti. + +El complemento cubre esas carencias leyendo la red mediante sus herramientas de diagnóstico (y posteriormente mediante UFM), identificando nodos y puertos por GUID y publicando contadores y estados de enlaces como fuentes de datos Cacti. Solo lee: nunca reinicia contadores ni cambia el estado de los puertos. + + +## Alcance previsto + +| Fase | Alcance | Hitos | +|---|---|---| +| 0, investigación | Matriz de versiones, confirmación del comportamiento original, comportamiento de contadores en hardware, modelo de privilegios, presupuesto MAD, API UFM | [M1](https://github.com/somethingwithproof/plugin_fabric/milestone/1) | +| 1, observación | Inventario por GUID, dispositivos Cacti, consulta de puertos, fuentes de contadores y estado de enlaces, alertas Thold, supresión Maint, página de estado | [M2](https://github.com/somethingwithproof/plugin_fabric/milestone/2), [M3](https://github.com/somethingwithproof/plugin_fabric/milestone/3), [M4](https://github.com/somethingwithproof/plugin_fabric/milestone/4) | +| 2, UFM | Motor REST UFM de solo lectura, gestión de credenciales, continuidad de identidad entre motores | [M5](https://github.com/somethingwithproof/plugin_fabric/milestone/5) | +| 3, remoto | Recolectores remotos, replicación, acciones `remote_agent`, consultas divididas para redes grandes | [M6](https://github.com/somethingwithproof/plugin_fabric/milestone/6) | + +Fuera de alcance: modificar el estado de la red, sustituir un gestor de red o de subred, un motor de alertas propio, un servicio o protocolo de red personalizado y redes Ethernet o RoCE (en investigación). + + +## Objetivos de compatibilidad + +| Componente | Objetivo | +|---|---| +| Cacti | 1.2.31 o posterior, sin parches del núcleo | +| PHP | 8.2 o posterior; `setup.php` sigue siendo interpretable en 8.0 para rechazar un entorno no compatible sin romper la interfaz de Cacti | +| Herramientas InfiniBand | infiniband-diags de rdma-core; formatos de salida contrastados con el código v66.0 | +| UFM | API REST UFM Enterprise, fase 2; la matriz de versiones es una entrega del hito 1 | +| Thold, Maint | No requieren cambios | + +Mantenga el tiempo de espera de scripts de Cacti en su valor predeterminado de 25 segundos o más. Una consulta iniciada por una lectura de datos limita la ejecución de herramientas a ese tiempo menos cinco segundos, reservando tiempo para leer la caché y responder. Cuando se agota el presupuesto, la consulta devuelve la última muestra vigente o desconocido; el siguiente ciclo reintenta la consulta. Este límite también se aplica al sondeador PHP. Un tiempo de espera de cinco segundos o menos no deja tiempo para iniciar una herramienta. + + +## Diseño + +- [docs/PLAN.md](../../PLAN.md) contiene el plan completo: arquitectura, hechos del software original de los que depende (con fuentes) y supuestos pendientes de confirmar, modelo de identidad, reglas de contadores y estados de enlaces, límites de seguridad, cálculos de rendimiento, pruebas y riesgos. +- [docs/decisions/](../../decisions) contiene los registros de decisiones de arquitectura ya tomadas. +- [docs/REQUIREMENTS.md](../../REQUIREMENTS.md) relaciona cada identificador de requisito con su incidencia. + +```mermaid +flowchart LR + F[InfiniBand fabric] --> T[infiniband-diags tools, read-only] + F --> U[UFM REST, phase 2] + T --> S[Sweep job on the Cacti poller] + U --> S + S --> C[(Sample cache)] + C --> SS[Script server and data query] + SS --> R[RRD files and Cacti graphs] + SS -->|poller_output| TH[Thold and Maint] + R --> P[Cacti graph permissions] +``` + + +## Seguimiento del trabajo + +- Los **hitos** siguen los del plan. Cada uno tiene una incidencia épica con sus subincidencias y pruebas de finalización. +- Las **incidencias** se clasifican mediante `type: requirement`, `type: research`, `type: decision` y `type: epic`. Los requisitos indican condiciones numeradas y comprobables (`REQ-AREA-NNN`) y criterios de aceptación. +- Las **etiquetas** incluyen también `area:`, `phase:`, `priority:` y `status:`. Consulte [CONTRIBUTING.md](../../../CONTRIBUTING.md#labels). +- El [tablero del proyecto](https://github.com/users/somethingwithproof/projects/8) muestra todas las incidencias de los distintos hitos. + + +## Contribuir + +Lea [CONTRIBUTING.md](../../../CONTRIBUTING.md). Los commits requieren la firma DCO. El diseño se debate en las incidencias; las decisiones abiertas llevan la etiqueta `type: decision`. + + +## Seguridad + +Comunique las vulnerabilidades de forma privada; consulte [SECURITY.md](../../../SECURITY.md). + + +## Licencia + +Licencia Pública General GNU v2.0, la misma que Cacti y sus complementos. Consulte [LICENSE](../../../LICENSE). diff --git a/docs/i18n/es-ES/README.md b/docs/i18n/es-ES/README.md new file mode 100644 index 0000000..49576be --- /dev/null +++ b/docs/i18n/es-ES/README.md @@ -0,0 +1,122 @@ + + + +[English](../../../README.md) | [简体中文](../zh-CN/README.md) | [हिन्दी](../hi-IN/README.md) | [Español (España)](README.md) | [Español (Latinoamérica)](../es-419/README.md) | [العربية](../ar-SA/README.md) + + + +# plugin_fabric + +Un complemento para Cacti 1.2 que incorpora contadores de puertos InfiniBand, anchura y velocidad de enlaces e indicadores de congestión como dispositivos, fuentes de datos y gráficos normales de Cacti. Un enlace que negoció 1X en lugar de 4X aparece así como un gráfico y una alerta Thold junto al host al que sirve, bajo los permisos de Cacti y con posibilidad de supresión mediante Maint. + +> **Estado: en desarrollo, todavía sin publicación.** El hito 2 (base) está integrado en `main` y el hito 3 (objetos Cacti y alertas) está en revisión. El hito 1 contrastó el diseño con la documentación y el código original (PR #71); los resultados y sus fuentes están en [docs/research/](../../research). El hito 2 añade la base del complemento: +> +> - instalación, actualización, desinstalación y comprobación de PHP 8.2 +> - permisos View, Operator y Admin, y ajustes +> - registros de redes InfiniBand +> - límites de comandos de solo lectura para `perfquery`, `ibnetdiscover` e `iblinkinfo` +> - inventario por GUID, con conflictos de identidad y propuestas de reasociación +> - estado de enlaces y caché de consultas de contadores +> - páginas de inventario, administración y estado +> +> El hito 3 añade los objetos Cacti: +> +> - plantillas de dispositivos, datos y gráficos distribuidas como XML de plantillas Cacti, y la consulta de datos «Fabric Port» +> - asociación de un nodo a un dispositivo Cacti, o creación de uno tras confirmación ([ADR 0010](../../decisions/0010-one-device-per-node.md)) +> - fuentes de datos de contadores para gráficos y fuentes GAUGE de estado y velocidad de enlaces para Thold ([ADR 0011](../../decisions/0011-derive-counters-and-gauge-alert-values.md)) +> - gestión de discontinuidades y lectura de contadores básicos saturados como desconocidos ([ADR 0012](../../decisions/0012-saturated-basic-counters-read-as-unknown.md)), validez de contadores y enlaces a gráficos en la página de puertos, y clasificación de congestión +> - una prueba integral con Thold v1.8.2 y Maint v1.3 sin modificar, y un trabajo de CI que ejecuta las herramientas reales de diagnóstico sobre una red simulada +> +> Solo el sondeador principal puede consultar una red hasta que se admitan recolectores remotos en la fase 3. Se ha probado con herramientas simuladas y con el simulador de redes ibsim, nunca en una red InfiniBand. Las comprobaciones que requieren una red real siguen pendientes en la tabla de pruebas en vivo de cada página de investigación. Este proyecto no está afiliado al proyecto Cacti. + + +## Roles de acceso + +| Permiso | Acceso | +| --- | --- | +| Fabric View | Páginas de supervisión existentes. | +| Fabric Operator | Supervisión, página de operaciones y acuses personales de investigación. | +| Fabric Admin | Acceso de operador más configuración y acciones administrativas existentes. | + +Después de copiar los archivos de actualización, abra la página Complementos como administrador para registrar el nuevo permiso. Asigne expresamente Operator en **Configuración > Usuarios** o en los grupos de usuarios. Las actualizaciones conservan los identificadores y las concesiones de View y Admin. En cada petición, Admin hereda el acceso Operator y Operator hereda View; esto no añade concesiones almacenadas a usuarios ni grupos. Los ajustes del complemento también requieren Fabric Admin, además del permiso Ajustes de Cacti. + +Los permisos de dispositivos de Cacti siguen limitando las filas y acciones disponibles para cada usuario; los objetos sin asociación requieren un administrador. Credenciales, configuración, asociaciones, eliminación y otros cambios administrativos permanecen en las páginas administrativas. Los acuses solo duran en la sesión del usuario actual, como máximo una hora y mientras la misma observación siga vigente. Las observaciones nuevas o modificadas los invalidan. Nunca marcan como correcta una medición fallida ni suprimen alertas. + + +## Motivo + +Un enlace InfiniBand degradado sigue transportando tráfico. Un enlace 4X que renegocia a 1X deja el puerto «activo», y los gráficos SNMP de interfaces del host parecen normales, pero los trabajos estrechamente acoplados se ralentizan. La evidencia está en la red: cada puerto informa de anchura y velocidad activas, habilitadas y admitidas, además de contadores de errores y congestión. Leerlos requiere las herramientas de diagnóstico InfiniBand o una API de gestión de red. Su ejecución manual deja tres carencias: + +- **Sin historial.** `perfquery` e `iblinkinfo` muestran el presente, por lo que un enlace degradado la semana anterior resulta invisible. +- **Sin contexto de dispositivo.** Los puertos de la red no son objetos Cacti, de modo que no se puede representar un puerto junto al host al que sirve. +- **Sin integración con las alertas de Cacti.** Thold y Maint trabajan con fuentes de datos y dispositivos Cacti. + +El complemento cubre esas carencias leyendo la red mediante sus herramientas de diagnóstico (y posteriormente mediante UFM), identificando nodos y puertos por GUID y publicando contadores y estados de enlaces como fuentes de datos Cacti. Solo lee: nunca reinicia contadores ni cambia el estado de los puertos. + + +## Alcance previsto + +| Fase | Alcance | Hitos | +|---|---|---| +| 0, investigación | Matriz de versiones, confirmación del comportamiento original, comportamiento de contadores en hardware, modelo de privilegios, presupuesto MAD, API UFM | [M1](https://github.com/somethingwithproof/plugin_fabric/milestone/1) | +| 1, observación | Inventario por GUID, dispositivos Cacti, consulta de puertos, fuentes de contadores y estado de enlaces, alertas Thold, supresión Maint, página de estado | [M2](https://github.com/somethingwithproof/plugin_fabric/milestone/2), [M3](https://github.com/somethingwithproof/plugin_fabric/milestone/3), [M4](https://github.com/somethingwithproof/plugin_fabric/milestone/4) | +| 2, UFM | Motor REST UFM de solo lectura, gestión de credenciales, continuidad de identidad entre motores | [M5](https://github.com/somethingwithproof/plugin_fabric/milestone/5) | +| 3, remoto | Recolectores remotos, replicación, acciones `remote_agent`, consultas divididas para redes grandes | [M6](https://github.com/somethingwithproof/plugin_fabric/milestone/6) | + +Fuera de alcance: modificar el estado de la red, sustituir un gestor de red o de subred, un motor de alertas propio, un servicio o protocolo de red personalizado y redes Ethernet o RoCE (en investigación). + + +## Objetivos de compatibilidad + +| Componente | Objetivo | +|---|---| +| Cacti | 1.2.31 o posterior, sin parches del núcleo | +| PHP | 8.2 o posterior; `setup.php` sigue siendo interpretable en 8.0 para rechazar un entorno no compatible sin romper la interfaz de Cacti | +| Herramientas InfiniBand | infiniband-diags de rdma-core; formatos de salida contrastados con el código v66.0 | +| UFM | API REST UFM Enterprise, fase 2; la matriz de versiones es una entrega del hito 1 | +| Thold, Maint | No requieren cambios | + +Mantenga el tiempo de espera de scripts de Cacti en su valor predeterminado de 25 segundos o más. Una consulta iniciada por una lectura de datos limita la ejecución de herramientas a ese tiempo menos cinco segundos, reservando tiempo para leer la caché y responder. Cuando se agota el presupuesto, la consulta devuelve la última muestra vigente o desconocido; el siguiente ciclo reintenta la consulta. Este límite también se aplica al sondeador PHP. Un tiempo de espera de cinco segundos o menos no deja tiempo para iniciar una herramienta. + + +## Diseño + +- [docs/PLAN.md](../../PLAN.md) contiene el plan completo: arquitectura, hechos del software original de los que depende (con fuentes) y supuestos pendientes de confirmar, modelo de identidad, reglas de contadores y estados de enlaces, límites de seguridad, cálculos de rendimiento, pruebas y riesgos. +- [docs/decisions/](../../decisions) contiene los registros de decisiones de arquitectura ya tomadas. +- [docs/REQUIREMENTS.md](../../REQUIREMENTS.md) relaciona cada identificador de requisito con su incidencia. + +```mermaid +flowchart LR + F[InfiniBand fabric] --> T[infiniband-diags tools, read-only] + F --> U[UFM REST, phase 2] + T --> S[Sweep job on the Cacti poller] + U --> S + S --> C[(Sample cache)] + C --> SS[Script server and data query] + SS --> R[RRD files and Cacti graphs] + SS -->|poller_output| TH[Thold and Maint] + R --> P[Cacti graph permissions] +``` + + +## Seguimiento del trabajo + +- Los **hitos** siguen los del plan. Cada uno tiene una incidencia épica con sus subincidencias y pruebas de finalización. +- Las **incidencias** se clasifican mediante `type: requirement`, `type: research`, `type: decision` y `type: epic`. Los requisitos indican condiciones numeradas y comprobables (`REQ-AREA-NNN`) y criterios de aceptación. +- Las **etiquetas** incluyen también `area:`, `phase:`, `priority:` y `status:`. Consulte [CONTRIBUTING.md](../../../CONTRIBUTING.md#labels). +- El [tablero del proyecto](https://github.com/users/somethingwithproof/projects/8) muestra todas las incidencias de los distintos hitos. + + +## Contribuir + +Lea [CONTRIBUTING.md](../../../CONTRIBUTING.md). Los commits requieren la firma DCO. El diseño se debate en las incidencias; las decisiones abiertas llevan la etiqueta `type: decision`. + + +## Seguridad + +Comunique las vulnerabilidades de forma privada; consulte [SECURITY.md](../../../SECURITY.md). + + +## Licencia + +Licencia Pública General GNU v2.0, la misma que Cacti y sus complementos. Consulte [LICENSE](../../../LICENSE). diff --git a/docs/i18n/hi-IN/README.md b/docs/i18n/hi-IN/README.md new file mode 100644 index 0000000..0d02aa1 --- /dev/null +++ b/docs/i18n/hi-IN/README.md @@ -0,0 +1,122 @@ + + + +[English](../../../README.md) | [简体中文](../zh-CN/README.md) | [हिन्दी](README.md) | [Español (España)](../es-ES/README.md) | [Español (Latinoamérica)](../es-419/README.md) | [العربية](../ar-SA/README.md) + + + +# plugin_fabric + +यह Cacti 1.2 प्लगइन InfiniBand पोर्ट काउंटर, लिंक की चौड़ाई और गति तथा संकुलन संकेतकों को सामान्य Cacti डिवाइस, डेटा स्रोत और ग्राफ़ के रूप में लाता है। 4X के बजाय 1X पर लिंक स्थापित होने पर उसका ग्राफ़ और Thold अलर्ट संबंधित होस्ट के साथ दिखता है, Cacti अनुमतियों के अधीन रहता है और Maint उसे दबा सकता है। + +> **स्थिति: विकास में, अभी रिलीज़ नहीं हुई।** माइलस्टोन 2 (आधार) `main` में मर्ज है और माइलस्टोन 3 (Cacti ऑब्जेक्ट और अलर्ट) की समीक्षा चल रही है। माइलस्टोन 1 ने दस्तावेज़ों और मूल स्रोत कोड से डिज़ाइन की पुष्टि की (PR #71); परिणाम और स्रोत [docs/research/](../../research) में हैं। माइलस्टोन 2 प्लगइन का आधार जोड़ता है: +> +> - स्थापना, अपग्रेड, स्थापना रद्द करना और PHP 8.2 जाँच +> - View, Operator और Admin अनुमति क्षेत्र तथा सेटिंग +> - फ़ैब्रिक रिकॉर्ड +> - `perfquery`, `ibnetdiscover` और `iblinkinfo` के लिए केवल-पठन कमांड सीमा +> - GUID आधारित सूची, पहचान विवाद और पुनः-जोड़ प्रस्ताव +> - लिंक स्थिति और काउंटर सर्वेक्षण कैश +> - सूची, प्रशासन और स्वास्थ्य पृष्ठ +> +> माइलस्टोन 3 Cacti ऑब्जेक्ट जोड़ता है: +> +> - Cacti टेम्पलेट XML के रूप में डिवाइस, डेटा और ग्राफ़ टेम्पलेट तथा "Fabric Port" डेटा क्वेरी +> - नोड को Cacti डिवाइस से मैप करना या पुष्टि के बाद नया बनाना ([ADR 0010](../../decisions/0010-one-device-per-node.md)) +> - ग्राफ़ के लिए काउंटर डेटा स्रोत तथा Thold के लिए GAUGE लिंक स्थिति और दर डेटा स्रोत ([ADR 0011](../../decisions/0011-derive-counters-and-gauge-alert-values.md)) +> - असातत्य संभालना और संतृप्त मूल काउंटर अज्ञात पढ़ना ([ADR 0012](../../decisions/0012-saturated-basic-counters-read-as-unknown.md)), पोर्ट पृष्ठ पर काउंटर वैधता और ग्राफ़ लिंक तथा संकुलन क्रम +> - अपरिवर्तित Thold v1.8.2 और Maint v1.3 के साथ शुरू से अंत तक परीक्षण और सिम्युलेटेड फ़ैब्रिक पर वास्तविक निदान उपकरण चलाने वाला CI कार्य +> +> चरण 3 में दूरस्थ डेटा कलेक्टर समर्थित होने तक केवल मुख्य पोलर फ़ैब्रिक का सर्वेक्षण कर सकता है। इसे नकली उपकरणों और ibsim फ़ैब्रिक सिम्युलेटर के साथ परखा गया है, कभी वास्तविक InfiniBand फ़ैब्रिक पर नहीं। फ़ैब्रिक की आवश्यकता वाली जाँचें हर शोध पृष्ठ की लाइव-जाँच तालिका में खुली हैं। यह परियोजना Cacti परियोजना से संबद्ध नहीं है। + + +## पहुँच भूमिकाएँ + +| अनुमति क्षेत्र | पहुँच | +| --- | --- | +| Fabric View | मौजूदा निगरानी पृष्ठ। | +| Fabric Operator | निगरानी के साथ संचालन पृष्ठ और व्यक्तिगत जाँच पुष्टि। | +| Fabric Admin | ऑपरेटर पहुँच के साथ मौजूदा कॉन्फ़िगरेशन और प्रशासनिक कार्रवाइयाँ। | + +अपग्रेड फ़ाइलें कॉपी करने के बाद नया अनुमति क्षेत्र दर्ज करने के लिए व्यवस्थापक के रूप में प्लगइन पृष्ठ खोलें। **कॉन्फ़िगरेशन > उपयोगकर्ता** या उपयोगकर्ता समूहों में Operator अनुमति स्पष्ट रूप से दें। अपग्रेड मौजूदा View और Admin क्षेत्र के ID और अनुदान सुरक्षित रखते हैं। हर अनुरोध में Admin को Operator और Operator को View पहुँच विरासत में मिलती है; इससे उपयोगकर्ता या समूह में संग्रहीत अनुदान नहीं जुड़ते। प्लगइन सेटिंग के लिए Cacti की Settings अनुमति के अतिरिक्त Fabric Admin भी आवश्यक है। + +Cacti डिवाइस अनुमतियाँ अब भी हर उपयोगकर्ता के लिए उपलब्ध पंक्तियाँ और कार्रवाइयाँ सीमित करती हैं; अनमैप ऑब्जेक्ट के लिए व्यवस्थापक चाहिए। क्रेडेंशियल, कॉन्फ़िगरेशन, मैपिंग, हटाना और अन्य प्रशासनिक बदलाव प्रशासनिक पृष्ठों में ही रहते हैं। पुष्टि केवल वर्तमान उपयोगकर्ता के सत्र में, अधिकतम एक घंटे तक और उसी अवलोकन के ताज़ा रहने तक रहती है। नए या बदले अवलोकन उसे अमान्य कर देते हैं। यह कभी विफल माप को स्वस्थ नहीं बताती या अलर्ट नहीं दबाती। + + +## क्यों + +अवनत InfiniBand लिंक पर ट्रैफ़िक फिर भी चलता है। 4X लिंक के 1X पर फिर स्थापित होने पर पोर्ट "active" रहता है और होस्ट के SNMP इंटरफ़ेस ग्राफ़ सामान्य दिखते हैं, लेकिन कसकर जुड़े जॉब धीमे हो जाते हैं। प्रमाण फ़ैब्रिक में है: हर पोर्ट सक्रिय, सक्षम और समर्थित चौड़ाई तथा गति और त्रुटि व संकुलन काउंटर बताता है। इन्हें पढ़ने के लिए InfiniBand निदान उपकरण या फ़ैब्रिक प्रबंधक API चाहिए। हाथ से चलाने पर तीन कमियाँ रहती हैं: + +- **इतिहास नहीं।** `perfquery` और `iblinkinfo` वर्तमान दिखाते हैं, इसलिए पिछले सप्ताह अवनत हुआ लिंक दिखता नहीं। +- **डिवाइस संदर्भ नहीं।** फ़ैब्रिक पोर्ट Cacti ऑब्जेक्ट नहीं हैं, इसलिए पोर्ट का ग्राफ़ संबंधित होस्ट के साथ नहीं रखा जा सकता। +- **Cacti अलर्ट से जुड़ाव नहीं।** Thold और Maint Cacti डेटा स्रोत और डिवाइस पर काम करते हैं। + +प्लगइन फ़ैब्रिक के अपने निदान उपकरणों (और बाद में UFM) से पढ़कर, नोड और पोर्ट को GUID से पहचानकर और काउंटर तथा लिंक स्थिति को Cacti डेटा स्रोत बनाकर ये कमियाँ भरता है। यह केवल पढ़ता है: कभी काउंटर रीसेट या पोर्ट स्थिति नहीं बदलता। + + +## नियोजित दायरा + +| चरण | दायरा | माइलस्टोन | +|---|---|---| +| 0, शोध | संस्करण मैट्रिक्स, मूल व्यवहार की पुष्टि, हार्डवेयर पर काउंटर व्यवहार, विशेषाधिकार मॉडल, MAD बजट, UFM API | [M1](https://github.com/somethingwithproof/plugin_fabric/milestone/1) | +| 1, अवलोकन | GUID सूची, Cacti डिवाइस, पोर्ट डेटा क्वेरी, काउंटर और लिंक स्थिति डेटा स्रोत, Thold अलर्ट, Maint दमन, स्वास्थ्य पृष्ठ | [M2](https://github.com/somethingwithproof/plugin_fabric/milestone/2), [M3](https://github.com/somethingwithproof/plugin_fabric/milestone/3), [M4](https://github.com/somethingwithproof/plugin_fabric/milestone/4) | +| 2, UFM | केवल-पठन UFM REST बैकएंड, क्रेडेंशियल संभालना, बैकएंड के बीच पहचान निरंतरता | [M5](https://github.com/somethingwithproof/plugin_fabric/milestone/5) | +| 3, दूरस्थ | दूरस्थ डेटा कलेक्टर, प्रतिकृति, `remote_agent` कार्रवाइयाँ, बड़े फ़ैब्रिक के लिए विभाजित सर्वेक्षण | [M6](https://github.com/somethingwithproof/plugin_fabric/milestone/6) | + +दायरे से बाहर: फ़ैब्रिक स्थिति बदलना, फ़ैब्रिक या सबनेट प्रबंधक का स्थान लेना, प्लगइन का अपना अलर्ट इंजन, कस्टम डेमन या नेटवर्क प्रोटोकॉल और Ethernet या RoCE फ़ैब्रिक (शोध)। + + +## संगतता लक्ष्य + +| घटक | लक्ष्य | +|---|---| +| Cacti | 1.2.31 या बाद, बिना कोर पैच | +| PHP | 8.2 या बाद; `setup.php` 8.0 पर भी पार्स हो सकता है ताकि असमर्थित रनटाइम पर Cacti UI टूटने के बजाय स्पष्ट अस्वीकृति मिले | +| InfiniBand उपकरण | rdma-core का infiniband-diags; आउटपुट प्रारूप v66.0 स्रोत से जाँचे गए | +| UFM | UFM Enterprise REST API, चरण 2; रिलीज़ मैट्रिक्स माइलस्टोन 1 की डिलीवरी है | +| Thold, Maint | बदलाव आवश्यक नहीं | + +Cacti का स्क्रिप्ट टाइमआउट डिफ़ॉल्ट 25 सेकंड या अधिक रखें। डेटा क्वेरी पढ़ने से शुरू सर्वेक्षण उपकरण चलाने का समय उस सीमा से पाँच सेकंड कम रखता है, ताकि कैश पढ़ने और उत्तर देने का समय बचे। बजट समाप्त होने पर क्वेरी पिछला वर्तमान नमूना या अज्ञात लौटाती है; अगला चक्र सर्वेक्षण फिर आज़माता है। यह सीमा PHP पोलर पर भी लागू है। पाँच सेकंड या कम टाइमआउट उपकरण शुरू करने का समय नहीं छोड़ता। + + +## डिज़ाइन + +- [docs/PLAN.md](../../PLAN.md) पूरा प्लान है: वास्तुकला, निर्भर मूल तथ्य (स्रोत सहित) और अपुष्ट धारणाएँ, पहचान मॉडल, काउंटर और लिंक स्थिति नियम, सुरक्षा सीमाएँ, प्रदर्शन गणना, परीक्षण और जोखिम। +- [docs/decisions/](../../decisions) में पहले से लिए गए वास्तुकला निर्णयों के रिकॉर्ड हैं। +- [docs/REQUIREMENTS.md](../../REQUIREMENTS.md) हर आवश्यकता ID को उसकी इश्यू से जोड़ता है। + +```mermaid +flowchart LR + F[InfiniBand fabric] --> T[infiniband-diags tools, read-only] + F --> U[UFM REST, phase 2] + T --> S[Sweep job on the Cacti poller] + U --> S + S --> C[(Sample cache)] + C --> SS[Script server and data query] + SS --> R[RRD files and Cacti graphs] + SS -->|poller_output| TH[Thold and Maint] + R --> P[Cacti graph permissions] +``` + + +## काम का अनुश्रवण + +- **माइलस्टोन** प्लान का अनुसरण करते हैं। हर माइलस्टोन की एक एपिक इश्यू में उप-इश्यू और समापन प्रमाण हैं। +- **इश्यू** लेबल से वर्गीकृत हैं: `type: requirement`, `type: research`, `type: decision`, `type: epic`। आवश्यकता इश्यू में क्रमांकित, परीक्षण योग्य आवश्यकताएँ (`REQ-AREA-NNN`) और स्वीकृति मानदंड हैं। +- **लेबल** में `area:`, `phase:`, `priority:` और `status:` भी हैं। [CONTRIBUTING.md](../../../CONTRIBUTING.md#labels) देखें। +- [परियोजना बोर्ड](https://github.com/users/somethingwithproof/projects/8) सभी माइलस्टोन की इश्यू दिखाता है। + + +## योगदान + +[CONTRIBUTING.md](../../../CONTRIBUTING.md) पढ़ें। कमिट में DCO sign-off आवश्यक है। डिज़ाइन चर्चा इश्यू में होती है; खुले निर्णयों पर `type: decision` लेबल है। + + +## सुरक्षा + +कमज़ोरियाँ निजी रूप से रिपोर्ट करें; [SECURITY.md](../../../SECURITY.md) देखें। + + +## लाइसेंस + +GNU General Public License v2.0, वही लाइसेंस जो Cacti और उसके प्लगइन का है। [LICENSE](../../../LICENSE) देखें। diff --git a/docs/i18n/manifest.json b/docs/i18n/manifest.json new file mode 100644 index 0000000..38c65f0 --- /dev/null +++ b/docs/i18n/manifest.json @@ -0,0 +1,12 @@ +{ + "locales": [ + "zh-CN", + "hi-IN", + "es-ES", + "es-419", + "ar-SA" + ], + "sources": [ + "README.md" + ] +} diff --git a/docs/i18n/zh-CN/README.md b/docs/i18n/zh-CN/README.md new file mode 100644 index 0000000..27935e6 --- /dev/null +++ b/docs/i18n/zh-CN/README.md @@ -0,0 +1,122 @@ + + + +[English](../../../README.md) | [简体中文](README.md) | [हिन्दी](../hi-IN/README.md) | [Español (España)](../es-ES/README.md) | [Español (Latinoamérica)](../es-419/README.md) | [العربية](../ar-SA/README.md) + + + +# plugin_fabric + +这是一个 Cacti 1.2 插件,将 InfiniBand 端口计数器、链路宽度和速度以及拥塞指标作为普通设备、数据源和图表引入 Cacti。如果链路协商为 1X 而非 4X,其图表和 Thold 告警就会与所服务的主机一起显示,遵循 Cacti 权限,并可由 Maint 抑制。 + +> **状态:开发中,尚未发布。** 里程碑 2(基础)已合并到 `main`,里程碑 3(Cacti 对象和告警)正在审查。里程碑 1 根据文档和上游源代码验证了设计(PR #71);结果及来源位于 [docs/research/](../../research)。里程碑 2 添加了插件基础: +> +> - 安装、升级、卸载和 PHP 8.2 版本检查 +> - View、Operator 和 Admin 权限域及设置 +> - 互连网络记录 +> - `perfquery`、`ibnetdiscover` 和 `iblinkinfo` 的只读命令边界 +> - 按 GUID 建立清单,包含标识冲突和重新关联建议 +> - 链路状态和计数器扫描缓存 +> - 清单、管理和健康状态页面 +> +> 里程碑 3 添加了 Cacti 对象: +> +> - 以 Cacti 模板 XML 提供的设备、数据和图表模板,以及“Fabric Port”数据查询 +> - 将节点映射到 Cacti 设备,或在确认后创建设备([ADR 0010](../../decisions/0010-one-device-per-node.md)) +> - 用于图表的计数器数据源,以及供 Thold 使用的 GAUGE 链路状态和速率数据源([ADR 0011](../../decisions/0011-derive-counters-and-gauge-alert-values.md)) +> - 不连续处理和将饱和的基本计数器读取为未知([ADR 0012](../../decisions/0012-saturated-basic-counters-read-as-unknown.md))、端口页面上的计数器有效性和图表链接,以及拥塞排名 +> - 使用未经修改的 Thold v1.8.2 和 Maint v1.3 的端到端测试,以及针对模拟互连网络运行真实诊断工具的 CI 任务 +> +> 在第 3 阶段支持远程数据采集器之前,只能从主采集器扫描互连网络。它已使用模拟工具和 ibsim 互连网络模拟器测试,但从未在真实 InfiniBand 互连网络上测试。需要真实网络的检查仍列在各研究页面的实时检查表中,尚未完成。本项目不隶属于 Cacti 项目。 + + +## 访问角色 + +| 权限域 | 访问权限 | +| --- | --- | +| Fabric View | 现有监控页面。 | +| Fabric Operator | 监控、运维页面以及个人排查确认。 | +| Fabric Admin | 操作员访问权限及现有配置和管理操作。 | + +复制升级文件后,以管理员身份打开插件页面,注册新权限域。在**配置 > 用户**或用户组中明确授予 Operator 权限域。升级保留现有 View 和 Admin 权限域的 ID 及授权。每次请求时,Admin 继承 Operator 访问权限,Operator 继承 View 访问权限;这不会向用户或组添加持久化授权。插件设置除需要 Cacti 的设置权限外,还需要 Fabric Admin 权限。 + +Cacti 设备权限仍限制每位用户可访问的行和操作;未映射对象需要管理员处理。凭据、配置、映射、删除和其他管理更改仍在管理页面中执行。确认记录仅在当前用户会话中有效,最多一小时,并且仅在同一观测结果仍然新鲜时有效。新出现或更改的观测结果会使确认失效。确认绝不会将失败的测量标记为健康,也不会抑制告警。 + + +## 原因 + +降级的 InfiniBand 链路仍能传输流量。4X 链路重新协商为 1X 后,端口仍为“活动”,主机的 SNMP 接口图表看似正常,但紧密耦合的任务会变慢。证据在互连网络中:每个端口报告活动、启用及支持的宽度和速度,以及错误和拥塞计数器。读取这些数据需要 InfiniBand 诊断工具或互连网络管理器 API。手动运行这些工具有三个缺口: + +- **没有历史。** `perfquery` 和 `iblinkinfo` 只显示当前状态,无法看出上周已降级的链路。 +- **没有设备上下文。** 互连网络端口不是 Cacti 对象,因此无法将端口图表放在其服务的主机旁边。 +- **无法接入 Cacti 告警。** Thold 和 Maint 作用于 Cacti 数据源和设备。 + +插件通过网络自身的诊断工具(以后也通过 UFM)读取互连网络,按 GUID 标识节点和端口,并将计数器和链路状态发布为 Cacti 数据源,补足这些缺口。它只读取:绝不重置计数器或改变端口状态。 + + +## 计划范围 + +| 阶段 | 范围 | 里程碑 | +|---|---|---| +| 0,研究 | 版本矩阵、上游行为确认、硬件计数器行为、权限模型、MAD 预算、UFM API | [M1](https://github.com/somethingwithproof/plugin_fabric/milestone/1) | +| 1,观测 | GUID 清单、Cacti 设备、端口数据查询、计数器与链路状态数据源、Thold 告警、Maint 抑制、健康状态页面 | [M2](https://github.com/somethingwithproof/plugin_fabric/milestone/2)、[M3](https://github.com/somethingwithproof/plugin_fabric/milestone/3)、[M4](https://github.com/somethingwithproof/plugin_fabric/milestone/4) | +| 2,UFM | 只读 UFM REST 后端、凭据处理、不同后端间的标识连续性 | [M5](https://github.com/somethingwithproof/plugin_fabric/milestone/5) | +| 3,远程 | 远程数据采集器、复制、`remote_agent` 操作、大型互连网络的分片扫描 | [M6](https://github.com/somethingwithproof/plugin_fabric/milestone/6) | + +范围之外:改变互连网络状态、替代互连网络或子网管理器、插件自有告警引擎、自定义守护进程或网络协议,以及以太网或 RoCE 互连网络(研究中)。 + + +## 兼容性目标 + +| 组件 | 目标 | +|---|---| +| Cacti | 1.2.31 或更高版本,无需核心补丁 | +| PHP | 8.2 或更高版本;`setup.php` 在 8.0 中仍可解析,以便对不受支持的运行时明确拒绝,而不是损坏 Cacti 界面 | +| InfiniBand 工具 | rdma-core 中的 infiniband-diags;输出格式已对照 v66.0 源代码检查 | +| UFM | UFM Enterprise REST API,第 2 阶段;版本矩阵是里程碑 1 的交付项 | +| Thold、Maint | 无需更改 | + +将 Cacti 脚本超时保持为默认的 25 秒或更高。数据查询读取触发的扫描将工具运行时间限制为该超时减去五秒,预留时间读取缓存并回复。预算到期时,查询返回最近的有效样本或未知值;下个周期会重试扫描。此限制也适用于 PHP 采集器。五秒或更短的超时不会留下启动工具的时间。 + + +## 设计 + +- [docs/PLAN.md](../../PLAN.md) 是完整计划:架构、依赖的上游事实(含来源)与待验证假设、标识模型、计数器和链路状态规则、安全边界、性能计算、测试和风险。 +- [docs/decisions/](../../decisions) 保存已做出的架构决策记录。 +- [docs/REQUIREMENTS.md](../../REQUIREMENTS.md) 将每个需求 ID 映射到对应议题。 + +```mermaid +flowchart LR + F[InfiniBand fabric] --> T[infiniband-diags tools, read-only] + F --> U[UFM REST, phase 2] + T --> S[Sweep job on the Cacti poller] + U --> S + S --> C[(Sample cache)] + C --> SS[Script server and data query] + SS --> R[RRD files and Cacti graphs] + SS -->|poller_output| TH[Thold and Maint] + R --> P[Cacti graph permissions] +``` + + +## 工作跟踪方式 + +- **里程碑**遵循计划。每个里程碑都有一个史诗议题,列出子议题和完成证据。 +- **议题**按标签分类:`type: requirement`、`type: research`、`type: decision`、`type: epic`。需求议题包含带编号的可测试需求(`REQ-AREA-NNN`)和验收标准。 +- **标签**还包括 `area:`、`phase:`、`priority:` 和 `status:`。参阅 [CONTRIBUTING.md](../../../CONTRIBUTING.md#labels)。 +- [项目看板](https://github.com/users/somethingwithproof/projects/8) 显示各里程碑的全部议题。 + + +## 贡献 + +请阅读 [CONTRIBUTING.md](../../../CONTRIBUTING.md)。提交需要 DCO 签署。设计讨论在议题中进行;未决决策带有 `type: decision` 标签。 + + +## 安全 + +请私下报告漏洞;参阅 [SECURITY.md](../../../SECURITY.md)。 + + +## 许可证 + +GNU 通用公共许可证 v2.0,与 Cacti 及其插件相同。参阅 [LICENSE](../../../LICENSE)。 diff --git a/fabric_operator.php b/fabric_operator.php new file mode 100644 index 0000000..de77931 --- /dev/null +++ b/fabric_operator.php @@ -0,0 +1,103 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_fabric, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_fabric + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +use Somethingwithproof\Fabric\OperatorPage; + +chdir('../../'); +include('./include/auth.php'); +include_once('./plugins/fabric/setup.php'); + +if (!fabric_page_start()) { + exit; +} +require_once('./plugins/fabric/include/operator.php'); + +$user = (int) ($_SESSION['sess_user_id'] ?? 0); +$allowed = $user > 0 && api_plugin_user_realm_auth('fabric_operator.php'); + +if (!$allowed) { + http_response_code(403); + exit; +} +$actions = []; +$action = (string) get_nfilter_request_var('action'); +$session = $_SESSION['fabric_triage'] ?? []; +$session = is_array($session) ? $session : []; + +try { + // Re-read on POST too: stale forms never retain revoked device access. + $rows = fabric_operator_rows(); + $now = time(); + + if ($action !== '' && $action !== 'default') { + $method = $_SERVER['REQUEST_METHOD'] ?? ''; + $status = OperatorPage::actionStatus($allowed, $action, $method, $method === 'POST' && csrf_check(false), array_merge(['acknowledge'], array_keys($actions))); + + if ($status !== 200) { + http_response_code($status); + + if ($status === 405) { + header('Allow: POST'); + } + exit; + } + $id = (string) get_nfilter_request_var('id'); + $row = null; + + foreach ($rows as $candidate) { + if ($candidate['id'] === $id) { + $row = $candidate; + + break; + } + } + + if ($row === null) { + http_response_code(403); + exit; + } + $fingerprint = (string) get_nfilter_request_var('fingerprint'); + + if (!hash_equals(OperatorPage::fingerprint($row), $fingerprint)) { + http_response_code(409); + exit; + } + + if ($action === 'acknowledge') { + if (!OperatorPage::acknowledge($session, $row, $fingerprint, $user, $now)) { + http_response_code(409); + exit; + } + $_SESSION['fabric_triage'] = $session; + } + cacti_log('Operator ' . $action . ' by user ' . $user . ' on object ' . hash('sha256', $id), false, 'FABRIC'); + header('Location: fabric_operator.php'); + exit; + } + top_header(); + print '

' . html_escape(__('Monitoring view', 'fabric')) . '

'; + OperatorPage::render($rows, $session, $user, $now, $actions); + bottom_footer(); +} catch (Throwable $error) { + cacti_log('Operator page failed (' . get_class($error) . ')', false, 'FABRIC'); + http_response_code(503); + top_header(); + print '

' . html_escape(__('Observations could not be read. Ask an administrator to check the plugin log.', 'fabric')) . '

'; + bottom_footer(); +} diff --git a/include/operator.php b/include/operator.php new file mode 100644 index 0000000..b61b8ac --- /dev/null +++ b/include/operator.php @@ -0,0 +1,52 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_fabric, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_fabric + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +use Somethingwithproof\Fabric\Node; +use Somethingwithproof\Fabric\NodeRepository; +use Somethingwithproof\Fabric\Presence; +use Somethingwithproof\Fabric\Row; + +/** @return list */ +function fabric_operator_rows(): array { + $rows = []; + $nodes = (new NodeRepository(false))->observations(); + + if ($nodes === null) { + throw new RuntimeException('Inventory unavailable'); + } + + foreach ($nodes as $record) { + $node = Node::fromRow($record); + + if ($node === null || $node->hostId <= 0 || !fabric_device_allowed($node->hostId)) { + continue; + } + $rows[] = [ + 'id' => (string) $node->id, + 'name' => Node::labelOf($node->description, $node->guid->text), + 'state' => $node->presence->value . ' / ' . $node->identity->value, + // Missing is observed by discovery; lastSeen remains the last presence. + 'observed' => $node->presence === Presence::Missing ? Row::int($record, 'discovery_success') : $node->lastSeen, + 'interval' => max(60, (int) read_config_option('poller_interval'), intdiv(Row::int($record, 'sweep_interval'), 2)), + 'detail' => __('Inspect port validity, link width and speed, and the congestion view. Escalate identity conflicts and device relinking to an administrator; do not reset counters.', 'fabric') + ]; + } + + return $rows; +} diff --git a/lib/NodeRepository.php b/lib/NodeRepository.php index 78e4625..ba36a4b 100644 --- a/lib/NodeRepository.php +++ b/lib/NodeRepository.php @@ -58,6 +58,11 @@ public function all(): ?array { return $this->nodes(Row::rows(db_fetch_assoc_prepared('SELECT * FROM plugin_fabric_node ORDER BY fabric_id, guid', [], true, $this->connection))); } + /** @return list>|null */ + public function observations(): ?array { + return Row::rows(db_fetch_assoc_prepared('SELECT n.*, f.sweep_interval, h.discovery_success FROM plugin_fabric_node n INNER JOIN plugin_fabric_fabric f ON f.id = n.fabric_id LEFT JOIN plugin_fabric_health h ON h.fabric_id = n.fabric_id ORDER BY n.fabric_id, n.guid', [], true, $this->connection)); + } + /** * @return array|null port number => port */ diff --git a/lib/OperatorPage.php b/lib/OperatorPage.php new file mode 100644 index 0000000..b6539ef --- /dev/null +++ b/lib/OperatorPage.php @@ -0,0 +1,133 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_fabric, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_fabric + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +namespace Somethingwithproof\Fabric; + +/** Personal triage of current observations. It never changes measured health. */ +final class OperatorPage { + /** @param list $actions */ + public static function actionStatus(bool $allowed, string $action, string $method, bool $csrf, array $actions): int { + if (!$allowed) { + return 403; + } + + if (!in_array($action, $actions, true)) { + return 400; + } + + if ($method !== 'POST') { + return 405; + } + + return $csrf ? 200 : 403; + } + + /** @param array{id: string, name: string, state: string, observed: int, interval: int, detail: string} $row */ + public static function fingerprint(array $row): string { + return hash('sha256', (string) json_encode($row)); + } + + /** @param array{id: string, name: string, state: string, observed: int, interval: int, detail: string} $row */ + public static function fresh(array $row, int $now): bool { + return $row['observed'] > 0 && $row['observed'] <= $now && $now - $row['observed'] <= max(60, $row['interval']) * 2; + } + + /** + * Session-only acknowledgments expire with the evidence or after one hour. + * Only rows reloaded within the current user's device scope may be supplied. + * @param array $session + * @param array{id: string, name: string, state: string, observed: int, interval: int, detail: string} $row + */ + public static function acknowledge(array &$session, array $row, string $fingerprint, int $user, int $now): bool { + if ($user <= 0 || !self::fresh($row, $now) || !hash_equals(self::fingerprint($row), $fingerprint)) { + return false; + } + $entries = isset($session['entries'], $session['user']) && $session['user'] === $user && is_array($session['entries']) ? $session['entries'] : []; + + foreach ($entries as $id => $entry) { + if (!is_array($entry) || !isset($entry['at']) || !is_int($entry['at']) || $entry['at'] > $now || $now - $entry['at'] > 3600) { + unset($entries[$id]); + } + } + unset($entries[$row['id']]); + $entries[$row['id']] = ['fingerprint' => $fingerprint, 'at' => $now]; + $session = ['user' => $user, 'entries' => array_slice($entries, -100, null, true)]; + + return true; + } + + /** + * @param array $session + * @param array{id: string, name: string, state: string, observed: int, interval: int, detail: string} $row + */ + public static function acknowledged(array $session, array $row, int $user, int $now): bool { + $entries = $session['entries'] ?? []; + $entry = is_array($entries) ? ($entries[$row['id']] ?? null) : null; + + return ($session['user'] ?? 0) === $user && is_array($entry) + && isset($entry['fingerprint'], $entry['at']) && is_string($entry['fingerprint']) && is_int($entry['at']) + && $entry['at'] <= $now && $now - $entry['at'] <= 3600 + && self::fresh($row, $now) && hash_equals(self::fingerprint($row), $entry['fingerprint']); + } + + /** @param array{id: string, name: string, state: string, observed: int, interval: int, detail: string} $row */ + public static function form(array $row, string $action, string $label): void { + form_start('fabric_operator.php'); + print ''; + print ''; + print ''; + print ''; + form_end(false); + } + + /** + * @param list $rows + * @param array $session + * @param array $actions + */ + public static function render(array $rows, array $session, int $user, int $now, array $actions): void { + print '

' . html_escape(__('Review the recorded observations below. Acknowledgments are personal to this session, expire when observations change, and never suppress alerts or change health.', 'fabric')) . '

'; + print '
'; + html_start_box(__('Fabric Operations', 'fabric'), '100%', '', '3', 'center', ''); + print '' . implode('', array_map('html_escape', [__('Object', 'fabric'), __('State', 'fabric'), __('Observed (UTC)', 'fabric'), __('Investigation', 'fabric'), __('Actions', 'fabric')])) . ''; + + foreach ($rows as $row) { + $fresh = self::fresh($row, $now); + $state = $row['state'] . ($fresh ? '' : ' / ' . __('Unknown or stale', 'fabric')); + print '' . html_escape($row['name']) . '' . html_escape($state) . '' . html_escape($row['observed'] > 0 ? gmdate('Y-m-d H:i:s', $row['observed']) : __('Never', 'fabric')) . '' . html_escape($row['detail']) . ''; + + if (self::acknowledged($session, $row, $user, $now)) { + print html_escape(__('Acknowledged; health unchanged.', 'fabric')); + } elseif ($fresh) { + self::form($row, 'acknowledge', __('Acknowledge', 'fabric')); + } + + foreach ($actions as $action => $label) { + self::form($row, $action, $label); + } + print ''; + } + + if ($rows === []) { + print '' . html_escape(__('No observations are available for devices you may access.', 'fabric')) . ''; + } + html_end_box(); + print '
'; + } +} diff --git a/lib/Pages.php b/lib/Pages.php index 310bb83..6713bdb 100644 --- a/lib/Pages.php +++ b/lib/Pages.php @@ -30,6 +30,7 @@ * The view realm sees the inventory of devices it may see. */ final class Pages { + public const OPERATOR = ['fabric_operator.php']; public const VIEW = ['fabric.php']; public const ADMIN = ['fabric_admin.php', 'fabric_health.php']; @@ -38,6 +39,7 @@ final class Pages { */ public static function realms(): array { return [ + ['name' => __('Fabric Operator', 'fabric'), 'files' => self::OPERATOR], ['name' => __('Fabric View', 'fabric'), 'files' => self::VIEW], ['name' => __('Fabric Admin', 'fabric'), 'files' => self::ADMIN], ]; @@ -47,7 +49,7 @@ public static function realms(): array { * @return list */ public static function files(): array { - return array_merge(self::VIEW, self::ADMIN); + return array_merge(self::VIEW, self::ADMIN, self::OPERATOR); } /** @@ -58,6 +60,7 @@ public static function files(): array { */ public static function menu(): array { return [ + 'fabric_operator.php' => __('Fabric Operations', 'fabric'), 'fabric.php' => __('Fabrics', 'fabric'), 'fabric_admin.php' => __('Fabric Admin', 'fabric'), 'fabric_health.php' => __('Fabric Health', 'fabric'), diff --git a/lib/Schema.php b/lib/Schema.php index c2554bf..62acf2c 100644 --- a/lib/Schema.php +++ b/lib/Schema.php @@ -42,6 +42,7 @@ final class Schema { public const VERSION = 2; public const HOOKS = [ + 'auth_alternate_realms' => 'fabric_auth_alternate_realms', 'config_arrays' => 'fabric_config_arrays', 'config_settings' => 'fabric_config_settings', 'draw_navigation_text' => 'fabric_draw_navigation_text', diff --git a/locales/LC_MESSAGES/ar-SA.mo b/locales/LC_MESSAGES/ar-SA.mo new file mode 100644 index 0000000..93665e6 Binary files /dev/null and b/locales/LC_MESSAGES/ar-SA.mo differ diff --git a/locales/LC_MESSAGES/es-419.mo b/locales/LC_MESSAGES/es-419.mo new file mode 100644 index 0000000..776d3a1 Binary files /dev/null and b/locales/LC_MESSAGES/es-419.mo differ diff --git a/locales/LC_MESSAGES/es-ES.mo b/locales/LC_MESSAGES/es-ES.mo new file mode 100644 index 0000000..9a1cbd1 Binary files /dev/null and b/locales/LC_MESSAGES/es-ES.mo differ diff --git a/locales/LC_MESSAGES/hi-IN.mo b/locales/LC_MESSAGES/hi-IN.mo new file mode 100644 index 0000000..0a01954 Binary files /dev/null and b/locales/LC_MESSAGES/hi-IN.mo differ diff --git a/locales/LC_MESSAGES/zh-CN.mo b/locales/LC_MESSAGES/zh-CN.mo new file mode 100644 index 0000000..6e6929e Binary files /dev/null and b/locales/LC_MESSAGES/zh-CN.mo differ diff --git a/locales/build_gettext.sh b/locales/build_gettext.sh index fae39c2..5ea15ec 100755 --- a/locales/build_gettext.sh +++ b/locales/build_gettext.sh @@ -94,6 +94,8 @@ if [ "${1:-}" = "--check" ]; then fi done + python3 tests/check_translations.py || rc=1 + [ $rc -eq 0 ] && echo "catalogs are complete and compiled" exit $rc fi diff --git a/locales/po/ar-SA.po b/locales/po/ar-SA.po new file mode 100644 index 0000000..c463da7 --- /dev/null +++ b/locales/po/ar-SA.po @@ -0,0 +1,981 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# +msgid "" +msgstr "" +"Project-Id-Version: fabric 0.1.0-dev\n" +"Report-Msgid-Bugs-To: https://github.com/somethingwithproof/plugin_fabric/issues\n" +"PO-Revision-Date: 2026-11-17 00:00+0000\n" +"Last-Translator: Thomas Vincent \n" +"Language-Team: Thomas Vincent \n" +"Language: ar-SA\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);\n" + +#: fabric_admin.php +msgid "The node changed after the page was drawn, so nothing was done. Review it and try again." +msgstr "تغيّرت العقدة بعد عرض الصفحة، لذلك لم يُنفّذ أي إجراء. راجعها وحاول مجددًا." + +#: fabric_admin.php +msgid "Your device permissions do not allow changing this record." +msgstr "لا تسمح أذونات الأجهزة لديك بتغيير هذا السجل." + +#: fabric_admin.php +msgid "Name: another fabric already uses this name." +msgstr "الاسم: تستخدم شبكة ربط أخرى هذا الاسم بالفعل." + +#: fabric_admin.php +msgid "Adapter: another fabric already sweeps this adapter port on this poller. One fabric per adapter port." +msgstr "المحوّل: تفحص شبكة ربط أخرى منفذ هذا المحوّل على هذا المُستطلِع بالفعل. يُسمح بشبكة واحدة لكل منفذ محوّل." + +#: fabric_admin.php +msgid "The fabric could not be saved." +msgstr "تعذّر حفظ شبكة الربط." + +#: fabric_admin.php +msgid "The fabric was saved." +msgstr "حُفظت شبكة الربط." + +#: fabric_admin.php +msgid "A sweep of this fabric is running, so nothing was deleted. Try again when it finishes." +msgstr "يجري فحص شبكة الربط هذه، لذلك لم يُحذف شيء. حاول مجددًا عند اكتماله." + +#: fabric_admin.php +msgid "The fabric and its inventory were deleted. No Cacti device was changed and the fabric was not contacted." +msgstr "حُذفت شبكة الربط ومخزونها. لم يُغيَّر أي جهاز Cacti ولم يُتصل بشبكة الربط." + +#: fabric_admin.php +msgid "The fabric could not be deleted." +msgstr "تعذّر حذف شبكة الربط." + +#: fabric_admin.php +msgid "The node identity was not changed." +msgstr "لم تُغيَّر هوية العقدة." + +#: fabric_admin.php +msgid "The node identity was updated. It is swept again from the next cycle." +msgstr "حُدّثت هوية العقدة. سيُستأنف فحصها من الدورة التالية." + +#: fabric_admin.php +msgid "The device mapping moved to the new node." +msgstr "نُقل ربط الجهاز إلى العقدة الجديدة." + +#: fabric_admin.php +msgid "The proposal could not be confirmed. The nodes may have changed since it was made." +msgstr "تعذّر تأكيد الاقتراح. ربما تغيّرت العقد منذ إنشائه." + +#: fabric_admin.php +msgid "The proposal could not be rejected." +msgstr "تعذّر رفض الاقتراح." + +#: fabric_admin.php +msgid "The proposal was rejected." +msgstr "رُفض الاقتراح." + +#: fabric_admin.php +#, php-format +msgid "The node mapping was not changed. %s" +msgstr "لم يُغيَّر ربط العقدة. %s" + +#: fabric_admin.php +msgid "The node mapping was not changed." +msgstr "لم يُغيَّر ربط العقدة." + +#: fabric_admin.php +msgid "The node mapping was saved." +msgstr "حُفظ ربط العقدة." + +#: fabric_admin.php +msgid "No device was created. See the Cacti log." +msgstr "لم يُنشأ أي جهاز. راجع سجل Cacti." + +#: fabric_admin.php +msgid "The device was created and the node mapped to it. Choose the ports to graph on the New Graphs page." +msgstr "أُنشئ الجهاز ورُبطت العقدة به. اختر المنافذ المراد رسمها في صفحة الرسوم الجديدة." + +#: fabric_admin.php +msgid "The inventory could not be read for export." +msgstr "تعذّرت قراءة المخزون لتصديره." + +#: fabric_health.php +msgid "The Fabric templates and data query file were installed." +msgstr "ثُبّتت قوالب Fabric وملف استعلام البيانات." + +#: fabric_health.php +msgid "The Fabric templates were not installed. See the Cacti Objects table and the Cacti log." +msgstr "لم تُثبّت قوالب Fabric. راجع جدول كائنات Cacti وسجل Cacti." + +#: fabric_operator.php +msgid "Monitoring view" +msgstr "عرض المراقبة" + +#: fabric_operator.php +msgid "Observations could not be read. Ask an administrator to check the plugin log." +msgstr "تعذّرت قراءة الملاحظات. اطلب من مسؤول مراجعة سجل الإضافة." + +#: include/operator.php +msgid "Inspect port validity, link width and speed, and the congestion view. Escalate identity conflicts and device relinking to an administrator; do not reset counters." +msgstr "افحص صلاحية المنافذ وعرض الروابط وسرعتها وعرض الازدحام. أحِل تعارضات الهوية وإعادة ربط الأجهزة إلى مسؤول؛ لا تُعِد ضبط العدّادات." + +#: lib/AdminPage.php lib/HealthPage.php lib/Pages.php +msgid "Fabric Admin" +msgstr "إدارة Fabric" + +#: lib/AdminPage.php +msgid "The fabric records could not be read. See the Cacti log." +msgstr "تعذّرت قراءة سجلات شبكات الربط. راجع سجل Cacti." + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php lib/Pages.php +#: setup.php +msgid "Fabrics" +msgstr "شبكات الربط" + +#: lib/AdminPage.php lib/OperatorPage.php +msgid "Actions" +msgstr "الإجراءات" + +#: lib/AdminPage.php +msgid "Adapter" +msgstr "المحوّل" + +#: lib/AdminPage.php +msgid "Backend" +msgstr "الواجهة الخلفية" + +#: lib/AdminPage.php +msgid "Name" +msgstr "الاسم" + +#: lib/AdminPage.php +msgid "Nodes" +msgstr "العقد" + +#: lib/AdminPage.php +msgid "Poller" +msgstr "المُستطلِع" + +#: lib/AdminPage.php lib/InventoryPage.php lib/OperatorPage.php +msgid "State" +msgstr "الحالة" + +#: lib/AdminPage.php +msgid "Sweep Interval" +msgstr "الفاصل بين الفحوص" + +#: lib/AdminPage.php lib/HealthPage.php +msgid "No fabrics defined yet." +msgstr "لم تُعرّف أي شبكة ربط بعد." + +#: lib/AdminPage.php +#, php-format +msgid "Deleted poller (ID %d)" +msgstr "مُستطلِع محذوف (المعرّف %d)" + +#: lib/AdminPage.php +#, php-format +msgid "port %d" +msgstr "المنفذ %d" + +#: lib/AdminPage.php +#, php-format +msgid "%d seconds" +msgstr "%d ثانية" + +#: lib/AdminPage.php +msgid "Delete" +msgstr "حذف" + +#: lib/AdminPage.php +msgid "Holds devices you may not see" +msgstr "تحتوي على أجهزة لا يمكنك رؤيتها" + +#: lib/AdminPage.php +msgid "Export" +msgstr "تصدير" + +#: lib/AdminPage.php +msgid "Download the fabrics and node inventory, with device mappings, as JSON before an uninstall that drops the plugin tables. It holds no credential." +msgstr "قبل إلغاء التثبيت مع حذف جداول الإضافة، نزّل شبكات الربط ومخزون العقد وروابط الأجهزة بصيغة JSON. لا يتضمن الملف بيانات اعتماد." + +#: lib/AdminPage.php lib/InventoryPage.php +#, php-format +msgid "Fabric: %s" +msgstr "شبكة الربط: %s" + +#: lib/AdminPage.php +msgid "New Fabric" +msgstr "شبكة ربط جديدة" + +#: lib/AdminPage.php +msgid "Sweep Interval (seconds)" +msgstr "الفاصل بين الفحوص (بالثواني)" + +#: lib/AdminPage.php +msgid "Adapter Port" +msgstr "منفذ المحوّل" + +#: lib/AdminPage.php +msgid "Enabled" +msgstr "مفعّل" + +#: lib/AdminPage.php +msgid "Save" +msgstr "حفظ" + +#: lib/AdminPage.php +#, php-format +msgid "Delete Fabric: %s" +msgstr "حذف شبكة الربط: %s" + +#: lib/AdminPage.php +#, php-format +msgid "Delete this fabric with its %d nodes, their ports, samples, and proposals? %d nodes are mapped to Cacti devices; those devices, their data sources, and RRD files are kept. The fabric is not contacted." +msgstr "هل تريد حذف شبكة الربط هذه وعقدها البالغ عددها %d ومنافذها وعيناتها واقتراحاتها؟ توجد %d عقدة مرتبطة بأجهزة Cacti؛ ستُحفظ تلك الأجهزة ومصادر بياناتها وملفات RRD. لن يُتصل بشبكة الربط." + +#: lib/AdminPage.php lib/InventoryPage.php +msgid "Unmapped" +msgstr "غير مرتبط" + +#: lib/AdminPage.php +#, php-format +msgid "Deleted device (ID %d)" +msgstr "جهاز محذوف (المعرّف %d)" + +#: lib/AdminPage.php lib/InventoryPage.php +#, php-format +msgid "Fabric Node: %s" +msgstr "عقدة شبكة الربط: %s" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php +msgid "GUID" +msgstr "GUID" + +#: lib/AdminPage.php +msgid "Devices Matching the Node Name" +msgstr "الأجهزة المطابقة لاسم العقدة" + +#: lib/AdminPage.php +#, php-format +msgid "%s (device %d)" +msgstr "%s (الجهاز %d)" + +#: lib/AdminPage.php +msgid "None" +msgstr "لا شيء" + +#: lib/AdminPage.php +msgid "Cacti Device" +msgstr "جهاز Cacti" + +#: lib/AdminPage.php +msgid "Saving maps the node to the device and adds the Fabric Port data query to the device, which lists the node's ports. No graph, data source, or device setting is changed. The device must be polled by the poller that sweeps the fabric." +msgstr "يؤدي الحفظ إلى ربط العقدة بالجهاز وإضافة استعلام Fabric Port الذي يسرد منافذها. لا يتغير أي رسم أو مصدر بيانات أو إعداد للجهاز. يجب أن يستطلع الجهازَ المُستطلِعُ نفسه الذي يفحص شبكة الربط." + +#: lib/AdminPage.php +msgid "Create a Device for This Node" +msgstr "إنشاء جهاز لهذه العقدة" + +#: lib/AdminPage.php +msgid "Devices cannot be created here." +msgstr "لا يمكن إنشاء أجهزة هنا." + +#: lib/AdminPage.php +#, php-format +msgid "Create a Device for %s" +msgstr "إنشاء جهاز لـ %s" + +#: lib/AdminPage.php +msgid "Creating the device adds:" +msgstr "يؤدي إنشاء الجهاز إلى إضافة:" + +#: lib/AdminPage.php +msgid "Create" +msgstr "إنشاء" + +#: lib/AdminPage.php +msgid "Identity Conflicts" +msgstr "تعارضات الهوية" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php +msgid "Node" +msgstr "العقدة" + +#: lib/AdminPage.php +msgid "Seen" +msgstr "المُشاهَد" + +#: lib/AdminPage.php +msgid "Stored" +msgstr "المخزّن" + +#: lib/AdminPage.php +msgid "No conflicts." +msgstr "لا توجد تعارضات." + +#: lib/AdminPage.php +msgid "Printed twice in one discovery" +msgstr "ظهر مرتين في عملية اكتشاف واحدة" + +#: lib/AdminPage.php +msgid "Accept Seen Identity" +msgstr "قبول الهوية المُشاهَدة" + +#: lib/AdminPage.php +msgid "Re-link Proposals" +msgstr "اقتراحات إعادة الربط" + +#: lib/AdminPage.php lib/InventoryPage.php +msgid "Device" +msgstr "الجهاز" + +#: lib/AdminPage.php +msgid "Missing Node" +msgstr "العقدة المفقودة" + +#: lib/AdminPage.php +msgid "New Node" +msgstr "العقدة الجديدة" + +#: lib/AdminPage.php +msgid "Shared Neighbor Port" +msgstr "منفذ الجار المشترك" + +#: lib/AdminPage.php +msgid "No open proposals." +msgstr "لا توجد اقتراحات معلّقة." + +#: lib/AdminPage.php +msgid "Confirm" +msgstr "تأكيد" + +#: lib/AdminPage.php +msgid "Reject" +msgstr "رفض" + +#: lib/Backend.php +msgid "Diagnostics tools (infiniband-diags)" +msgstr "أدوات التشخيص (infiniband-diags)" + +#: lib/CommandError.php +msgid "The fabric or plugin settings are incomplete or invalid" +msgstr "إعدادات شبكة الربط أو الإضافة ناقصة أو غير صالحة" + +#: lib/CommandError.php +msgid "The tool is missing or not executable in the configured directory" +msgstr "الأداة مفقودة أو غير قابلة للتنفيذ في الدليل المحدد" + +#: lib/CommandError.php +msgid "The tool exceeded its time limit and was stopped" +msgstr "تجاوزت الأداة المهلة وأُوقفت" + +#: lib/CommandError.php +msgid "The tool output exceeded the size limit and was discarded" +msgstr "تجاوز خرج الأداة حد الحجم وأُهمل" + +#: lib/CommandError.php +msgid "The tool failed" +msgstr "فشلت الأداة" + +#: lib/CommandError.php +msgid "The tool output did not have the expected form" +msgstr "لم يكن خرج الأداة بالتنسيق المتوقع" + +#: lib/CommandError.php +msgid "Not attempted: the time or failure budget was spent" +msgstr "لم تُجرَ المحاولة: استُنفدت حدود الوقت أو الإخفاقات" + +#: lib/CommandError.php +msgid "The plugin tables could not be read or written" +msgstr "تعذّرت قراءة جداول الإضافة أو الكتابة إليها" + +#: lib/DeviceProvisioner.php +msgid "The Fabric templates are not installed. Reinstall them from the health page." +msgstr "قوالب Fabric غير مثبّتة. أعِد تثبيتها من صفحة الحالة الصحية." + +#: lib/DeviceProvisioner.php +msgid "The node is already mapped to a device." +msgstr "العقدة مرتبطة بجهاز بالفعل." + +#: lib/DeviceProvisioner.php +msgid "The node's fabric is not swept by the main poller, so its device could not be polled." +msgstr "لا يفحص المُستطلِع الرئيسي شبكة ربط العقدة، لذلك يتعذّر استطلاع جهازها." + +#: lib/DeviceProvisioner.php +msgid "The device does not exist." +msgstr "الجهاز غير موجود." + +#: lib/DeviceProvisioner.php +msgid "The device is polled by another poller than the one that sweeps this fabric, so it could not read the fabric cache." +msgstr "يستطلع الجهازَ مُستطلِعٌ مختلف عن الذي يفحص شبكة الربط، لذا يتعذّر عليه قراءة ذاكرة الشبكة المؤقتة." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "A device \"%s\" from the %s device template, host name %s, polled by poller %d, with availability checks and SNMP off." +msgstr "جهاز «%s» من قالب الأجهزة %s، باسم المضيف %s، يستطلعه المُستطلِع %d، مع تعطيل فحوص التوافر وSNMP." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "The %s data query on it, listing the node's ports. It creates no graph and no data source by itself." +msgstr "استعلام البيانات %s عليه، ويسرد منافذ العقدة. لا ينشئ بمفرده أي رسم أو مصدر بيانات." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "Created by the Fabric plugin for node %s. Its values come from the plugin cache; the host name is a reserved name that is never contacted." +msgstr "أنشأته إضافة Fabric للعقدة %s. تأتي قيمه من ذاكرة الإضافة المؤقتة؛ اسم المضيف محجوز ولا يُتصل به مطلقًا." + +#: lib/FabricInput.php +msgid "Name: use 1 to 64 letters, digits, spaces, dots, dashes, or underscores, starting with a letter or digit." +msgstr "الاسم: استخدم من 1 إلى 64 حرفًا أو رقمًا أو مسافة أو نقطة أو شرطة أو شرطة سفلية، على أن يبدأ بحرف أو رقم." + +#: lib/FabricInput.php +msgid "Backend: choose one of the listed backends." +msgstr "الواجهة الخلفية: اختر إحدى الواجهات المدرجة." + +#: lib/FabricInput.php +msgid "Poller: choose one of the listed pollers." +msgstr "المُستطلِع: اختر أحد المُستطلِعات المدرجة." + +#: lib/FabricInput.php +msgid "Poller: only the main poller can sweep a fabric until remote poller support is added." +msgstr "المُستطلِع: لا يمكن فحص شبكة الربط إلا بالمُستطلِع الرئيسي حتى تُضاف إمكانية المُستطلِعات البعيدة." + +#: lib/FabricInput.php +#, php-format +msgid "Sweep Interval: enter whole seconds from %d to %d." +msgstr "الفاصل بين الفحوص: أدخل عددًا صحيحًا من الثواني بين %d و%d." + +#: lib/FabricInput.php +msgid "Adapter: enter the local adapter name as the kernel names it, such as mlx5_0." +msgstr "المحوّل: أدخل اسم المحوّل المحلي كما يسميه النواة، مثل mlx5_0." + +#: lib/FabricInput.php +#, php-format +msgid "Adapter Port: enter the port number of the local adapter, from 1 to %d." +msgstr "منفذ المحوّل: أدخل رقم منفذ المحوّل المحلي من 1 إلى %d." + +#: lib/Format.php lib/InventoryPage.php lib/OperatorPage.php +msgid "Never" +msgstr "أبدًا" + +#: lib/Format.php +#, php-format +msgid "%d seconds ago" +msgstr "قبل %d ثانية" + +#: lib/Format.php +#, php-format +msgid "%d minutes ago" +msgstr "قبل %d دقيقة" + +#: lib/Format.php +#, php-format +msgid "%d hours ago" +msgstr "قبل %d ساعة" + +#: lib/Format.php +#, php-format +msgid "%d days ago" +msgstr "قبل %d يوم" + +#: lib/HealthPage.php lib/Settings.php +msgid "Cacti Objects" +msgstr "كائنات Cacti" + +#: lib/HealthPage.php +msgid "Installed" +msgstr "مثبّت" + +#: lib/HealthPage.php lib/InventoryPage.php +msgid "Missing" +msgstr "مفقود" + +#: lib/HealthPage.php +msgid "Templates" +msgstr "القوالب" + +#: lib/HealthPage.php +msgid "Data Query File" +msgstr "ملف استعلام البيانات" + +#: lib/HealthPage.php +msgid "Last Install" +msgstr "آخر تثبيت" + +#: lib/HealthPage.php +msgid "Reinstall the Templates" +msgstr "إعادة تثبيت القوالب" + +#: lib/HealthPage.php lib/Pages.php +msgid "Fabric Health" +msgstr "حالة Fabric الصحية" + +#: lib/HealthPage.php +msgid "The health records could not be read. See the Cacti log." +msgstr "تعذّرت قراءة سجلات الحالة الصحية. راجع سجل Cacti." + +#: lib/HealthPage.php +msgid "Counter Sweeps" +msgstr "فحوص العدّادات" + +#: lib/HealthPage.php +msgid "Discovery" +msgstr "الاكتشاف" + +#: lib/HealthPage.php +msgid "Fabric" +msgstr "شبكة الربط" + +#: lib/HealthPage.php +msgid "Last Discovery" +msgstr "آخر اكتشاف" + +#: lib/HealthPage.php +msgid "Last Link Read" +msgstr "آخر قراءة للروابط" + +#: lib/HealthPage.php +msgid "Last Successful Discovery" +msgstr "آخر اكتشاف ناجح" + +#: lib/HealthPage.php +msgid "Link Read" +msgstr "قراءة الروابط" + +#: lib/HealthPage.php +msgid "Nodes / Ports Seen" +msgstr "العقد / المنافذ المُشاهَدة" + +#: lib/HealthPage.php +msgid "Skipped Link Lines" +msgstr "أسطر الروابط المتخطاة" + +#: lib/HealthPage.php +msgid "Unmatched Link Records" +msgstr "سجلات روابط غير مطابقة" + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: the inventory is %s; the last successful discovery was %s." +msgstr "شبكة الربط %s: المخزون %s؛ كان آخر اكتشاف ناجح %s." + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: it is assigned to poller %d, but only the main poller can sweep a fabric until remote poller support is added. It is not swept; assign it to the main poller." +msgstr "شبكة الربط %s: أُسندت إلى المُستطلِع %d، لكن لا يمكن فحصها إلا بالمُستطلِع الرئيسي حتى تُضاف إمكانية المُستطلِعات البعيدة. لا تُفحص حاليًا؛ أسندها إلى المُستطلِع الرئيسي." + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: %d iblinkinfo lines could not be read, most likely because a node description imitates the tool output. Those nodes keep their last link states." +msgstr "شبكة الربط %s: تعذّرت قراءة %d سطر من iblinkinfo، ويرجح أن وصف عقدة يحاكي خرج الأداة. تحتفظ هذه العقد بآخر حالات روابطها." + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: %s" +msgstr "شبكة الربط %s: %s" + +#: lib/HealthPage.php +msgid "disabled" +msgstr "معطّل" + +#: lib/HealthPage.php +msgid "Warnings" +msgstr "التحذيرات" + +#: lib/HealthPage.php +msgid "No warnings." +msgstr "لا توجد تحذيرات." + +#: lib/HealthPage.php lib/InventoryPage.php +msgid "Identity" +msgstr "الهوية" + +#: lib/HealthPage.php +#, php-format +msgid "%d identity conflicts and %d open re-link proposals. Resolve them on the Fabric Admin page." +msgstr "يوجد %d تعارض هوية و%d اقتراح إعادة ربط معلّق. عالجها في صفحة إدارة Fabric." + +#: lib/HealthPage.php +msgid "Counter Sweeps Needing Attention" +msgstr "فحوص عدّادات تتطلب الانتباه" + +#: lib/HealthPage.php +msgid "Duration" +msgstr "المدة" + +#: lib/HealthPage.php +msgid "Failure" +msgstr "الإخفاق" + +#: lib/HealthPage.php +msgid "Last Success" +msgstr "آخر نجاح" + +#: lib/HealthPage.php +msgid "Last Sweep" +msgstr "آخر فحص" + +#: lib/HealthPage.php +msgid "Outcome" +msgstr "النتيجة" + +#: lib/HealthPage.php +msgid "Ports Read / Failed / Skipped" +msgstr "المنافذ المقروءة / الفاشلة / المتخطاة" + +#: lib/HealthPage.php +#, php-format +msgid "%s s" +msgstr "%s ث" + +#: lib/HealthPage.php +msgid "Every swept node completed its last sweep." +msgstr "أكملت كل عقدة خضعت للفحص آخر فحص لها." + +#: lib/HealthPage.php +#, php-format +msgid "OK, %s s" +msgstr "سليم، %s ث" + +#: lib/InventoryPage.php +msgid "LID" +msgstr "LID" + +#: lib/InventoryPage.php +msgid "Last Seen" +msgstr "آخر ظهور" + +#: lib/InventoryPage.php +msgid "Presence" +msgstr "الوجود" + +#: lib/InventoryPage.php +msgid "Type" +msgstr "النوع" + +#: lib/InventoryPage.php +msgid "No nodes to show." +msgstr "لا توجد عقد لعرضها." + +#: lib/InventoryPage.php +msgid "No fabrics are defined yet." +msgstr "لم تُعرّف أي شبكة ربط بعد." + +#: lib/InventoryPage.php +msgid "Ports with the highest transmit wait" +msgstr "المنافذ ذات أعلى انتظار للإرسال" + +#: lib/InventoryPage.php +msgid "Ports with the Highest Transmit Wait" +msgstr "المنافذ ذات أعلى انتظار للإرسال" + +#: lib/InventoryPage.php +msgid "The fabric inventory could not be read. See the Cacti log." +msgstr "تعذّرت قراءة مخزون شبكة الربط. راجع سجل Cacti." + +#: lib/InventoryPage.php +msgid "Transmit wait counts ticks in which a port had data to send but could not send it, for lack of credits or arbitration. A high value shows congestion toward the remote end; it does not show that the port or its cable is faulty. The tick length is not published for current link speeds, so values are ticks per second, not time." +msgstr "يحسب انتظار الإرسال النبضات التي كانت لدى المنفذ خلالها بيانات لإرسالها لكنه لم يستطع بسبب نقص الأرصدة أو التحكيم. تدل القيمة المرتفعة على ازدحام باتجاه الطرف البعيد، ولا تدل على عطل في المنفذ أو كابله. لم تُنشر مدة النبضة لسرعات الروابط الحالية، لذا تُعبَّر القيم بنبضات في الثانية لا بوحدات زمنية." + +#: lib/InventoryPage.php +msgid "Port" +msgstr "المنفذ" + +#: lib/InventoryPage.php +msgid "Remote" +msgstr "البعيد" + +#: lib/InventoryPage.php +msgid "Transmit Discards (per second)" +msgstr "حزم الإرسال المُهمَلة (في الثانية)" + +#: lib/InventoryPage.php +msgid "Transmit Wait (ticks per second)" +msgstr "انتظار الإرسال (نبضات في الثانية)" + +#: lib/InventoryPage.php +msgid "No port has a current transmit wait rate." +msgstr "لا يملك أي منفذ معدل انتظار إرسال حاليًا." + +#: lib/InventoryPage.php lib/LinkCondition.php +msgid "Unknown" +msgstr "غير معروف" + +#: lib/InventoryPage.php +msgid "Fabric Node" +msgstr "عقدة شبكة الربط" + +#: lib/InventoryPage.php +msgid "The node does not exist or you may not see it." +msgstr "العقدة غير موجودة أو لا تملك إذنًا لرؤيتها." + +#: lib/InventoryPage.php +msgid "Active" +msgstr "نشط" + +#: lib/InventoryPage.php +msgid "Best Both Ends Support" +msgstr "أفضل ما يدعمه الطرفان" + +#: lib/InventoryPage.php +msgid "Counter Validity" +msgstr "صلاحية العدّادات" + +#: lib/InventoryPage.php +msgid "Counters" +msgstr "العدّادات" + +#: lib/InventoryPage.php +msgid "Graphs" +msgstr "الرسوم" + +#: lib/InventoryPage.php +msgid "Link" +msgstr "الرابط" + +#: lib/InventoryPage.php +msgid "No ports recorded yet." +msgstr "لم تُسجّل منافذ بعد." + +#: lib/InventoryPage.php +#, php-format +msgid "Device %d" +msgstr "الجهاز %d" + +#: lib/InventoryPage.php +#, php-format +msgid "%s counters saturated, published as unknown: %s" +msgstr "عدّادات %s مشبعة، نُشرت كقيم غير معروفة: %s" + +#: lib/InventoryPage.php +#, php-format +msgid "%s counters: %d discontinuities, the last %s" +msgstr "عدّادات %s: %d انقطاعات، آخرها %s" + +#: lib/InventoryPage.php +msgid "Valid" +msgstr "صالح" + +#: lib/LinkCondition.php +msgid "Up" +msgstr "متصل" + +#: lib/LinkCondition.php +msgid "Below best, limited by enabled values" +msgstr "دون الأفضل، مقيّد بالقيم المفعّلة" + +#: lib/LinkCondition.php +msgid "Below best, cause unknown" +msgstr "دون الأفضل، والسبب غير معروف" + +#: lib/LinkCondition.php +msgid "Degraded" +msgstr "متدهور" + +#: lib/LinkCondition.php +msgid "Down" +msgstr "غير متصل" + +#: lib/NodeType.php +msgid "Switch" +msgstr "مبدّل" + +#: lib/NodeType.php +msgid "Channel adapter" +msgstr "محوّل قناة" + +#: lib/NodeType.php +msgid "Router" +msgstr "موجّه" + +#: lib/OperatorPage.php +msgid "Review the recorded observations below. Acknowledgments are personal to this session, expire when observations change, and never suppress alerts or change health." +msgstr "راجع الملاحظات المسجلة أدناه. الإقرارات شخصية لهذه الجلسة، وتنتهي عند تغيّر الملاحظات، ولا تمنع التنبيهات أو تغيّر الحالة الصحية مطلقًا." + +#: lib/OperatorPage.php lib/Pages.php +msgid "Fabric Operations" +msgstr "عمليات Fabric" + +#: lib/OperatorPage.php +msgid "Investigation" +msgstr "التحقيق" + +#: lib/OperatorPage.php +msgid "Object" +msgstr "الكائن" + +#: lib/OperatorPage.php +msgid "Observed (UTC)" +msgstr "وقت الملاحظة (UTC)" + +#: lib/OperatorPage.php +msgid "Unknown or stale" +msgstr "غير معروف أو متقادم" + +#: lib/OperatorPage.php +msgid "Acknowledged; health unchanged." +msgstr "تم الإقرار؛ الحالة الصحية لم تتغير." + +#: lib/OperatorPage.php +msgid "Acknowledge" +msgstr "إقرار" + +#: lib/OperatorPage.php +msgid "No observations are available for devices you may access." +msgstr "لا تتوفر ملاحظات للأجهزة التي يمكنك الوصول إليها." + +#: lib/Pages.php +msgid "Fabric Operator" +msgstr "مشغّل Fabric" + +#: lib/Pages.php +msgid "Fabric View" +msgstr "عرض Fabric" + +#: lib/PrivilegeProbe.php +msgid "The sweep runs as root. Run the poller as an unprivileged account with read access to the umad devices through a group." +msgstr "يعمل الفحص بصلاحيات root. شغّل المُستطلِع بحساب غير ذي امتيازات يملك حق قراءة أجهزة umad عبر مجموعة." + +#: lib/PrivilegeProbe.php +msgid "A diagnostics tool has the setuid or setgid bit. The plugin never needs it." +msgstr "تحتوي إحدى أدوات التشخيص على بت setuid أو setgid. لا تحتاج الإضافة إليهما مطلقًا." + +#: lib/PrivilegeProbe.php +msgid "A diagnostics tool or its directory can be written by an account other than its owner, or by the poller account. Whoever can write it chooses what the poller runs." +msgstr "يمكن لحساب غير المالك أو لحساب المُستطلِع الكتابة إلى أداة تشخيص أو دليلها. من يملك حق الكتابة يحدد ما ينفذه المُستطلِع." + +#: lib/PrivilegeProbe.php +msgid "A umad device is readable or writable by every account, so any local user can query the fabric. Restrict it to a group." +msgstr "يمكن لكل حساب قراءة جهاز umad أو الكتابة إليه، لذا يستطيع أي مستخدم محلي الاستعلام عن شبكة الربط. احصر الوصول في مجموعة." + +#: lib/PrivilegeProbe.php lib/ToolDirectory.php +msgid "Unknown warning" +msgstr "تحذير غير معروف" + +#: lib/Settings.php +msgid "Diagnostics Tools" +msgstr "أدوات التشخيص" + +#: lib/Settings.php +msgid "Absolute directory, on each poller that sweeps a fabric, holding perfquery, ibnetdiscover, and iblinkinfo. The Debian and Ubuntu packages install them in /usr/sbin. No other program is ever run from it." +msgstr "الدليل المطلق الذي يحتوي على perfquery وibnetdiscover وiblinkinfo في كل مُستطلِع يفحص شبكة ربط. تثبّتها حزم Debian وUbuntu في /usr/sbin. لا يُشغَّل منه أي برنامج آخر مطلقًا." + +#: lib/Settings.php +msgid "Tool Directory" +msgstr "دليل الأدوات" + +#: lib/Settings.php +msgid "Node Name Map" +msgstr "خريطة أسماء العقد" + +#: lib/Settings.php +msgid "Optional absolute path to an infiniband-diags node name map file. Names it supplies are shown only; identity is always the node GUID." +msgstr "مسار مطلق اختياري لملف خريطة أسماء العقد في infiniband-diags. تُعرض الأسماء التي يوفرها فقط؛ تبقى الهوية دائمًا GUID العقدة." + +#: lib/Settings.php +msgid "Datagram Timeout" +msgstr "مهلة مخططات البيانات" + +#: lib/Settings.php +msgid "Milliseconds each management datagram may take before the tools retry it (their -t option)." +msgstr "المدة بالمللي ثانية المسموح بها لكل مخطط بيانات إدارة قبل أن تعيد الأدوات المحاولة (الخيار -t)." + +#: lib/Settings.php +msgid "Command Timeout" +msgstr "مهلة الأمر" + +#: lib/Settings.php +msgid "Seconds one tool run may take before it is stopped and recorded as failed." +msgstr "عدد الثواني المسموح بها لتشغيل أداة قبل إيقافها وتسجيل إخفاقها." + +#: lib/Settings.php +msgid "KiB one tool run may print. Larger output is discarded and recorded as failed." +msgstr "حجم الخرج المسموح به لكل تشغيل بوحدة KiB. يُهمَل الخرج الأكبر ويُسجّل إخفاق." + +#: lib/Settings.php +msgid "Maximum Output" +msgstr "الخرج الأقصى" + +#: lib/Settings.php +msgid "Sweep" +msgstr "الفحص" + +#: lib/Settings.php +msgid "Node Time Budget" +msgstr "الوقت المخصص للعقدة" + +#: lib/Settings.php +msgid "Seconds one node sweep may spend reading counters. Ports not reached are read in the next cycle." +msgstr "عدد الثواني التي يمكن أن ينفقها فحص عقدة في قراءة العدّادات. تُقرأ المنافذ التي لم تُبلَغ في الدورة التالية." + +#: lib/Settings.php +msgid "Failed ports after which a node sweep stops for this cycle. A port that does not answer costs several seconds." +msgstr "عدد المنافذ الفاشلة الذي يتوقف بعده فحص العقدة في هذه الدورة. يستهلك المنفذ الذي لا يستجيب عدة ثوانٍ." + +#: lib/Settings.php +msgid "Node Failure Budget" +msgstr "حد الإخفاقات للعقدة" + +#: lib/Settings.php +msgid "Index Down Ports" +msgstr "فهرسة المنافذ غير المتصلة" + +#: lib/Settings.php +msgid "When checked, the Fabric Port data query also lists ports that are down and have no remote end, such as unused adapter ports. Cleared, they are left out until they come up." +msgstr "عند التحديد، يسرد استعلام Fabric Port أيضًا المنافذ غير المتصلة التي لا طرف بعيد لها، مثل منافذ المحوّل غير المستخدمة. وإلا تُستبعد حتى تتصل." + +#: lib/Settings.php +msgid "Uninstall" +msgstr "إلغاء التثبيت" + +#: lib/Settings.php +msgid "Keep Plugin Tables on Uninstall" +msgstr "الاحتفاظ بجداول الإضافة عند إلغاء التثبيت" + +#: lib/Settings.php +msgid "When checked, uninstalling the plugin keeps its fabrics, inventory, and samples. Clear it to have the uninstall drop them; export the inventory first from the Fabric Admin page. The fabric is never contacted either way." +msgstr "عند التحديد، يحتفظ إلغاء التثبيت بشبكات الربط والمخزون والعينات. ألغِ التحديد لحذفها؛ صدّر المخزون أولًا من صفحة إدارة Fabric. لا يُتصل بشبكة الربط في الحالتين." + +#: lib/ToolDirectory.php +msgid "The tool directory must be an absolute path of letters, digits, dots, dashes, underscores, and slashes, with no trailing slash." +msgstr "يجب أن يكون دليل الأدوات مسارًا مطلقًا من أحرف وأرقام ونقاط وشرطات وشرطات سفلية وشرطات مائلة، دون شرطة مائلة نهائية." + +#: lib/ToolDirectory.php +msgid "The tool directory does not exist or is not a directory." +msgstr "دليل الأدوات غير موجود أو ليس دليلًا." + +#: lib/ToolDirectory.php +msgid "The tool directory path contains a symbolic link. Enter the real path." +msgstr "يحتوي مسار دليل الأدوات على رابط رمزي. أدخل المسار الحقيقي." + +#: lib/ToolDirectory.php +msgid "The tool directory is not owned by root." +msgstr "دليل الأدوات غير مملوك لـ root." + +#: lib/ToolDirectory.php +msgid "The tool directory can be written by its group or by others." +msgstr "يمكن للمجموعة أو للآخرين الكتابة إلى دليل الأدوات." + +#: setup.php +#, php-format +msgid "The Fabric plugin requires PHP %s or later. This server runs PHP %s, so the plugin was not installed or enabled." +msgstr "تتطلب إضافة Fabric الإصدار PHP %s أو أحدث. يشغّل هذا الخادم PHP %s، لذا لم تُثبَّت الإضافة أو تُفعَّل." + +#: setup.php +msgid "The Fabric plugin is not enabled." +msgstr "إضافة Fabric غير مفعّلة." + +#: setup.php +#, php-format +msgid "The Fabric plugin requires PHP %s or later." +msgstr "تتطلب إضافة Fabric الإصدار PHP %s أو أحدث." + +#: setup.php +msgid "Management" +msgstr "الإدارة" + +#: setup.php +#, php-format +msgid "The Tool Directory was not saved. %s" +msgstr "لم يُحفظ دليل الأدوات. %s" diff --git a/locales/po/cacti.pot b/locales/po/cacti.pot index 6e03d8f..d248bcf 100644 --- a/locales/po/cacti.pot +++ b/locales/po/cacti.pot @@ -109,6 +109,18 @@ msgstr "" msgid "The Fabric templates were not installed. See the Cacti Objects table and the Cacti log." msgstr "" +#: fabric_operator.php +msgid "Monitoring view" +msgstr "" + +#: fabric_operator.php +msgid "Observations could not be read. Ask an administrator to check the plugin log." +msgstr "" + +#: include/operator.php +msgid "Inspect port validity, link width and speed, and the congestion view. Escalate identity conflicts and device relinking to an administrator; do not reset counters." +msgstr "" + #: lib/AdminPage.php lib/HealthPage.php lib/Pages.php msgid "Fabric Admin" msgstr "" @@ -122,7 +134,7 @@ msgstr "" msgid "Fabrics" msgstr "" -#: lib/AdminPage.php +#: lib/AdminPage.php lib/OperatorPage.php msgid "Actions" msgstr "" @@ -146,7 +158,7 @@ msgstr "" msgid "Poller" msgstr "" -#: lib/AdminPage.php lib/InventoryPage.php +#: lib/AdminPage.php lib/InventoryPage.php lib/OperatorPage.php msgid "State" msgstr "" @@ -445,7 +457,7 @@ msgstr "" msgid "Adapter Port: enter the port number of the local adapter, from 1 to %d." msgstr "" -#: lib/Format.php lib/InventoryPage.php +#: lib/Format.php lib/InventoryPage.php lib/OperatorPage.php msgid "Never" msgstr "" @@ -779,6 +791,46 @@ msgstr "" msgid "Router" msgstr "" +#: lib/OperatorPage.php +msgid "Review the recorded observations below. Acknowledgments are personal to this session, expire when observations change, and never suppress alerts or change health." +msgstr "" + +#: lib/OperatorPage.php lib/Pages.php +msgid "Fabric Operations" +msgstr "" + +#: lib/OperatorPage.php +msgid "Investigation" +msgstr "" + +#: lib/OperatorPage.php +msgid "Object" +msgstr "" + +#: lib/OperatorPage.php +msgid "Observed (UTC)" +msgstr "" + +#: lib/OperatorPage.php +msgid "Unknown or stale" +msgstr "" + +#: lib/OperatorPage.php +msgid "Acknowledged; health unchanged." +msgstr "" + +#: lib/OperatorPage.php +msgid "Acknowledge" +msgstr "" + +#: lib/OperatorPage.php +msgid "No observations are available for devices you may access." +msgstr "" + +#: lib/Pages.php +msgid "Fabric Operator" +msgstr "" + #: lib/Pages.php msgid "Fabric View" msgstr "" diff --git a/locales/po/es-419.po b/locales/po/es-419.po new file mode 100644 index 0000000..a38a13f --- /dev/null +++ b/locales/po/es-419.po @@ -0,0 +1,981 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# +msgid "" +msgstr "" +"Project-Id-Version: fabric 0.1.0-dev\n" +"Report-Msgid-Bugs-To: https://github.com/somethingwithproof/plugin_fabric/issues\n" +"PO-Revision-Date: 2026-11-17 00:00+0000\n" +"Last-Translator: Thomas Vincent \n" +"Language-Team: Thomas Vincent \n" +"Language: es-419\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: fabric_admin.php +msgid "The node changed after the page was drawn, so nothing was done. Review it and try again." +msgstr "El nodo cambió después de mostrar la página, por lo que no se realizó ninguna acción. Revíselo e inténtelo de nuevo." + +#: fabric_admin.php +msgid "Your device permissions do not allow changing this record." +msgstr "Sus permisos sobre los dispositivos no permiten cambiar este registro." + +#: fabric_admin.php +msgid "Name: another fabric already uses this name." +msgstr "Nombre: otra red InfiniBand ya utiliza este nombre." + +#: fabric_admin.php +msgid "Adapter: another fabric already sweeps this adapter port on this poller. One fabric per adapter port." +msgstr "Adaptador: otra red ya consulta este puerto del adaptador en este sondeador. Solo se permite una red por puerto del adaptador." + +#: fabric_admin.php +msgid "The fabric could not be saved." +msgstr "No se pudo guardar la red InfiniBand." + +#: fabric_admin.php +msgid "The fabric was saved." +msgstr "Se ha guardado la red InfiniBand." + +#: fabric_admin.php +msgid "A sweep of this fabric is running, so nothing was deleted. Try again when it finishes." +msgstr "Hay una consulta de esta red en curso, por lo que no se ha eliminado nada. Inténtelo de nuevo cuando termine." + +#: fabric_admin.php +msgid "The fabric and its inventory were deleted. No Cacti device was changed and the fabric was not contacted." +msgstr "Se han eliminado la red y su inventario. No se modificó ningún dispositivo Cacti ni se contactó con la red." + +#: fabric_admin.php +msgid "The fabric could not be deleted." +msgstr "No se pudo eliminar la red InfiniBand." + +#: fabric_admin.php +msgid "The node identity was not changed." +msgstr "No se ha cambiado la identidad del nodo." + +#: fabric_admin.php +msgid "The node identity was updated. It is swept again from the next cycle." +msgstr "Se ha actualizado la identidad del nodo. Se volverá a consultar a partir del siguiente ciclo." + +#: fabric_admin.php +msgid "The device mapping moved to the new node." +msgstr "La asociación del dispositivo se ha trasladado al nodo nuevo." + +#: fabric_admin.php +msgid "The proposal could not be confirmed. The nodes may have changed since it was made." +msgstr "No se pudo confirmar la propuesta. Los nodos pueden haber cambiado desde que se creó." + +#: fabric_admin.php +msgid "The proposal could not be rejected." +msgstr "No se pudo rechazar la propuesta." + +#: fabric_admin.php +msgid "The proposal was rejected." +msgstr "Se ha rechazado la propuesta." + +#: fabric_admin.php +#, php-format +msgid "The node mapping was not changed. %s" +msgstr "No se ha cambiado la asociación del nodo. %s" + +#: fabric_admin.php +msgid "The node mapping was not changed." +msgstr "No se ha cambiado la asociación del nodo." + +#: fabric_admin.php +msgid "The node mapping was saved." +msgstr "Se ha guardado la asociación del nodo." + +#: fabric_admin.php +msgid "No device was created. See the Cacti log." +msgstr "No se ha creado ningún dispositivo. Consulte el registro de Cacti." + +#: fabric_admin.php +msgid "The device was created and the node mapped to it. Choose the ports to graph on the New Graphs page." +msgstr "Se ha creado el dispositivo y se le ha asociado el nodo. Elija los puertos que desea representar en la página Nuevos gráficos." + +#: fabric_admin.php +msgid "The inventory could not be read for export." +msgstr "No se pudo leer el inventario para exportarlo." + +#: fabric_health.php +msgid "The Fabric templates and data query file were installed." +msgstr "Se han instalado las plantillas de Fabric y el archivo de consulta de datos." + +#: fabric_health.php +msgid "The Fabric templates were not installed. See the Cacti Objects table and the Cacti log." +msgstr "No se han instalado las plantillas de Fabric. Consulte la tabla Objetos de Cacti y el registro de Cacti." + +#: fabric_operator.php +msgid "Monitoring view" +msgstr "Vista de supervisión" + +#: fabric_operator.php +msgid "Observations could not be read. Ask an administrator to check the plugin log." +msgstr "No se pudieron leer las observaciones. Pida a un administrador que revise el registro del complemento." + +#: include/operator.php +msgid "Inspect port validity, link width and speed, and the congestion view. Escalate identity conflicts and device relinking to an administrator; do not reset counters." +msgstr "Revise la validez de los puertos, la anchura y velocidad de los enlaces y la vista de congestión. Solicite a un administrador que resuelva los conflictos de identidad y las reasociaciones de dispositivos; no reinicie los contadores." + +#: lib/AdminPage.php lib/HealthPage.php lib/Pages.php +msgid "Fabric Admin" +msgstr "Administración de Fabric" + +#: lib/AdminPage.php +msgid "The fabric records could not be read. See the Cacti log." +msgstr "No se pudieron leer los registros de las redes. Consulte el registro de Cacti." + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php lib/Pages.php +#: setup.php +msgid "Fabrics" +msgstr "Redes InfiniBand" + +#: lib/AdminPage.php lib/OperatorPage.php +msgid "Actions" +msgstr "Acciones" + +#: lib/AdminPage.php +msgid "Adapter" +msgstr "Adaptador" + +#: lib/AdminPage.php +msgid "Backend" +msgstr "Motor" + +#: lib/AdminPage.php +msgid "Name" +msgstr "Nombre" + +#: lib/AdminPage.php +msgid "Nodes" +msgstr "Nodos" + +#: lib/AdminPage.php +msgid "Poller" +msgstr "Sondeador" + +#: lib/AdminPage.php lib/InventoryPage.php lib/OperatorPage.php +msgid "State" +msgstr "Estado" + +#: lib/AdminPage.php +msgid "Sweep Interval" +msgstr "Intervalo de consulta" + +#: lib/AdminPage.php lib/HealthPage.php +msgid "No fabrics defined yet." +msgstr "Todavía no se ha definido ninguna red." + +#: lib/AdminPage.php +#, php-format +msgid "Deleted poller (ID %d)" +msgstr "Sondeador eliminado (ID %d)" + +#: lib/AdminPage.php +#, php-format +msgid "port %d" +msgstr "puerto %d" + +#: lib/AdminPage.php +#, php-format +msgid "%d seconds" +msgstr "%d segundos" + +#: lib/AdminPage.php +msgid "Delete" +msgstr "Eliminar" + +#: lib/AdminPage.php +msgid "Holds devices you may not see" +msgstr "Contiene dispositivos que no puede ver" + +#: lib/AdminPage.php +msgid "Export" +msgstr "Exportar" + +#: lib/AdminPage.php +msgid "Download the fabrics and node inventory, with device mappings, as JSON before an uninstall that drops the plugin tables. It holds no credential." +msgstr "Antes de desinstalar y eliminar las tablas del complemento, descargue las redes y el inventario de nodos, con sus asociaciones de dispositivos, en formato JSON. No contiene credenciales." + +#: lib/AdminPage.php lib/InventoryPage.php +#, php-format +msgid "Fabric: %s" +msgstr "Red InfiniBand: %s" + +#: lib/AdminPage.php +msgid "New Fabric" +msgstr "Nueva red InfiniBand" + +#: lib/AdminPage.php +msgid "Sweep Interval (seconds)" +msgstr "Intervalo de consulta (segundos)" + +#: lib/AdminPage.php +msgid "Adapter Port" +msgstr "Puerto del adaptador" + +#: lib/AdminPage.php +msgid "Enabled" +msgstr "Habilitado" + +#: lib/AdminPage.php +msgid "Save" +msgstr "Guardar" + +#: lib/AdminPage.php +#, php-format +msgid "Delete Fabric: %s" +msgstr "Eliminar red InfiniBand: %s" + +#: lib/AdminPage.php +#, php-format +msgid "Delete this fabric with its %d nodes, their ports, samples, and proposals? %d nodes are mapped to Cacti devices; those devices, their data sources, and RRD files are kept. The fabric is not contacted." +msgstr "¿Desea eliminar esta red con sus %d nodos, puertos, muestras y propuestas? Hay %d nodos asociados a dispositivos Cacti; se conservarán esos dispositivos, sus fuentes de datos y sus archivos RRD. No se contactará con la red." + +#: lib/AdminPage.php lib/InventoryPage.php +msgid "Unmapped" +msgstr "Sin asociación" + +#: lib/AdminPage.php +#, php-format +msgid "Deleted device (ID %d)" +msgstr "Dispositivo eliminado (ID %d)" + +#: lib/AdminPage.php lib/InventoryPage.php +#, php-format +msgid "Fabric Node: %s" +msgstr "Nodo de red InfiniBand: %s" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php +msgid "GUID" +msgstr "GUID" + +#: lib/AdminPage.php +msgid "Devices Matching the Node Name" +msgstr "Dispositivos cuyo nombre coincide con el del nodo" + +#: lib/AdminPage.php +#, php-format +msgid "%s (device %d)" +msgstr "%s (dispositivo %d)" + +#: lib/AdminPage.php +msgid "None" +msgstr "Ninguno" + +#: lib/AdminPage.php +msgid "Cacti Device" +msgstr "Dispositivo Cacti" + +#: lib/AdminPage.php +msgid "Saving maps the node to the device and adds the Fabric Port data query to the device, which lists the node's ports. No graph, data source, or device setting is changed. The device must be polled by the poller that sweeps the fabric." +msgstr "Al guardar, el nodo se asocia al dispositivo y se añade la consulta de datos Fabric Port, que enumera sus puertos. No se modifica ningún gráfico, fuente de datos ni ajuste del dispositivo. Este debe usar el mismo sondeador que consulta la red." + +#: lib/AdminPage.php +msgid "Create a Device for This Node" +msgstr "Crear un dispositivo para este nodo" + +#: lib/AdminPage.php +msgid "Devices cannot be created here." +msgstr "No se pueden crear dispositivos aquí." + +#: lib/AdminPage.php +#, php-format +msgid "Create a Device for %s" +msgstr "Crear un dispositivo para %s" + +#: lib/AdminPage.php +msgid "Creating the device adds:" +msgstr "Al crear el dispositivo se añade:" + +#: lib/AdminPage.php +msgid "Create" +msgstr "Crear" + +#: lib/AdminPage.php +msgid "Identity Conflicts" +msgstr "Conflictos de identidad" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php +msgid "Node" +msgstr "Nodo" + +#: lib/AdminPage.php +msgid "Seen" +msgstr "Observado" + +#: lib/AdminPage.php +msgid "Stored" +msgstr "Almacenado" + +#: lib/AdminPage.php +msgid "No conflicts." +msgstr "No hay conflictos." + +#: lib/AdminPage.php +msgid "Printed twice in one discovery" +msgstr "Aparece dos veces en un mismo descubrimiento" + +#: lib/AdminPage.php +msgid "Accept Seen Identity" +msgstr "Aceptar la identidad observada" + +#: lib/AdminPage.php +msgid "Re-link Proposals" +msgstr "Propuestas de reasociación" + +#: lib/AdminPage.php lib/InventoryPage.php +msgid "Device" +msgstr "Dispositivo" + +#: lib/AdminPage.php +msgid "Missing Node" +msgstr "Nodo ausente" + +#: lib/AdminPage.php +msgid "New Node" +msgstr "Nodo nuevo" + +#: lib/AdminPage.php +msgid "Shared Neighbor Port" +msgstr "Puerto vecino compartido" + +#: lib/AdminPage.php +msgid "No open proposals." +msgstr "No hay propuestas pendientes." + +#: lib/AdminPage.php +msgid "Confirm" +msgstr "Confirmar" + +#: lib/AdminPage.php +msgid "Reject" +msgstr "Rechazar" + +#: lib/Backend.php +msgid "Diagnostics tools (infiniband-diags)" +msgstr "Herramientas de diagnóstico (infiniband-diags)" + +#: lib/CommandError.php +msgid "The fabric or plugin settings are incomplete or invalid" +msgstr "Los ajustes de la red o del complemento están incompletos o no son válidos" + +#: lib/CommandError.php +msgid "The tool is missing or not executable in the configured directory" +msgstr "La herramienta no existe o no es ejecutable en el directorio configurado" + +#: lib/CommandError.php +msgid "The tool exceeded its time limit and was stopped" +msgstr "La herramienta superó el límite de tiempo y se detuvo" + +#: lib/CommandError.php +msgid "The tool output exceeded the size limit and was discarded" +msgstr "La salida de la herramienta superó el límite de tamaño y se descartó" + +#: lib/CommandError.php +msgid "The tool failed" +msgstr "La herramienta falló" + +#: lib/CommandError.php +msgid "The tool output did not have the expected form" +msgstr "La salida de la herramienta no tenía el formato esperado" + +#: lib/CommandError.php +msgid "Not attempted: the time or failure budget was spent" +msgstr "No se intentó: se agotó el presupuesto de tiempo o de fallos" + +#: lib/CommandError.php +msgid "The plugin tables could not be read or written" +msgstr "No se pudieron leer o escribir las tablas del complemento" + +#: lib/DeviceProvisioner.php +msgid "The Fabric templates are not installed. Reinstall them from the health page." +msgstr "Las plantillas de Fabric no están instaladas. Vuelva a instalarlas desde la página de estado." + +#: lib/DeviceProvisioner.php +msgid "The node is already mapped to a device." +msgstr "El nodo ya está asociado a un dispositivo." + +#: lib/DeviceProvisioner.php +msgid "The node's fabric is not swept by the main poller, so its device could not be polled." +msgstr "El sondeador principal no consulta la red del nodo, por lo que no podría sondear su dispositivo." + +#: lib/DeviceProvisioner.php +msgid "The device does not exist." +msgstr "El dispositivo no existe." + +#: lib/DeviceProvisioner.php +msgid "The device is polled by another poller than the one that sweeps this fabric, so it could not read the fabric cache." +msgstr "El dispositivo utiliza un sondeador distinto del que consulta esta red, por lo que no podría leer su caché." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "A device \"%s\" from the %s device template, host name %s, polled by poller %d, with availability checks and SNMP off." +msgstr "Un dispositivo «%s» de la plantilla %s, con nombre de host %s, sondeado por el sondeador %d y con las comprobaciones de disponibilidad y SNMP desactivadas." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "The %s data query on it, listing the node's ports. It creates no graph and no data source by itself." +msgstr "La consulta de datos %s, que enumera los puertos del nodo. Por sí sola no crea ningún gráfico ni fuente de datos." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "Created by the Fabric plugin for node %s. Its values come from the plugin cache; the host name is a reserved name that is never contacted." +msgstr "Creado por el complemento Fabric para el nodo %s. Los valores proceden de la caché del complemento; el nombre de host es un nombre reservado con el que nunca se establece contacto." + +#: lib/FabricInput.php +msgid "Name: use 1 to 64 letters, digits, spaces, dots, dashes, or underscores, starting with a letter or digit." +msgstr "Nombre: utilice entre 1 y 64 letras, dígitos, espacios, puntos, guiones o guiones bajos, comenzando por una letra o un dígito." + +#: lib/FabricInput.php +msgid "Backend: choose one of the listed backends." +msgstr "Motor: elija uno de los motores de la lista." + +#: lib/FabricInput.php +msgid "Poller: choose one of the listed pollers." +msgstr "Sondeador: elija uno de los sondeadores de la lista." + +#: lib/FabricInput.php +msgid "Poller: only the main poller can sweep a fabric until remote poller support is added." +msgstr "Sondeador: hasta que se añada compatibilidad con sondeadores remotos, solo el principal puede consultar una red." + +#: lib/FabricInput.php +#, php-format +msgid "Sweep Interval: enter whole seconds from %d to %d." +msgstr "Intervalo de consulta: introduzca un número entero de segundos entre %d y %d." + +#: lib/FabricInput.php +msgid "Adapter: enter the local adapter name as the kernel names it, such as mlx5_0." +msgstr "Adaptador: introduzca el nombre del adaptador local tal como lo denomina el kernel, por ejemplo mlx5_0." + +#: lib/FabricInput.php +#, php-format +msgid "Adapter Port: enter the port number of the local adapter, from 1 to %d." +msgstr "Puerto del adaptador: introduzca el número de puerto del adaptador local, entre 1 y %d." + +#: lib/Format.php lib/InventoryPage.php lib/OperatorPage.php +msgid "Never" +msgstr "Nunca" + +#: lib/Format.php +#, php-format +msgid "%d seconds ago" +msgstr "Hace %d segundos" + +#: lib/Format.php +#, php-format +msgid "%d minutes ago" +msgstr "Hace %d minutos" + +#: lib/Format.php +#, php-format +msgid "%d hours ago" +msgstr "Hace %d horas" + +#: lib/Format.php +#, php-format +msgid "%d days ago" +msgstr "Hace %d días" + +#: lib/HealthPage.php lib/Settings.php +msgid "Cacti Objects" +msgstr "Objetos de Cacti" + +#: lib/HealthPage.php +msgid "Installed" +msgstr "Instalado" + +#: lib/HealthPage.php lib/InventoryPage.php +msgid "Missing" +msgstr "Ausente" + +#: lib/HealthPage.php +msgid "Templates" +msgstr "Plantillas" + +#: lib/HealthPage.php +msgid "Data Query File" +msgstr "Archivo de consulta de datos" + +#: lib/HealthPage.php +msgid "Last Install" +msgstr "Última instalación" + +#: lib/HealthPage.php +msgid "Reinstall the Templates" +msgstr "Reinstalar las plantillas" + +#: lib/HealthPage.php lib/Pages.php +msgid "Fabric Health" +msgstr "Estado de Fabric" + +#: lib/HealthPage.php +msgid "The health records could not be read. See the Cacti log." +msgstr "No se pudieron leer los registros de estado. Consulte el registro de Cacti." + +#: lib/HealthPage.php +msgid "Counter Sweeps" +msgstr "Consultas de contadores" + +#: lib/HealthPage.php +msgid "Discovery" +msgstr "Descubrimiento" + +#: lib/HealthPage.php +msgid "Fabric" +msgstr "Red InfiniBand" + +#: lib/HealthPage.php +msgid "Last Discovery" +msgstr "Último descubrimiento" + +#: lib/HealthPage.php +msgid "Last Link Read" +msgstr "Última lectura de enlaces" + +#: lib/HealthPage.php +msgid "Last Successful Discovery" +msgstr "Último descubrimiento correcto" + +#: lib/HealthPage.php +msgid "Link Read" +msgstr "Lectura de enlaces" + +#: lib/HealthPage.php +msgid "Nodes / Ports Seen" +msgstr "Nodos / puertos observados" + +#: lib/HealthPage.php +msgid "Skipped Link Lines" +msgstr "Líneas de enlaces omitidas" + +#: lib/HealthPage.php +msgid "Unmatched Link Records" +msgstr "Registros de enlaces sin correspondencia" + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: the inventory is %s; the last successful discovery was %s." +msgstr "Red %s: el inventario está %s; el último descubrimiento correcto fue %s." + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: it is assigned to poller %d, but only the main poller can sweep a fabric until remote poller support is added. It is not swept; assign it to the main poller." +msgstr "Red %s: está asignada al sondeador %d, pero solo el principal puede consultarla hasta que se admitan sondeadores remotos. No se está consultando; asígnela al sondeador principal." + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: %d iblinkinfo lines could not be read, most likely because a node description imitates the tool output. Those nodes keep their last link states." +msgstr "Red %s: no se pudieron leer %d líneas de iblinkinfo, probablemente porque la descripción de un nodo imita la salida de la herramienta. Esos nodos conservan su último estado de enlace." + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: %s" +msgstr "Red %s: %s" + +#: lib/HealthPage.php +msgid "disabled" +msgstr "deshabilitado" + +#: lib/HealthPage.php +msgid "Warnings" +msgstr "Advertencias" + +#: lib/HealthPage.php +msgid "No warnings." +msgstr "No hay advertencias." + +#: lib/HealthPage.php lib/InventoryPage.php +msgid "Identity" +msgstr "Identidad" + +#: lib/HealthPage.php +#, php-format +msgid "%d identity conflicts and %d open re-link proposals. Resolve them on the Fabric Admin page." +msgstr "Hay %d conflictos de identidad y %d propuestas de reasociación pendientes. Resuélvalos en la página Administración de Fabric." + +#: lib/HealthPage.php +msgid "Counter Sweeps Needing Attention" +msgstr "Consultas de contadores que requieren atención" + +#: lib/HealthPage.php +msgid "Duration" +msgstr "Duración" + +#: lib/HealthPage.php +msgid "Failure" +msgstr "Fallo" + +#: lib/HealthPage.php +msgid "Last Success" +msgstr "Último éxito" + +#: lib/HealthPage.php +msgid "Last Sweep" +msgstr "Última consulta" + +#: lib/HealthPage.php +msgid "Outcome" +msgstr "Resultado" + +#: lib/HealthPage.php +msgid "Ports Read / Failed / Skipped" +msgstr "Puertos leídos / fallidos / omitidos" + +#: lib/HealthPage.php +#, php-format +msgid "%s s" +msgstr "%s s" + +#: lib/HealthPage.php +msgid "Every swept node completed its last sweep." +msgstr "Todos los nodos consultados completaron su última consulta." + +#: lib/HealthPage.php +#, php-format +msgid "OK, %s s" +msgstr "Correcto, %s s" + +#: lib/InventoryPage.php +msgid "LID" +msgstr "LID" + +#: lib/InventoryPage.php +msgid "Last Seen" +msgstr "Última detección" + +#: lib/InventoryPage.php +msgid "Presence" +msgstr "Presencia" + +#: lib/InventoryPage.php +msgid "Type" +msgstr "Tipo" + +#: lib/InventoryPage.php +msgid "No nodes to show." +msgstr "No hay nodos que mostrar." + +#: lib/InventoryPage.php +msgid "No fabrics are defined yet." +msgstr "Todavía no se ha definido ninguna red." + +#: lib/InventoryPage.php +msgid "Ports with the highest transmit wait" +msgstr "Puertos con mayor espera de transmisión" + +#: lib/InventoryPage.php +msgid "Ports with the Highest Transmit Wait" +msgstr "Puertos con mayor espera de transmisión" + +#: lib/InventoryPage.php +msgid "The fabric inventory could not be read. See the Cacti log." +msgstr "No se pudo leer el inventario de la red. Consulte el registro de Cacti." + +#: lib/InventoryPage.php +msgid "Transmit wait counts ticks in which a port had data to send but could not send it, for lack of credits or arbitration. A high value shows congestion toward the remote end; it does not show that the port or its cable is faulty. The tick length is not published for current link speeds, so values are ticks per second, not time." +msgstr "La espera de transmisión cuenta los ticks durante los que un puerto tenía datos que enviar pero no podía hacerlo por falta de créditos o por arbitraje. Un valor alto indica congestión hacia el extremo remoto; no indica un fallo del puerto ni del cable. La duración del tick no está publicada para las velocidades actuales, por lo que los valores son ticks por segundo, no tiempo." + +#: lib/InventoryPage.php +msgid "Port" +msgstr "Puerto" + +#: lib/InventoryPage.php +msgid "Remote" +msgstr "Remoto" + +#: lib/InventoryPage.php +msgid "Transmit Discards (per second)" +msgstr "Descartes de transmisión (por segundo)" + +#: lib/InventoryPage.php +msgid "Transmit Wait (ticks per second)" +msgstr "Espera de transmisión (ticks por segundo)" + +#: lib/InventoryPage.php +msgid "No port has a current transmit wait rate." +msgstr "Ningún puerto tiene una tasa actual de espera de transmisión." + +#: lib/InventoryPage.php lib/LinkCondition.php +msgid "Unknown" +msgstr "Desconocido" + +#: lib/InventoryPage.php +msgid "Fabric Node" +msgstr "Nodo de red InfiniBand" + +#: lib/InventoryPage.php +msgid "The node does not exist or you may not see it." +msgstr "El nodo no existe o no tiene permiso para verlo." + +#: lib/InventoryPage.php +msgid "Active" +msgstr "Activo" + +#: lib/InventoryPage.php +msgid "Best Both Ends Support" +msgstr "Máximo admitido por ambos extremos" + +#: lib/InventoryPage.php +msgid "Counter Validity" +msgstr "Validez de los contadores" + +#: lib/InventoryPage.php +msgid "Counters" +msgstr "Contadores" + +#: lib/InventoryPage.php +msgid "Graphs" +msgstr "Gráficos" + +#: lib/InventoryPage.php +msgid "Link" +msgstr "Enlace" + +#: lib/InventoryPage.php +msgid "No ports recorded yet." +msgstr "Todavía no hay puertos registrados." + +#: lib/InventoryPage.php +#, php-format +msgid "Device %d" +msgstr "Dispositivo %d" + +#: lib/InventoryPage.php +#, php-format +msgid "%s counters saturated, published as unknown: %s" +msgstr "Contadores %s saturados, publicados como desconocidos: %s" + +#: lib/InventoryPage.php +#, php-format +msgid "%s counters: %d discontinuities, the last %s" +msgstr "Contadores %s: %d discontinuidades, la última %s" + +#: lib/InventoryPage.php +msgid "Valid" +msgstr "Válido" + +#: lib/LinkCondition.php +msgid "Up" +msgstr "Activo" + +#: lib/LinkCondition.php +msgid "Below best, limited by enabled values" +msgstr "Por debajo del máximo, limitado por los valores habilitados" + +#: lib/LinkCondition.php +msgid "Below best, cause unknown" +msgstr "Por debajo del máximo, causa desconocida" + +#: lib/LinkCondition.php +msgid "Degraded" +msgstr "Degradado" + +#: lib/LinkCondition.php +msgid "Down" +msgstr "Inactivo" + +#: lib/NodeType.php +msgid "Switch" +msgstr "Conmutador" + +#: lib/NodeType.php +msgid "Channel adapter" +msgstr "Adaptador de canal" + +#: lib/NodeType.php +msgid "Router" +msgstr "Enrutador" + +#: lib/OperatorPage.php +msgid "Review the recorded observations below. Acknowledgments are personal to this session, expire when observations change, and never suppress alerts or change health." +msgstr "Revise las observaciones registradas a continuación. Los acuses de recibo son personales y exclusivos de esta sesión, caducan cuando cambian las observaciones y no suprimen alertas ni modifican el estado de salud." + +#: lib/OperatorPage.php lib/Pages.php +msgid "Fabric Operations" +msgstr "Operaciones de Fabric" + +#: lib/OperatorPage.php +msgid "Investigation" +msgstr "Investigación" + +#: lib/OperatorPage.php +msgid "Object" +msgstr "Objeto" + +#: lib/OperatorPage.php +msgid "Observed (UTC)" +msgstr "Observado (UTC)" + +#: lib/OperatorPage.php +msgid "Unknown or stale" +msgstr "Desconocido o desactualizado" + +#: lib/OperatorPage.php +msgid "Acknowledged; health unchanged." +msgstr "Acuse de recibo registrado; estado de salud sin cambios." + +#: lib/OperatorPage.php +msgid "Acknowledge" +msgstr "Acusar recibo" + +#: lib/OperatorPage.php +msgid "No observations are available for devices you may access." +msgstr "No hay observaciones disponibles para los dispositivos a los que tiene acceso." + +#: lib/Pages.php +msgid "Fabric Operator" +msgstr "Operador de Fabric" + +#: lib/Pages.php +msgid "Fabric View" +msgstr "Vista de Fabric" + +#: lib/PrivilegeProbe.php +msgid "The sweep runs as root. Run the poller as an unprivileged account with read access to the umad devices through a group." +msgstr "La consulta se ejecuta como root. Ejecute el sondeador con una cuenta sin privilegios que tenga acceso de lectura a los dispositivos umad mediante un grupo." + +#: lib/PrivilegeProbe.php +msgid "A diagnostics tool has the setuid or setgid bit. The plugin never needs it." +msgstr "Una herramienta de diagnóstico tiene el bit setuid o setgid. El complemento nunca lo necesita." + +#: lib/PrivilegeProbe.php +msgid "A diagnostics tool or its directory can be written by an account other than its owner, or by the poller account. Whoever can write it chooses what the poller runs." +msgstr "Una herramienta de diagnóstico o su directorio permite escritura a una cuenta distinta de su propietario o a la cuenta del sondeador. Quien pueda escribir ahí decide qué ejecuta el sondeador." + +#: lib/PrivilegeProbe.php +msgid "A umad device is readable or writable by every account, so any local user can query the fabric. Restrict it to a group." +msgstr "Un dispositivo umad permite lectura o escritura a cualquier cuenta, por lo que cualquier usuario local puede consultar la red. Restrinja el acceso a un grupo." + +#: lib/PrivilegeProbe.php lib/ToolDirectory.php +msgid "Unknown warning" +msgstr "Advertencia desconocida" + +#: lib/Settings.php +msgid "Diagnostics Tools" +msgstr "Herramientas de diagnóstico" + +#: lib/Settings.php +msgid "Absolute directory, on each poller that sweeps a fabric, holding perfquery, ibnetdiscover, and iblinkinfo. The Debian and Ubuntu packages install them in /usr/sbin. No other program is ever run from it." +msgstr "Directorio absoluto que contiene perfquery, ibnetdiscover e iblinkinfo en cada sondeador que consulta una red. Los paquetes de Debian y Ubuntu los instalan en /usr/sbin. Nunca se ejecuta ningún otro programa desde ese directorio." + +#: lib/Settings.php +msgid "Tool Directory" +msgstr "Directorio de herramientas" + +#: lib/Settings.php +msgid "Node Name Map" +msgstr "Mapa de nombres de nodos" + +#: lib/Settings.php +msgid "Optional absolute path to an infiniband-diags node name map file. Names it supplies are shown only; identity is always the node GUID." +msgstr "Ruta absoluta opcional de un archivo de nombres de nodos de infiniband-diags. Sus nombres solo se muestran; la identidad siempre es el GUID del nodo." + +#: lib/Settings.php +msgid "Datagram Timeout" +msgstr "Tiempo de espera de datagramas" + +#: lib/Settings.php +msgid "Milliseconds each management datagram may take before the tools retry it (their -t option)." +msgstr "Milisegundos permitidos para cada datagrama de gestión antes de que las herramientas lo reintenten (opción -t)." + +#: lib/Settings.php +msgid "Command Timeout" +msgstr "Tiempo de espera del comando" + +#: lib/Settings.php +msgid "Seconds one tool run may take before it is stopped and recorded as failed." +msgstr "Segundos permitidos para una ejecución antes de detenerla y registrarla como fallida." + +#: lib/Settings.php +msgid "KiB one tool run may print. Larger output is discarded and recorded as failed." +msgstr "KiB que puede producir una ejecución. Las salidas mayores se descartan y se registran como fallidas." + +#: lib/Settings.php +msgid "Maximum Output" +msgstr "Salida máxima" + +#: lib/Settings.php +msgid "Sweep" +msgstr "Consulta" + +#: lib/Settings.php +msgid "Node Time Budget" +msgstr "Presupuesto de tiempo por nodo" + +#: lib/Settings.php +msgid "Seconds one node sweep may spend reading counters. Ports not reached are read in the next cycle." +msgstr "Segundos que puede dedicar la consulta de un nodo a leer contadores. Los puertos no alcanzados se leen en el siguiente ciclo." + +#: lib/Settings.php +msgid "Failed ports after which a node sweep stops for this cycle. A port that does not answer costs several seconds." +msgstr "Número de puertos fallidos tras el que se detiene la consulta del nodo durante este ciclo. Un puerto que no responde consume varios segundos." + +#: lib/Settings.php +msgid "Node Failure Budget" +msgstr "Presupuesto de fallos por nodo" + +#: lib/Settings.php +msgid "Index Down Ports" +msgstr "Indexar puertos inactivos" + +#: lib/Settings.php +msgid "When checked, the Fabric Port data query also lists ports that are down and have no remote end, such as unused adapter ports. Cleared, they are left out until they come up." +msgstr "Si se marca, la consulta Fabric Port incluye los puertos inactivos sin extremo remoto, como los puertos de adaptador no utilizados. Si se desmarca, se omiten hasta que se activen." + +#: lib/Settings.php +msgid "Uninstall" +msgstr "Desinstalar" + +#: lib/Settings.php +msgid "Keep Plugin Tables on Uninstall" +msgstr "Conservar las tablas del complemento al desinstalar" + +#: lib/Settings.php +msgid "When checked, uninstalling the plugin keeps its fabrics, inventory, and samples. Clear it to have the uninstall drop them; export the inventory first from the Fabric Admin page. The fabric is never contacted either way." +msgstr "Si se marca, al desinstalar se conservan las redes, el inventario y las muestras. Desmárquelo para eliminarlos; exporte antes el inventario desde Administración de Fabric. En ningún caso se contacta con la red." + +#: lib/ToolDirectory.php +msgid "The tool directory must be an absolute path of letters, digits, dots, dashes, underscores, and slashes, with no trailing slash." +msgstr "El directorio de herramientas debe ser una ruta absoluta formada por letras, dígitos, puntos, guiones, guiones bajos y barras, sin barra final." + +#: lib/ToolDirectory.php +msgid "The tool directory does not exist or is not a directory." +msgstr "El directorio de herramientas no existe o no es un directorio." + +#: lib/ToolDirectory.php +msgid "The tool directory path contains a symbolic link. Enter the real path." +msgstr "La ruta del directorio de herramientas contiene un enlace simbólico. Introduzca la ruta real." + +#: lib/ToolDirectory.php +msgid "The tool directory is not owned by root." +msgstr "El directorio de herramientas no pertenece a root." + +#: lib/ToolDirectory.php +msgid "The tool directory can be written by its group or by others." +msgstr "El grupo u otros usuarios pueden escribir en el directorio de herramientas." + +#: setup.php +#, php-format +msgid "The Fabric plugin requires PHP %s or later. This server runs PHP %s, so the plugin was not installed or enabled." +msgstr "El complemento Fabric requiere PHP %s o posterior. Este servidor ejecuta PHP %s, por lo que no se ha instalado ni habilitado el complemento." + +#: setup.php +msgid "The Fabric plugin is not enabled." +msgstr "El complemento Fabric no está habilitado." + +#: setup.php +#, php-format +msgid "The Fabric plugin requires PHP %s or later." +msgstr "El complemento Fabric requiere PHP %s o posterior." + +#: setup.php +msgid "Management" +msgstr "Gestión" + +#: setup.php +#, php-format +msgid "The Tool Directory was not saved. %s" +msgstr "No se ha guardado el directorio de herramientas. %s" diff --git a/locales/po/es-ES.po b/locales/po/es-ES.po new file mode 100644 index 0000000..daa11ac --- /dev/null +++ b/locales/po/es-ES.po @@ -0,0 +1,981 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# +msgid "" +msgstr "" +"Project-Id-Version: fabric 0.1.0-dev\n" +"Report-Msgid-Bugs-To: https://github.com/somethingwithproof/plugin_fabric/issues\n" +"PO-Revision-Date: 2026-11-17 00:00+0000\n" +"Last-Translator: Thomas Vincent \n" +"Language-Team: Thomas Vincent \n" +"Language: es-ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: fabric_admin.php +msgid "The node changed after the page was drawn, so nothing was done. Review it and try again." +msgstr "El nodo cambió después de mostrar la página, por lo que no se realizó ninguna acción. Revíselo e inténtelo de nuevo." + +#: fabric_admin.php +msgid "Your device permissions do not allow changing this record." +msgstr "Sus permisos sobre los dispositivos no permiten cambiar este registro." + +#: fabric_admin.php +msgid "Name: another fabric already uses this name." +msgstr "Nombre: otra red InfiniBand ya utiliza este nombre." + +#: fabric_admin.php +msgid "Adapter: another fabric already sweeps this adapter port on this poller. One fabric per adapter port." +msgstr "Adaptador: otra red ya consulta este puerto del adaptador en este sondeador. Solo se permite una red por puerto del adaptador." + +#: fabric_admin.php +msgid "The fabric could not be saved." +msgstr "No se pudo guardar la red InfiniBand." + +#: fabric_admin.php +msgid "The fabric was saved." +msgstr "Se ha guardado la red InfiniBand." + +#: fabric_admin.php +msgid "A sweep of this fabric is running, so nothing was deleted. Try again when it finishes." +msgstr "Hay una consulta de esta red en curso, por lo que no se ha eliminado nada. Inténtelo de nuevo cuando termine." + +#: fabric_admin.php +msgid "The fabric and its inventory were deleted. No Cacti device was changed and the fabric was not contacted." +msgstr "Se han eliminado la red y su inventario. No se modificó ningún dispositivo Cacti ni se contactó con la red." + +#: fabric_admin.php +msgid "The fabric could not be deleted." +msgstr "No se pudo eliminar la red InfiniBand." + +#: fabric_admin.php +msgid "The node identity was not changed." +msgstr "No se ha cambiado la identidad del nodo." + +#: fabric_admin.php +msgid "The node identity was updated. It is swept again from the next cycle." +msgstr "Se ha actualizado la identidad del nodo. Se volverá a consultar a partir del siguiente ciclo." + +#: fabric_admin.php +msgid "The device mapping moved to the new node." +msgstr "La asociación del dispositivo se ha trasladado al nodo nuevo." + +#: fabric_admin.php +msgid "The proposal could not be confirmed. The nodes may have changed since it was made." +msgstr "No se pudo confirmar la propuesta. Los nodos pueden haber cambiado desde que se creó." + +#: fabric_admin.php +msgid "The proposal could not be rejected." +msgstr "No se pudo rechazar la propuesta." + +#: fabric_admin.php +msgid "The proposal was rejected." +msgstr "Se ha rechazado la propuesta." + +#: fabric_admin.php +#, php-format +msgid "The node mapping was not changed. %s" +msgstr "No se ha cambiado la asociación del nodo. %s" + +#: fabric_admin.php +msgid "The node mapping was not changed." +msgstr "No se ha cambiado la asociación del nodo." + +#: fabric_admin.php +msgid "The node mapping was saved." +msgstr "Se ha guardado la asociación del nodo." + +#: fabric_admin.php +msgid "No device was created. See the Cacti log." +msgstr "No se ha creado ningún dispositivo. Consulte el registro de Cacti." + +#: fabric_admin.php +msgid "The device was created and the node mapped to it. Choose the ports to graph on the New Graphs page." +msgstr "Se ha creado el dispositivo y se le ha asociado el nodo. Elija los puertos que desea representar en la página Nuevos gráficos." + +#: fabric_admin.php +msgid "The inventory could not be read for export." +msgstr "No se pudo leer el inventario para exportarlo." + +#: fabric_health.php +msgid "The Fabric templates and data query file were installed." +msgstr "Se han instalado las plantillas de Fabric y el archivo de consulta de datos." + +#: fabric_health.php +msgid "The Fabric templates were not installed. See the Cacti Objects table and the Cacti log." +msgstr "No se han instalado las plantillas de Fabric. Consulte la tabla Objetos de Cacti y el registro de Cacti." + +#: fabric_operator.php +msgid "Monitoring view" +msgstr "Vista de supervisión" + +#: fabric_operator.php +msgid "Observations could not be read. Ask an administrator to check the plugin log." +msgstr "No se pudieron leer las observaciones. Pida a un administrador que revise el registro del complemento." + +#: include/operator.php +msgid "Inspect port validity, link width and speed, and the congestion view. Escalate identity conflicts and device relinking to an administrator; do not reset counters." +msgstr "Revise la validez de los puertos, la anchura y velocidad de los enlaces y la vista de congestión. Solicite a un administrador que resuelva los conflictos de identidad y las reasociaciones de dispositivos; no reinicie los contadores." + +#: lib/AdminPage.php lib/HealthPage.php lib/Pages.php +msgid "Fabric Admin" +msgstr "Administración de Fabric" + +#: lib/AdminPage.php +msgid "The fabric records could not be read. See the Cacti log." +msgstr "No se pudieron leer los registros de las redes. Consulte el registro de Cacti." + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php lib/Pages.php +#: setup.php +msgid "Fabrics" +msgstr "Redes InfiniBand" + +#: lib/AdminPage.php lib/OperatorPage.php +msgid "Actions" +msgstr "Acciones" + +#: lib/AdminPage.php +msgid "Adapter" +msgstr "Adaptador" + +#: lib/AdminPage.php +msgid "Backend" +msgstr "Motor" + +#: lib/AdminPage.php +msgid "Name" +msgstr "Nombre" + +#: lib/AdminPage.php +msgid "Nodes" +msgstr "Nodos" + +#: lib/AdminPage.php +msgid "Poller" +msgstr "Sondeador" + +#: lib/AdminPage.php lib/InventoryPage.php lib/OperatorPage.php +msgid "State" +msgstr "Estado" + +#: lib/AdminPage.php +msgid "Sweep Interval" +msgstr "Intervalo de consulta" + +#: lib/AdminPage.php lib/HealthPage.php +msgid "No fabrics defined yet." +msgstr "Todavía no se ha definido ninguna red." + +#: lib/AdminPage.php +#, php-format +msgid "Deleted poller (ID %d)" +msgstr "Sondeador eliminado (ID %d)" + +#: lib/AdminPage.php +#, php-format +msgid "port %d" +msgstr "puerto %d" + +#: lib/AdminPage.php +#, php-format +msgid "%d seconds" +msgstr "%d segundos" + +#: lib/AdminPage.php +msgid "Delete" +msgstr "Eliminar" + +#: lib/AdminPage.php +msgid "Holds devices you may not see" +msgstr "Contiene dispositivos que no puede ver" + +#: lib/AdminPage.php +msgid "Export" +msgstr "Exportar" + +#: lib/AdminPage.php +msgid "Download the fabrics and node inventory, with device mappings, as JSON before an uninstall that drops the plugin tables. It holds no credential." +msgstr "Antes de desinstalar y eliminar las tablas del complemento, descargue las redes y el inventario de nodos, con sus asociaciones de dispositivos, en formato JSON. No contiene credenciales." + +#: lib/AdminPage.php lib/InventoryPage.php +#, php-format +msgid "Fabric: %s" +msgstr "Red InfiniBand: %s" + +#: lib/AdminPage.php +msgid "New Fabric" +msgstr "Nueva red InfiniBand" + +#: lib/AdminPage.php +msgid "Sweep Interval (seconds)" +msgstr "Intervalo de consulta (segundos)" + +#: lib/AdminPage.php +msgid "Adapter Port" +msgstr "Puerto del adaptador" + +#: lib/AdminPage.php +msgid "Enabled" +msgstr "Habilitado" + +#: lib/AdminPage.php +msgid "Save" +msgstr "Guardar" + +#: lib/AdminPage.php +#, php-format +msgid "Delete Fabric: %s" +msgstr "Eliminar red InfiniBand: %s" + +#: lib/AdminPage.php +#, php-format +msgid "Delete this fabric with its %d nodes, their ports, samples, and proposals? %d nodes are mapped to Cacti devices; those devices, their data sources, and RRD files are kept. The fabric is not contacted." +msgstr "¿Desea eliminar esta red con sus %d nodos, puertos, muestras y propuestas? Hay %d nodos asociados a dispositivos Cacti; se conservarán esos dispositivos, sus fuentes de datos y sus archivos RRD. No se contactará con la red." + +#: lib/AdminPage.php lib/InventoryPage.php +msgid "Unmapped" +msgstr "Sin asociación" + +#: lib/AdminPage.php +#, php-format +msgid "Deleted device (ID %d)" +msgstr "Dispositivo eliminado (ID %d)" + +#: lib/AdminPage.php lib/InventoryPage.php +#, php-format +msgid "Fabric Node: %s" +msgstr "Nodo de red InfiniBand: %s" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php +msgid "GUID" +msgstr "GUID" + +#: lib/AdminPage.php +msgid "Devices Matching the Node Name" +msgstr "Dispositivos cuyo nombre coincide con el del nodo" + +#: lib/AdminPage.php +#, php-format +msgid "%s (device %d)" +msgstr "%s (dispositivo %d)" + +#: lib/AdminPage.php +msgid "None" +msgstr "Ninguno" + +#: lib/AdminPage.php +msgid "Cacti Device" +msgstr "Dispositivo Cacti" + +#: lib/AdminPage.php +msgid "Saving maps the node to the device and adds the Fabric Port data query to the device, which lists the node's ports. No graph, data source, or device setting is changed. The device must be polled by the poller that sweeps the fabric." +msgstr "Al guardar, el nodo se asocia al dispositivo y se añade la consulta de datos Fabric Port, que enumera sus puertos. No se modifica ningún gráfico, fuente de datos ni ajuste del dispositivo. Este debe usar el mismo sondeador que consulta la red." + +#: lib/AdminPage.php +msgid "Create a Device for This Node" +msgstr "Crear un dispositivo para este nodo" + +#: lib/AdminPage.php +msgid "Devices cannot be created here." +msgstr "No se pueden crear dispositivos aquí." + +#: lib/AdminPage.php +#, php-format +msgid "Create a Device for %s" +msgstr "Crear un dispositivo para %s" + +#: lib/AdminPage.php +msgid "Creating the device adds:" +msgstr "Al crear el dispositivo se añade:" + +#: lib/AdminPage.php +msgid "Create" +msgstr "Crear" + +#: lib/AdminPage.php +msgid "Identity Conflicts" +msgstr "Conflictos de identidad" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php +msgid "Node" +msgstr "Nodo" + +#: lib/AdminPage.php +msgid "Seen" +msgstr "Observado" + +#: lib/AdminPage.php +msgid "Stored" +msgstr "Almacenado" + +#: lib/AdminPage.php +msgid "No conflicts." +msgstr "No hay conflictos." + +#: lib/AdminPage.php +msgid "Printed twice in one discovery" +msgstr "Aparece dos veces en un mismo descubrimiento" + +#: lib/AdminPage.php +msgid "Accept Seen Identity" +msgstr "Aceptar la identidad observada" + +#: lib/AdminPage.php +msgid "Re-link Proposals" +msgstr "Propuestas de reasociación" + +#: lib/AdminPage.php lib/InventoryPage.php +msgid "Device" +msgstr "Dispositivo" + +#: lib/AdminPage.php +msgid "Missing Node" +msgstr "Nodo ausente" + +#: lib/AdminPage.php +msgid "New Node" +msgstr "Nodo nuevo" + +#: lib/AdminPage.php +msgid "Shared Neighbor Port" +msgstr "Puerto vecino compartido" + +#: lib/AdminPage.php +msgid "No open proposals." +msgstr "No hay propuestas pendientes." + +#: lib/AdminPage.php +msgid "Confirm" +msgstr "Confirmar" + +#: lib/AdminPage.php +msgid "Reject" +msgstr "Rechazar" + +#: lib/Backend.php +msgid "Diagnostics tools (infiniband-diags)" +msgstr "Herramientas de diagnóstico (infiniband-diags)" + +#: lib/CommandError.php +msgid "The fabric or plugin settings are incomplete or invalid" +msgstr "Los ajustes de la red o del complemento están incompletos o no son válidos" + +#: lib/CommandError.php +msgid "The tool is missing or not executable in the configured directory" +msgstr "La herramienta no existe o no es ejecutable en el directorio configurado" + +#: lib/CommandError.php +msgid "The tool exceeded its time limit and was stopped" +msgstr "La herramienta superó el límite de tiempo y se detuvo" + +#: lib/CommandError.php +msgid "The tool output exceeded the size limit and was discarded" +msgstr "La salida de la herramienta superó el límite de tamaño y se descartó" + +#: lib/CommandError.php +msgid "The tool failed" +msgstr "La herramienta falló" + +#: lib/CommandError.php +msgid "The tool output did not have the expected form" +msgstr "La salida de la herramienta no tenía el formato esperado" + +#: lib/CommandError.php +msgid "Not attempted: the time or failure budget was spent" +msgstr "No se intentó: se agotó el presupuesto de tiempo o de fallos" + +#: lib/CommandError.php +msgid "The plugin tables could not be read or written" +msgstr "No se pudieron leer o escribir las tablas del complemento" + +#: lib/DeviceProvisioner.php +msgid "The Fabric templates are not installed. Reinstall them from the health page." +msgstr "Las plantillas de Fabric no están instaladas. Vuelva a instalarlas desde la página de estado." + +#: lib/DeviceProvisioner.php +msgid "The node is already mapped to a device." +msgstr "El nodo ya está asociado a un dispositivo." + +#: lib/DeviceProvisioner.php +msgid "The node's fabric is not swept by the main poller, so its device could not be polled." +msgstr "El sondeador principal no consulta la red del nodo, por lo que no podría sondear su dispositivo." + +#: lib/DeviceProvisioner.php +msgid "The device does not exist." +msgstr "El dispositivo no existe." + +#: lib/DeviceProvisioner.php +msgid "The device is polled by another poller than the one that sweeps this fabric, so it could not read the fabric cache." +msgstr "El dispositivo utiliza un sondeador distinto del que consulta esta red, por lo que no podría leer su caché." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "A device \"%s\" from the %s device template, host name %s, polled by poller %d, with availability checks and SNMP off." +msgstr "Un dispositivo «%s» de la plantilla %s, con nombre de host %s, sondeado por el sondeador %d y con las comprobaciones de disponibilidad y SNMP desactivadas." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "The %s data query on it, listing the node's ports. It creates no graph and no data source by itself." +msgstr "La consulta de datos %s, que enumera los puertos del nodo. Por sí sola no crea ningún gráfico ni fuente de datos." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "Created by the Fabric plugin for node %s. Its values come from the plugin cache; the host name is a reserved name that is never contacted." +msgstr "Creado por el complemento Fabric para el nodo %s. Los valores proceden de la caché del complemento; el nombre de host es un nombre reservado con el que nunca se establece contacto." + +#: lib/FabricInput.php +msgid "Name: use 1 to 64 letters, digits, spaces, dots, dashes, or underscores, starting with a letter or digit." +msgstr "Nombre: utilice entre 1 y 64 letras, dígitos, espacios, puntos, guiones o guiones bajos, comenzando por una letra o un dígito." + +#: lib/FabricInput.php +msgid "Backend: choose one of the listed backends." +msgstr "Motor: elija uno de los motores de la lista." + +#: lib/FabricInput.php +msgid "Poller: choose one of the listed pollers." +msgstr "Sondeador: elija uno de los sondeadores de la lista." + +#: lib/FabricInput.php +msgid "Poller: only the main poller can sweep a fabric until remote poller support is added." +msgstr "Sondeador: hasta que se añada compatibilidad con sondeadores remotos, solo el principal puede consultar una red." + +#: lib/FabricInput.php +#, php-format +msgid "Sweep Interval: enter whole seconds from %d to %d." +msgstr "Intervalo de consulta: introduzca un número entero de segundos entre %d y %d." + +#: lib/FabricInput.php +msgid "Adapter: enter the local adapter name as the kernel names it, such as mlx5_0." +msgstr "Adaptador: introduzca el nombre del adaptador local tal como lo denomina el kernel, por ejemplo mlx5_0." + +#: lib/FabricInput.php +#, php-format +msgid "Adapter Port: enter the port number of the local adapter, from 1 to %d." +msgstr "Puerto del adaptador: introduzca el número de puerto del adaptador local, entre 1 y %d." + +#: lib/Format.php lib/InventoryPage.php lib/OperatorPage.php +msgid "Never" +msgstr "Nunca" + +#: lib/Format.php +#, php-format +msgid "%d seconds ago" +msgstr "Hace %d segundos" + +#: lib/Format.php +#, php-format +msgid "%d minutes ago" +msgstr "Hace %d minutos" + +#: lib/Format.php +#, php-format +msgid "%d hours ago" +msgstr "Hace %d horas" + +#: lib/Format.php +#, php-format +msgid "%d days ago" +msgstr "Hace %d días" + +#: lib/HealthPage.php lib/Settings.php +msgid "Cacti Objects" +msgstr "Objetos de Cacti" + +#: lib/HealthPage.php +msgid "Installed" +msgstr "Instalado" + +#: lib/HealthPage.php lib/InventoryPage.php +msgid "Missing" +msgstr "Ausente" + +#: lib/HealthPage.php +msgid "Templates" +msgstr "Plantillas" + +#: lib/HealthPage.php +msgid "Data Query File" +msgstr "Archivo de consulta de datos" + +#: lib/HealthPage.php +msgid "Last Install" +msgstr "Última instalación" + +#: lib/HealthPage.php +msgid "Reinstall the Templates" +msgstr "Reinstalar las plantillas" + +#: lib/HealthPage.php lib/Pages.php +msgid "Fabric Health" +msgstr "Estado de Fabric" + +#: lib/HealthPage.php +msgid "The health records could not be read. See the Cacti log." +msgstr "No se pudieron leer los registros de estado. Consulte el registro de Cacti." + +#: lib/HealthPage.php +msgid "Counter Sweeps" +msgstr "Consultas de contadores" + +#: lib/HealthPage.php +msgid "Discovery" +msgstr "Descubrimiento" + +#: lib/HealthPage.php +msgid "Fabric" +msgstr "Red InfiniBand" + +#: lib/HealthPage.php +msgid "Last Discovery" +msgstr "Último descubrimiento" + +#: lib/HealthPage.php +msgid "Last Link Read" +msgstr "Última lectura de enlaces" + +#: lib/HealthPage.php +msgid "Last Successful Discovery" +msgstr "Último descubrimiento correcto" + +#: lib/HealthPage.php +msgid "Link Read" +msgstr "Lectura de enlaces" + +#: lib/HealthPage.php +msgid "Nodes / Ports Seen" +msgstr "Nodos / puertos observados" + +#: lib/HealthPage.php +msgid "Skipped Link Lines" +msgstr "Líneas de enlaces omitidas" + +#: lib/HealthPage.php +msgid "Unmatched Link Records" +msgstr "Registros de enlaces sin correspondencia" + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: the inventory is %s; the last successful discovery was %s." +msgstr "Red %s: el inventario está %s; el último descubrimiento correcto fue %s." + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: it is assigned to poller %d, but only the main poller can sweep a fabric until remote poller support is added. It is not swept; assign it to the main poller." +msgstr "Red %s: está asignada al sondeador %d, pero solo el principal puede consultarla hasta que se admitan sondeadores remotos. No se está consultando; asígnela al sondeador principal." + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: %d iblinkinfo lines could not be read, most likely because a node description imitates the tool output. Those nodes keep their last link states." +msgstr "Red %s: no se pudieron leer %d líneas de iblinkinfo, probablemente porque la descripción de un nodo imita la salida de la herramienta. Esos nodos conservan su último estado de enlace." + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: %s" +msgstr "Red %s: %s" + +#: lib/HealthPage.php +msgid "disabled" +msgstr "deshabilitado" + +#: lib/HealthPage.php +msgid "Warnings" +msgstr "Advertencias" + +#: lib/HealthPage.php +msgid "No warnings." +msgstr "No hay advertencias." + +#: lib/HealthPage.php lib/InventoryPage.php +msgid "Identity" +msgstr "Identidad" + +#: lib/HealthPage.php +#, php-format +msgid "%d identity conflicts and %d open re-link proposals. Resolve them on the Fabric Admin page." +msgstr "Hay %d conflictos de identidad y %d propuestas de reasociación pendientes. Resuélvalos en la página Administración de Fabric." + +#: lib/HealthPage.php +msgid "Counter Sweeps Needing Attention" +msgstr "Consultas de contadores que requieren atención" + +#: lib/HealthPage.php +msgid "Duration" +msgstr "Duración" + +#: lib/HealthPage.php +msgid "Failure" +msgstr "Fallo" + +#: lib/HealthPage.php +msgid "Last Success" +msgstr "Último éxito" + +#: lib/HealthPage.php +msgid "Last Sweep" +msgstr "Última consulta" + +#: lib/HealthPage.php +msgid "Outcome" +msgstr "Resultado" + +#: lib/HealthPage.php +msgid "Ports Read / Failed / Skipped" +msgstr "Puertos leídos / fallidos / omitidos" + +#: lib/HealthPage.php +#, php-format +msgid "%s s" +msgstr "%s s" + +#: lib/HealthPage.php +msgid "Every swept node completed its last sweep." +msgstr "Todos los nodos consultados completaron su última consulta." + +#: lib/HealthPage.php +#, php-format +msgid "OK, %s s" +msgstr "Correcto, %s s" + +#: lib/InventoryPage.php +msgid "LID" +msgstr "LID" + +#: lib/InventoryPage.php +msgid "Last Seen" +msgstr "Última detección" + +#: lib/InventoryPage.php +msgid "Presence" +msgstr "Presencia" + +#: lib/InventoryPage.php +msgid "Type" +msgstr "Tipo" + +#: lib/InventoryPage.php +msgid "No nodes to show." +msgstr "No hay nodos que mostrar." + +#: lib/InventoryPage.php +msgid "No fabrics are defined yet." +msgstr "Todavía no se ha definido ninguna red." + +#: lib/InventoryPage.php +msgid "Ports with the highest transmit wait" +msgstr "Puertos con mayor espera de transmisión" + +#: lib/InventoryPage.php +msgid "Ports with the Highest Transmit Wait" +msgstr "Puertos con mayor espera de transmisión" + +#: lib/InventoryPage.php +msgid "The fabric inventory could not be read. See the Cacti log." +msgstr "No se pudo leer el inventario de la red. Consulte el registro de Cacti." + +#: lib/InventoryPage.php +msgid "Transmit wait counts ticks in which a port had data to send but could not send it, for lack of credits or arbitration. A high value shows congestion toward the remote end; it does not show that the port or its cable is faulty. The tick length is not published for current link speeds, so values are ticks per second, not time." +msgstr "La espera de transmisión cuenta los ticks durante los que un puerto tenía datos que enviar pero no podía hacerlo por falta de créditos o por arbitraje. Un valor alto indica congestión hacia el extremo remoto; no indica un fallo del puerto ni del cable. La duración del tick no está publicada para las velocidades actuales, por lo que los valores son ticks por segundo, no tiempo." + +#: lib/InventoryPage.php +msgid "Port" +msgstr "Puerto" + +#: lib/InventoryPage.php +msgid "Remote" +msgstr "Remoto" + +#: lib/InventoryPage.php +msgid "Transmit Discards (per second)" +msgstr "Descartes de transmisión (por segundo)" + +#: lib/InventoryPage.php +msgid "Transmit Wait (ticks per second)" +msgstr "Espera de transmisión (ticks por segundo)" + +#: lib/InventoryPage.php +msgid "No port has a current transmit wait rate." +msgstr "Ningún puerto tiene una tasa actual de espera de transmisión." + +#: lib/InventoryPage.php lib/LinkCondition.php +msgid "Unknown" +msgstr "Desconocido" + +#: lib/InventoryPage.php +msgid "Fabric Node" +msgstr "Nodo de red InfiniBand" + +#: lib/InventoryPage.php +msgid "The node does not exist or you may not see it." +msgstr "El nodo no existe o no tiene permiso para verlo." + +#: lib/InventoryPage.php +msgid "Active" +msgstr "Activo" + +#: lib/InventoryPage.php +msgid "Best Both Ends Support" +msgstr "Máximo admitido por ambos extremos" + +#: lib/InventoryPage.php +msgid "Counter Validity" +msgstr "Validez de los contadores" + +#: lib/InventoryPage.php +msgid "Counters" +msgstr "Contadores" + +#: lib/InventoryPage.php +msgid "Graphs" +msgstr "Gráficos" + +#: lib/InventoryPage.php +msgid "Link" +msgstr "Enlace" + +#: lib/InventoryPage.php +msgid "No ports recorded yet." +msgstr "Todavía no hay puertos registrados." + +#: lib/InventoryPage.php +#, php-format +msgid "Device %d" +msgstr "Dispositivo %d" + +#: lib/InventoryPage.php +#, php-format +msgid "%s counters saturated, published as unknown: %s" +msgstr "Contadores %s saturados, publicados como desconocidos: %s" + +#: lib/InventoryPage.php +#, php-format +msgid "%s counters: %d discontinuities, the last %s" +msgstr "Contadores %s: %d discontinuidades, la última %s" + +#: lib/InventoryPage.php +msgid "Valid" +msgstr "Válido" + +#: lib/LinkCondition.php +msgid "Up" +msgstr "Activo" + +#: lib/LinkCondition.php +msgid "Below best, limited by enabled values" +msgstr "Por debajo del máximo, limitado por los valores habilitados" + +#: lib/LinkCondition.php +msgid "Below best, cause unknown" +msgstr "Por debajo del máximo, causa desconocida" + +#: lib/LinkCondition.php +msgid "Degraded" +msgstr "Degradado" + +#: lib/LinkCondition.php +msgid "Down" +msgstr "Inactivo" + +#: lib/NodeType.php +msgid "Switch" +msgstr "Conmutador" + +#: lib/NodeType.php +msgid "Channel adapter" +msgstr "Adaptador de canal" + +#: lib/NodeType.php +msgid "Router" +msgstr "Enrutador" + +#: lib/OperatorPage.php +msgid "Review the recorded observations below. Acknowledgments are personal to this session, expire when observations change, and never suppress alerts or change health." +msgstr "Revise las observaciones registradas a continuación. Los acuses de recibo son personales y exclusivos de esta sesión, caducan cuando cambian las observaciones y no suprimen alertas ni modifican el estado de salud." + +#: lib/OperatorPage.php lib/Pages.php +msgid "Fabric Operations" +msgstr "Operaciones de Fabric" + +#: lib/OperatorPage.php +msgid "Investigation" +msgstr "Investigación" + +#: lib/OperatorPage.php +msgid "Object" +msgstr "Objeto" + +#: lib/OperatorPage.php +msgid "Observed (UTC)" +msgstr "Observado (UTC)" + +#: lib/OperatorPage.php +msgid "Unknown or stale" +msgstr "Desconocido o desactualizado" + +#: lib/OperatorPage.php +msgid "Acknowledged; health unchanged." +msgstr "Acuse de recibo registrado; estado de salud sin cambios." + +#: lib/OperatorPage.php +msgid "Acknowledge" +msgstr "Acusar recibo" + +#: lib/OperatorPage.php +msgid "No observations are available for devices you may access." +msgstr "No hay observaciones disponibles para los dispositivos a los que tiene acceso." + +#: lib/Pages.php +msgid "Fabric Operator" +msgstr "Operador de Fabric" + +#: lib/Pages.php +msgid "Fabric View" +msgstr "Vista de Fabric" + +#: lib/PrivilegeProbe.php +msgid "The sweep runs as root. Run the poller as an unprivileged account with read access to the umad devices through a group." +msgstr "La consulta se ejecuta como root. Ejecute el sondeador con una cuenta sin privilegios que tenga acceso de lectura a los dispositivos umad mediante un grupo." + +#: lib/PrivilegeProbe.php +msgid "A diagnostics tool has the setuid or setgid bit. The plugin never needs it." +msgstr "Una herramienta de diagnóstico tiene el bit setuid o setgid. El complemento nunca lo necesita." + +#: lib/PrivilegeProbe.php +msgid "A diagnostics tool or its directory can be written by an account other than its owner, or by the poller account. Whoever can write it chooses what the poller runs." +msgstr "Una herramienta de diagnóstico o su directorio permite escritura a una cuenta distinta de su propietario o a la cuenta del sondeador. Quien pueda escribir ahí decide qué ejecuta el sondeador." + +#: lib/PrivilegeProbe.php +msgid "A umad device is readable or writable by every account, so any local user can query the fabric. Restrict it to a group." +msgstr "Un dispositivo umad permite lectura o escritura a cualquier cuenta, por lo que cualquier usuario local puede consultar la red. Restrinja el acceso a un grupo." + +#: lib/PrivilegeProbe.php lib/ToolDirectory.php +msgid "Unknown warning" +msgstr "Advertencia desconocida" + +#: lib/Settings.php +msgid "Diagnostics Tools" +msgstr "Herramientas de diagnóstico" + +#: lib/Settings.php +msgid "Absolute directory, on each poller that sweeps a fabric, holding perfquery, ibnetdiscover, and iblinkinfo. The Debian and Ubuntu packages install them in /usr/sbin. No other program is ever run from it." +msgstr "Directorio absoluto que contiene perfquery, ibnetdiscover e iblinkinfo en cada sondeador que consulta una red. Los paquetes de Debian y Ubuntu los instalan en /usr/sbin. Nunca se ejecuta ningún otro programa desde ese directorio." + +#: lib/Settings.php +msgid "Tool Directory" +msgstr "Directorio de herramientas" + +#: lib/Settings.php +msgid "Node Name Map" +msgstr "Mapa de nombres de nodos" + +#: lib/Settings.php +msgid "Optional absolute path to an infiniband-diags node name map file. Names it supplies are shown only; identity is always the node GUID." +msgstr "Ruta absoluta opcional de un archivo de nombres de nodos de infiniband-diags. Sus nombres solo se muestran; la identidad siempre es el GUID del nodo." + +#: lib/Settings.php +msgid "Datagram Timeout" +msgstr "Tiempo de espera de datagramas" + +#: lib/Settings.php +msgid "Milliseconds each management datagram may take before the tools retry it (their -t option)." +msgstr "Milisegundos permitidos para cada datagrama de gestión antes de que las herramientas lo reintenten (opción -t)." + +#: lib/Settings.php +msgid "Command Timeout" +msgstr "Tiempo de espera del comando" + +#: lib/Settings.php +msgid "Seconds one tool run may take before it is stopped and recorded as failed." +msgstr "Segundos permitidos para una ejecución antes de detenerla y registrarla como fallida." + +#: lib/Settings.php +msgid "KiB one tool run may print. Larger output is discarded and recorded as failed." +msgstr "KiB que puede producir una ejecución. Las salidas mayores se descartan y se registran como fallidas." + +#: lib/Settings.php +msgid "Maximum Output" +msgstr "Salida máxima" + +#: lib/Settings.php +msgid "Sweep" +msgstr "Consulta" + +#: lib/Settings.php +msgid "Node Time Budget" +msgstr "Presupuesto de tiempo por nodo" + +#: lib/Settings.php +msgid "Seconds one node sweep may spend reading counters. Ports not reached are read in the next cycle." +msgstr "Segundos que puede dedicar la consulta de un nodo a leer contadores. Los puertos no alcanzados se leen en el siguiente ciclo." + +#: lib/Settings.php +msgid "Failed ports after which a node sweep stops for this cycle. A port that does not answer costs several seconds." +msgstr "Número de puertos fallidos tras el que se detiene la consulta del nodo durante este ciclo. Un puerto que no responde consume varios segundos." + +#: lib/Settings.php +msgid "Node Failure Budget" +msgstr "Presupuesto de fallos por nodo" + +#: lib/Settings.php +msgid "Index Down Ports" +msgstr "Indexar puertos inactivos" + +#: lib/Settings.php +msgid "When checked, the Fabric Port data query also lists ports that are down and have no remote end, such as unused adapter ports. Cleared, they are left out until they come up." +msgstr "Si se marca, la consulta Fabric Port incluye los puertos inactivos sin extremo remoto, como los puertos de adaptador no utilizados. Si se desmarca, se omiten hasta que se activen." + +#: lib/Settings.php +msgid "Uninstall" +msgstr "Desinstalar" + +#: lib/Settings.php +msgid "Keep Plugin Tables on Uninstall" +msgstr "Conservar las tablas del complemento al desinstalar" + +#: lib/Settings.php +msgid "When checked, uninstalling the plugin keeps its fabrics, inventory, and samples. Clear it to have the uninstall drop them; export the inventory first from the Fabric Admin page. The fabric is never contacted either way." +msgstr "Si se marca, al desinstalar se conservan las redes, el inventario y las muestras. Desmárquelo para eliminarlos; exporte antes el inventario desde Administración de Fabric. En ningún caso se contacta con la red." + +#: lib/ToolDirectory.php +msgid "The tool directory must be an absolute path of letters, digits, dots, dashes, underscores, and slashes, with no trailing slash." +msgstr "El directorio de herramientas debe ser una ruta absoluta formada por letras, dígitos, puntos, guiones, guiones bajos y barras, sin barra final." + +#: lib/ToolDirectory.php +msgid "The tool directory does not exist or is not a directory." +msgstr "El directorio de herramientas no existe o no es un directorio." + +#: lib/ToolDirectory.php +msgid "The tool directory path contains a symbolic link. Enter the real path." +msgstr "La ruta del directorio de herramientas contiene un enlace simbólico. Introduzca la ruta real." + +#: lib/ToolDirectory.php +msgid "The tool directory is not owned by root." +msgstr "El directorio de herramientas no pertenece a root." + +#: lib/ToolDirectory.php +msgid "The tool directory can be written by its group or by others." +msgstr "El grupo u otros usuarios pueden escribir en el directorio de herramientas." + +#: setup.php +#, php-format +msgid "The Fabric plugin requires PHP %s or later. This server runs PHP %s, so the plugin was not installed or enabled." +msgstr "El complemento Fabric requiere PHP %s o posterior. Este servidor ejecuta PHP %s, por lo que no se ha instalado ni habilitado el complemento." + +#: setup.php +msgid "The Fabric plugin is not enabled." +msgstr "El complemento Fabric no está habilitado." + +#: setup.php +#, php-format +msgid "The Fabric plugin requires PHP %s or later." +msgstr "El complemento Fabric requiere PHP %s o posterior." + +#: setup.php +msgid "Management" +msgstr "Gestión" + +#: setup.php +#, php-format +msgid "The Tool Directory was not saved. %s" +msgstr "No se ha guardado el directorio de herramientas. %s" diff --git a/locales/po/hi-IN.po b/locales/po/hi-IN.po new file mode 100644 index 0000000..c45dec0 --- /dev/null +++ b/locales/po/hi-IN.po @@ -0,0 +1,981 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# +msgid "" +msgstr "" +"Project-Id-Version: fabric 0.1.0-dev\n" +"Report-Msgid-Bugs-To: https://github.com/somethingwithproof/plugin_fabric/issues\n" +"PO-Revision-Date: 2026-11-17 00:00+0000\n" +"Last-Translator: Thomas Vincent \n" +"Language-Team: Thomas Vincent \n" +"Language: hi-IN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: fabric_admin.php +msgid "The node changed after the page was drawn, so nothing was done. Review it and try again." +msgstr "पृष्ठ दिखाए जाने के बाद नोड बदल गया, इसलिए कोई कार्रवाई नहीं हुई। समीक्षा करके फिर प्रयास करें।" + +#: fabric_admin.php +msgid "Your device permissions do not allow changing this record." +msgstr "आपकी डिवाइस अनुमतियाँ इस रिकॉर्ड को बदलने की अनुमति नहीं देतीं।" + +#: fabric_admin.php +msgid "Name: another fabric already uses this name." +msgstr "नाम: यह नाम किसी अन्य फ़ैब्रिक में पहले से उपयोग हो रहा है।" + +#: fabric_admin.php +msgid "Adapter: another fabric already sweeps this adapter port on this poller. One fabric per adapter port." +msgstr "एडाप्टर: इस पोलर पर कोई अन्य फ़ैब्रिक इस एडाप्टर पोर्ट का सर्वेक्षण पहले से करता है। हर एडाप्टर पोर्ट पर केवल एक फ़ैब्रिक हो सकता है।" + +#: fabric_admin.php +msgid "The fabric could not be saved." +msgstr "फ़ैब्रिक सहेजा नहीं जा सका।" + +#: fabric_admin.php +msgid "The fabric was saved." +msgstr "फ़ैब्रिक सहेज दिया गया।" + +#: fabric_admin.php +msgid "A sweep of this fabric is running, so nothing was deleted. Try again when it finishes." +msgstr "इस फ़ैब्रिक का सर्वेक्षण चल रहा है, इसलिए कुछ नहीं हटाया गया। पूरा होने पर फिर प्रयास करें।" + +#: fabric_admin.php +msgid "The fabric and its inventory were deleted. No Cacti device was changed and the fabric was not contacted." +msgstr "फ़ैब्रिक और उसकी सूची हटा दी गई। कोई Cacti डिवाइस नहीं बदला गया और फ़ैब्रिक से संपर्क नहीं किया गया।" + +#: fabric_admin.php +msgid "The fabric could not be deleted." +msgstr "फ़ैब्रिक हटाया नहीं जा सका।" + +#: fabric_admin.php +msgid "The node identity was not changed." +msgstr "नोड की पहचान नहीं बदली गई।" + +#: fabric_admin.php +msgid "The node identity was updated. It is swept again from the next cycle." +msgstr "नोड की पहचान अपडेट की गई। अगले चक्र से उसका सर्वेक्षण फिर होगा।" + +#: fabric_admin.php +msgid "The device mapping moved to the new node." +msgstr "डिवाइस मैपिंग नए नोड पर स्थानांतरित कर दी गई।" + +#: fabric_admin.php +msgid "The proposal could not be confirmed. The nodes may have changed since it was made." +msgstr "प्रस्ताव की पुष्टि नहीं हो सकी। प्रस्ताव बनने के बाद नोड बदल गए हो सकते हैं।" + +#: fabric_admin.php +msgid "The proposal could not be rejected." +msgstr "प्रस्ताव अस्वीकार नहीं किया जा सका।" + +#: fabric_admin.php +msgid "The proposal was rejected." +msgstr "प्रस्ताव अस्वीकार कर दिया गया।" + +#: fabric_admin.php +#, php-format +msgid "The node mapping was not changed. %s" +msgstr "नोड मैपिंग नहीं बदली गई। %s" + +#: fabric_admin.php +msgid "The node mapping was not changed." +msgstr "नोड मैपिंग नहीं बदली गई।" + +#: fabric_admin.php +msgid "The node mapping was saved." +msgstr "नोड मैपिंग सहेज दी गई।" + +#: fabric_admin.php +msgid "No device was created. See the Cacti log." +msgstr "कोई डिवाइस नहीं बनाया गया। Cacti लॉग देखें।" + +#: fabric_admin.php +msgid "The device was created and the node mapped to it. Choose the ports to graph on the New Graphs page." +msgstr "डिवाइस बनाया गया और नोड उससे मैप किया गया। नए ग्राफ़ पृष्ठ पर ग्राफ़ बनाने के लिए पोर्ट चुनें।" + +#: fabric_admin.php +msgid "The inventory could not be read for export." +msgstr "निर्यात के लिए सूची पढ़ी नहीं जा सकी।" + +#: fabric_health.php +msgid "The Fabric templates and data query file were installed." +msgstr "Fabric टेम्पलेट और डेटा क्वेरी फ़ाइल स्थापित कर दी गईं।" + +#: fabric_health.php +msgid "The Fabric templates were not installed. See the Cacti Objects table and the Cacti log." +msgstr "Fabric टेम्पलेट स्थापित नहीं हुए। Cacti ऑब्जेक्ट तालिका और Cacti लॉग देखें।" + +#: fabric_operator.php +msgid "Monitoring view" +msgstr "निगरानी दृश्य" + +#: fabric_operator.php +msgid "Observations could not be read. Ask an administrator to check the plugin log." +msgstr "अवलोकन पढ़े नहीं जा सके। किसी व्यवस्थापक से प्लगइन लॉग जाँचने को कहें।" + +#: include/operator.php +msgid "Inspect port validity, link width and speed, and the congestion view. Escalate identity conflicts and device relinking to an administrator; do not reset counters." +msgstr "पोर्ट की वैधता, लिंक की चौड़ाई और गति तथा संकुलन दृश्य जाँचें। पहचान विवाद और डिवाइस को दोबारा जोड़ने का काम व्यवस्थापक को सौंपें; काउंटर रीसेट न करें।" + +#: lib/AdminPage.php lib/HealthPage.php lib/Pages.php +msgid "Fabric Admin" +msgstr "Fabric प्रशासन" + +#: lib/AdminPage.php +msgid "The fabric records could not be read. See the Cacti log." +msgstr "फ़ैब्रिक रिकॉर्ड पढ़े नहीं जा सके। Cacti लॉग देखें।" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php lib/Pages.php +#: setup.php +msgid "Fabrics" +msgstr "फ़ैब्रिक" + +#: lib/AdminPage.php lib/OperatorPage.php +msgid "Actions" +msgstr "कार्रवाइयाँ" + +#: lib/AdminPage.php +msgid "Adapter" +msgstr "एडाप्टर" + +#: lib/AdminPage.php +msgid "Backend" +msgstr "बैकएंड" + +#: lib/AdminPage.php +msgid "Name" +msgstr "नाम" + +#: lib/AdminPage.php +msgid "Nodes" +msgstr "नोड" + +#: lib/AdminPage.php +msgid "Poller" +msgstr "पोलर" + +#: lib/AdminPage.php lib/InventoryPage.php lib/OperatorPage.php +msgid "State" +msgstr "स्थिति" + +#: lib/AdminPage.php +msgid "Sweep Interval" +msgstr "सर्वेक्षण अंतराल" + +#: lib/AdminPage.php lib/HealthPage.php +msgid "No fabrics defined yet." +msgstr "अभी कोई फ़ैब्रिक परिभाषित नहीं है।" + +#: lib/AdminPage.php +#, php-format +msgid "Deleted poller (ID %d)" +msgstr "हटाया गया पोलर (ID %d)" + +#: lib/AdminPage.php +#, php-format +msgid "port %d" +msgstr "पोर्ट %d" + +#: lib/AdminPage.php +#, php-format +msgid "%d seconds" +msgstr "%d सेकंड" + +#: lib/AdminPage.php +msgid "Delete" +msgstr "हटाएँ" + +#: lib/AdminPage.php +msgid "Holds devices you may not see" +msgstr "इसमें ऐसे डिवाइस हैं जिन्हें आप नहीं देख सकते" + +#: lib/AdminPage.php +msgid "Export" +msgstr "निर्यात" + +#: lib/AdminPage.php +msgid "Download the fabrics and node inventory, with device mappings, as JSON before an uninstall that drops the plugin tables. It holds no credential." +msgstr "प्लगइन तालिकाएँ हटाने वाली स्थापना-रद्द कार्रवाई से पहले फ़ैब्रिक और नोड सूची को डिवाइस मैपिंग सहित JSON में डाउनलोड करें। इसमें कोई क्रेडेंशियल नहीं होता।" + +#: lib/AdminPage.php lib/InventoryPage.php +#, php-format +msgid "Fabric: %s" +msgstr "फ़ैब्रिक: %s" + +#: lib/AdminPage.php +msgid "New Fabric" +msgstr "नया फ़ैब्रिक" + +#: lib/AdminPage.php +msgid "Sweep Interval (seconds)" +msgstr "सर्वेक्षण अंतराल (सेकंड)" + +#: lib/AdminPage.php +msgid "Adapter Port" +msgstr "एडाप्टर पोर्ट" + +#: lib/AdminPage.php +msgid "Enabled" +msgstr "सक्षम" + +#: lib/AdminPage.php +msgid "Save" +msgstr "सहेजें" + +#: lib/AdminPage.php +#, php-format +msgid "Delete Fabric: %s" +msgstr "फ़ैब्रिक हटाएँ: %s" + +#: lib/AdminPage.php +#, php-format +msgid "Delete this fabric with its %d nodes, their ports, samples, and proposals? %d nodes are mapped to Cacti devices; those devices, their data sources, and RRD files are kept. The fabric is not contacted." +msgstr "क्या इस फ़ैब्रिक के %d नोड, उनके पोर्ट, नमूने और प्रस्ताव हटाएँ? %d नोड Cacti डिवाइस से मैप हैं; वे डिवाइस, उनके डेटा स्रोत और RRD फ़ाइलें रखी जाएँगी। फ़ैब्रिक से संपर्क नहीं किया जाएगा।" + +#: lib/AdminPage.php lib/InventoryPage.php +msgid "Unmapped" +msgstr "मैप नहीं किया गया" + +#: lib/AdminPage.php +#, php-format +msgid "Deleted device (ID %d)" +msgstr "हटाया गया डिवाइस (ID %d)" + +#: lib/AdminPage.php lib/InventoryPage.php +#, php-format +msgid "Fabric Node: %s" +msgstr "फ़ैब्रिक नोड: %s" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php +msgid "GUID" +msgstr "GUID" + +#: lib/AdminPage.php +msgid "Devices Matching the Node Name" +msgstr "नोड नाम से मेल खाने वाले डिवाइस" + +#: lib/AdminPage.php +#, php-format +msgid "%s (device %d)" +msgstr "%s (डिवाइस %d)" + +#: lib/AdminPage.php +msgid "None" +msgstr "कोई नहीं" + +#: lib/AdminPage.php +msgid "Cacti Device" +msgstr "Cacti डिवाइस" + +#: lib/AdminPage.php +msgid "Saving maps the node to the device and adds the Fabric Port data query to the device, which lists the node's ports. No graph, data source, or device setting is changed. The device must be polled by the poller that sweeps the fabric." +msgstr "सहेजने पर नोड डिवाइस से मैप होता है और उसमें नोड के पोर्ट दिखाने वाली Fabric Port डेटा क्वेरी जुड़ती है। कोई ग्राफ़, डेटा स्रोत या डिवाइस सेटिंग नहीं बदलती। डिवाइस को उसी पोलर से पोल होना चाहिए जो फ़ैब्रिक का सर्वेक्षण करता है।" + +#: lib/AdminPage.php +msgid "Create a Device for This Node" +msgstr "इस नोड के लिए डिवाइस बनाएँ" + +#: lib/AdminPage.php +msgid "Devices cannot be created here." +msgstr "यहाँ डिवाइस नहीं बनाए जा सकते।" + +#: lib/AdminPage.php +#, php-format +msgid "Create a Device for %s" +msgstr "%s के लिए डिवाइस बनाएँ" + +#: lib/AdminPage.php +msgid "Creating the device adds:" +msgstr "डिवाइस बनाने पर ये जुड़ते हैं:" + +#: lib/AdminPage.php +msgid "Create" +msgstr "बनाएँ" + +#: lib/AdminPage.php +msgid "Identity Conflicts" +msgstr "पहचान विवाद" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php +msgid "Node" +msgstr "नोड" + +#: lib/AdminPage.php +msgid "Seen" +msgstr "देखा गया" + +#: lib/AdminPage.php +msgid "Stored" +msgstr "संग्रहीत" + +#: lib/AdminPage.php +msgid "No conflicts." +msgstr "कोई विवाद नहीं।" + +#: lib/AdminPage.php +msgid "Printed twice in one discovery" +msgstr "एक ही खोज में दो बार आया" + +#: lib/AdminPage.php +msgid "Accept Seen Identity" +msgstr "देखी गई पहचान स्वीकारें" + +#: lib/AdminPage.php +msgid "Re-link Proposals" +msgstr "दोबारा जोड़ने के प्रस्ताव" + +#: lib/AdminPage.php lib/InventoryPage.php +msgid "Device" +msgstr "डिवाइस" + +#: lib/AdminPage.php +msgid "Missing Node" +msgstr "अनुपस्थित नोड" + +#: lib/AdminPage.php +msgid "New Node" +msgstr "नया नोड" + +#: lib/AdminPage.php +msgid "Shared Neighbor Port" +msgstr "साझा पड़ोसी पोर्ट" + +#: lib/AdminPage.php +msgid "No open proposals." +msgstr "कोई खुला प्रस्ताव नहीं।" + +#: lib/AdminPage.php +msgid "Confirm" +msgstr "पुष्टि करें" + +#: lib/AdminPage.php +msgid "Reject" +msgstr "अस्वीकार करें" + +#: lib/Backend.php +msgid "Diagnostics tools (infiniband-diags)" +msgstr "निदान उपकरण (infiniband-diags)" + +#: lib/CommandError.php +msgid "The fabric or plugin settings are incomplete or invalid" +msgstr "फ़ैब्रिक या प्लगइन सेटिंग अधूरी या अमान्य हैं" + +#: lib/CommandError.php +msgid "The tool is missing or not executable in the configured directory" +msgstr "कॉन्फ़िगर की गई निर्देशिका में उपकरण नहीं है या चलाया नहीं जा सकता" + +#: lib/CommandError.php +msgid "The tool exceeded its time limit and was stopped" +msgstr "उपकरण समय सीमा पार कर गया और रोक दिया गया" + +#: lib/CommandError.php +msgid "The tool output exceeded the size limit and was discarded" +msgstr "उपकरण का आउटपुट आकार सीमा पार कर गया और त्याग दिया गया" + +#: lib/CommandError.php +msgid "The tool failed" +msgstr "उपकरण विफल हुआ" + +#: lib/CommandError.php +msgid "The tool output did not have the expected form" +msgstr "उपकरण का आउटपुट अपेक्षित प्रारूप में नहीं था" + +#: lib/CommandError.php +msgid "Not attempted: the time or failure budget was spent" +msgstr "प्रयास नहीं हुआ: समय या विफलता सीमा समाप्त हो गई" + +#: lib/CommandError.php +msgid "The plugin tables could not be read or written" +msgstr "प्लगइन तालिकाएँ पढ़ी या लिखी नहीं जा सकीं" + +#: lib/DeviceProvisioner.php +msgid "The Fabric templates are not installed. Reinstall them from the health page." +msgstr "Fabric टेम्पलेट स्थापित नहीं हैं। स्वास्थ्य पृष्ठ से उन्हें फिर स्थापित करें।" + +#: lib/DeviceProvisioner.php +msgid "The node is already mapped to a device." +msgstr "नोड पहले से किसी डिवाइस से मैप है।" + +#: lib/DeviceProvisioner.php +msgid "The node's fabric is not swept by the main poller, so its device could not be polled." +msgstr "नोड के फ़ैब्रिक का सर्वेक्षण मुख्य पोलर नहीं करता, इसलिए उसके डिवाइस को पोल नहीं किया जा सकता।" + +#: lib/DeviceProvisioner.php +msgid "The device does not exist." +msgstr "डिवाइस मौजूद नहीं है।" + +#: lib/DeviceProvisioner.php +msgid "The device is polled by another poller than the one that sweeps this fabric, so it could not read the fabric cache." +msgstr "डिवाइस को उस पोलर से अलग पोलर पोल करता है जो फ़ैब्रिक का सर्वेक्षण करता है, इसलिए वह फ़ैब्रिक कैश नहीं पढ़ सकता।" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "A device \"%s\" from the %s device template, host name %s, polled by poller %d, with availability checks and SNMP off." +msgstr "डिवाइस \"%s\", %s डिवाइस टेम्पलेट से, होस्ट नाम %s, पोलर %d द्वारा पोल किया जाएगा; उपलब्धता जाँच और SNMP बंद होंगे।" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "The %s data query on it, listing the node's ports. It creates no graph and no data source by itself." +msgstr "इस पर %s डेटा क्वेरी नोड के पोर्ट सूचीबद्ध करती है। यह अपने आप कोई ग्राफ़ या डेटा स्रोत नहीं बनाती।" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "Created by the Fabric plugin for node %s. Its values come from the plugin cache; the host name is a reserved name that is never contacted." +msgstr "Fabric प्लगइन ने नोड %s के लिए बनाया। मान प्लगइन कैश से आते हैं; होस्ट नाम आरक्षित है और उससे कभी संपर्क नहीं किया जाता।" + +#: lib/FabricInput.php +msgid "Name: use 1 to 64 letters, digits, spaces, dots, dashes, or underscores, starting with a letter or digit." +msgstr "नाम: अक्षर या अंक से शुरू होने वाले 1 से 64 अक्षर, अंक, स्पेस, बिंदु, हाइफ़न या अंडरस्कोर उपयोग करें।" + +#: lib/FabricInput.php +msgid "Backend: choose one of the listed backends." +msgstr "बैकएंड: सूची में दिया गया कोई बैकएंड चुनें।" + +#: lib/FabricInput.php +msgid "Poller: choose one of the listed pollers." +msgstr "पोलर: सूची में दिया गया कोई पोलर चुनें।" + +#: lib/FabricInput.php +msgid "Poller: only the main poller can sweep a fabric until remote poller support is added." +msgstr "पोलर: दूरस्थ पोलर समर्थन जुड़ने तक केवल मुख्य पोलर फ़ैब्रिक का सर्वेक्षण कर सकता है।" + +#: lib/FabricInput.php +#, php-format +msgid "Sweep Interval: enter whole seconds from %d to %d." +msgstr "सर्वेक्षण अंतराल: %d से %d के बीच पूर्ण सेकंड दर्ज करें।" + +#: lib/FabricInput.php +msgid "Adapter: enter the local adapter name as the kernel names it, such as mlx5_0." +msgstr "एडाप्टर: कर्नेल द्वारा दिया गया स्थानीय एडाप्टर नाम दर्ज करें, जैसे mlx5_0।" + +#: lib/FabricInput.php +#, php-format +msgid "Adapter Port: enter the port number of the local adapter, from 1 to %d." +msgstr "एडाप्टर पोर्ट: स्थानीय एडाप्टर का पोर्ट नंबर 1 से %d तक दर्ज करें।" + +#: lib/Format.php lib/InventoryPage.php lib/OperatorPage.php +msgid "Never" +msgstr "कभी नहीं" + +#: lib/Format.php +#, php-format +msgid "%d seconds ago" +msgstr "%d सेकंड पहले" + +#: lib/Format.php +#, php-format +msgid "%d minutes ago" +msgstr "%d मिनट पहले" + +#: lib/Format.php +#, php-format +msgid "%d hours ago" +msgstr "%d घंटे पहले" + +#: lib/Format.php +#, php-format +msgid "%d days ago" +msgstr "%d दिन पहले" + +#: lib/HealthPage.php lib/Settings.php +msgid "Cacti Objects" +msgstr "Cacti ऑब्जेक्ट" + +#: lib/HealthPage.php +msgid "Installed" +msgstr "स्थापित" + +#: lib/HealthPage.php lib/InventoryPage.php +msgid "Missing" +msgstr "अनुपस्थित" + +#: lib/HealthPage.php +msgid "Templates" +msgstr "टेम्पलेट" + +#: lib/HealthPage.php +msgid "Data Query File" +msgstr "डेटा क्वेरी फ़ाइल" + +#: lib/HealthPage.php +msgid "Last Install" +msgstr "पिछली स्थापना" + +#: lib/HealthPage.php +msgid "Reinstall the Templates" +msgstr "टेम्पलेट फिर स्थापित करें" + +#: lib/HealthPage.php lib/Pages.php +msgid "Fabric Health" +msgstr "Fabric स्वास्थ्य" + +#: lib/HealthPage.php +msgid "The health records could not be read. See the Cacti log." +msgstr "स्वास्थ्य रिकॉर्ड पढ़े नहीं जा सके। Cacti लॉग देखें।" + +#: lib/HealthPage.php +msgid "Counter Sweeps" +msgstr "काउंटर सर्वेक्षण" + +#: lib/HealthPage.php +msgid "Discovery" +msgstr "खोज" + +#: lib/HealthPage.php +msgid "Fabric" +msgstr "फ़ैब्रिक" + +#: lib/HealthPage.php +msgid "Last Discovery" +msgstr "पिछली खोज" + +#: lib/HealthPage.php +msgid "Last Link Read" +msgstr "लिंक का पिछला पठन" + +#: lib/HealthPage.php +msgid "Last Successful Discovery" +msgstr "पिछली सफल खोज" + +#: lib/HealthPage.php +msgid "Link Read" +msgstr "लिंक पठन" + +#: lib/HealthPage.php +msgid "Nodes / Ports Seen" +msgstr "देखे गए नोड / पोर्ट" + +#: lib/HealthPage.php +msgid "Skipped Link Lines" +msgstr "छोड़ी गई लिंक पंक्तियाँ" + +#: lib/HealthPage.php +msgid "Unmatched Link Records" +msgstr "बेमेल लिंक रिकॉर्ड" + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: the inventory is %s; the last successful discovery was %s." +msgstr "फ़ैब्रिक %s: सूची %s है; पिछली सफल खोज %s थी।" + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: it is assigned to poller %d, but only the main poller can sweep a fabric until remote poller support is added. It is not swept; assign it to the main poller." +msgstr "फ़ैब्रिक %s: इसे पोलर %d दिया गया है, पर दूरस्थ पोलर समर्थन जुड़ने तक केवल मुख्य पोलर फ़ैब्रिक का सर्वेक्षण कर सकता है। इसका सर्वेक्षण नहीं हो रहा; इसे मुख्य पोलर दें।" + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: %d iblinkinfo lines could not be read, most likely because a node description imitates the tool output. Those nodes keep their last link states." +msgstr "फ़ैब्रिक %s: iblinkinfo की %d पंक्तियाँ पढ़ी नहीं जा सकीं, संभवतः नोड विवरण उपकरण के आउटपुट जैसा है। उन नोड की पिछली लिंक स्थिति रखी जाती है।" + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: %s" +msgstr "फ़ैब्रिक %s: %s" + +#: lib/HealthPage.php +msgid "disabled" +msgstr "अक्षम" + +#: lib/HealthPage.php +msgid "Warnings" +msgstr "चेतावनियाँ" + +#: lib/HealthPage.php +msgid "No warnings." +msgstr "कोई चेतावनी नहीं।" + +#: lib/HealthPage.php lib/InventoryPage.php +msgid "Identity" +msgstr "पहचान" + +#: lib/HealthPage.php +#, php-format +msgid "%d identity conflicts and %d open re-link proposals. Resolve them on the Fabric Admin page." +msgstr "%d पहचान विवाद और %d खुले पुनः-जोड़ प्रस्ताव हैं। Fabric प्रशासन पृष्ठ पर उन्हें हल करें।" + +#: lib/HealthPage.php +msgid "Counter Sweeps Needing Attention" +msgstr "ध्यान देने योग्य काउंटर सर्वेक्षण" + +#: lib/HealthPage.php +msgid "Duration" +msgstr "अवधि" + +#: lib/HealthPage.php +msgid "Failure" +msgstr "विफलता" + +#: lib/HealthPage.php +msgid "Last Success" +msgstr "पिछली सफलता" + +#: lib/HealthPage.php +msgid "Last Sweep" +msgstr "पिछला सर्वेक्षण" + +#: lib/HealthPage.php +msgid "Outcome" +msgstr "परिणाम" + +#: lib/HealthPage.php +msgid "Ports Read / Failed / Skipped" +msgstr "पढ़े गए / विफल / छोड़े गए पोर्ट" + +#: lib/HealthPage.php +#, php-format +msgid "%s s" +msgstr "%s सेकंड" + +#: lib/HealthPage.php +msgid "Every swept node completed its last sweep." +msgstr "हर सर्वेक्षित नोड ने पिछला सर्वेक्षण पूरा किया।" + +#: lib/HealthPage.php +#, php-format +msgid "OK, %s s" +msgstr "ठीक, %s सेकंड" + +#: lib/InventoryPage.php +msgid "LID" +msgstr "LID" + +#: lib/InventoryPage.php +msgid "Last Seen" +msgstr "पिछली बार देखा गया" + +#: lib/InventoryPage.php +msgid "Presence" +msgstr "उपस्थिति" + +#: lib/InventoryPage.php +msgid "Type" +msgstr "प्रकार" + +#: lib/InventoryPage.php +msgid "No nodes to show." +msgstr "दिखाने के लिए कोई नोड नहीं है।" + +#: lib/InventoryPage.php +msgid "No fabrics are defined yet." +msgstr "अभी कोई फ़ैब्रिक परिभाषित नहीं है।" + +#: lib/InventoryPage.php +msgid "Ports with the highest transmit wait" +msgstr "सबसे अधिक प्रेषण प्रतीक्षा वाले पोर्ट" + +#: lib/InventoryPage.php +msgid "Ports with the Highest Transmit Wait" +msgstr "सबसे अधिक प्रेषण प्रतीक्षा वाले पोर्ट" + +#: lib/InventoryPage.php +msgid "The fabric inventory could not be read. See the Cacti log." +msgstr "फ़ैब्रिक सूची पढ़ी नहीं जा सकी। Cacti लॉग देखें।" + +#: lib/InventoryPage.php +msgid "Transmit wait counts ticks in which a port had data to send but could not send it, for lack of credits or arbitration. A high value shows congestion toward the remote end; it does not show that the port or its cable is faulty. The tick length is not published for current link speeds, so values are ticks per second, not time." +msgstr "प्रेषण प्रतीक्षा उन टिकों को गिनती है जिनमें पोर्ट के पास भेजने के लिए डेटा था, लेकिन क्रेडिट की कमी या आर्बिट्रेशन के कारण भेज नहीं सका। ऊँचा मान दूरस्थ सिरे की ओर संकुलन दिखाता है; इससे पोर्ट या केबल खराब होने का पता नहीं चलता। वर्तमान लिंक गति के लिए टिक अवधि प्रकाशित नहीं है, इसलिए मान टिक प्रति सेकंड में हैं, समय में नहीं।" + +#: lib/InventoryPage.php +msgid "Port" +msgstr "पोर्ट" + +#: lib/InventoryPage.php +msgid "Remote" +msgstr "दूरस्थ" + +#: lib/InventoryPage.php +msgid "Transmit Discards (per second)" +msgstr "प्रेषण में त्यागे गए पैकेट (प्रति सेकंड)" + +#: lib/InventoryPage.php +msgid "Transmit Wait (ticks per second)" +msgstr "प्रेषण प्रतीक्षा (टिक प्रति सेकंड)" + +#: lib/InventoryPage.php +msgid "No port has a current transmit wait rate." +msgstr "किसी पोर्ट की वर्तमान प्रेषण प्रतीक्षा दर उपलब्ध नहीं है।" + +#: lib/InventoryPage.php lib/LinkCondition.php +msgid "Unknown" +msgstr "अज्ञात" + +#: lib/InventoryPage.php +msgid "Fabric Node" +msgstr "फ़ैब्रिक नोड" + +#: lib/InventoryPage.php +msgid "The node does not exist or you may not see it." +msgstr "नोड मौजूद नहीं है या आपको उसे देखने की अनुमति नहीं है।" + +#: lib/InventoryPage.php +msgid "Active" +msgstr "सक्रिय" + +#: lib/InventoryPage.php +msgid "Best Both Ends Support" +msgstr "दोनों सिरों द्वारा समर्थित सर्वोत्तम" + +#: lib/InventoryPage.php +msgid "Counter Validity" +msgstr "काउंटर की वैधता" + +#: lib/InventoryPage.php +msgid "Counters" +msgstr "काउंटर" + +#: lib/InventoryPage.php +msgid "Graphs" +msgstr "ग्राफ़" + +#: lib/InventoryPage.php +msgid "Link" +msgstr "लिंक" + +#: lib/InventoryPage.php +msgid "No ports recorded yet." +msgstr "अभी कोई पोर्ट दर्ज नहीं है।" + +#: lib/InventoryPage.php +#, php-format +msgid "Device %d" +msgstr "डिवाइस %d" + +#: lib/InventoryPage.php +#, php-format +msgid "%s counters saturated, published as unknown: %s" +msgstr "%s काउंटर संतृप्त हैं, अज्ञात के रूप में प्रकाशित: %s" + +#: lib/InventoryPage.php +#, php-format +msgid "%s counters: %d discontinuities, the last %s" +msgstr "%s काउंटर: %d असातत्य, आखिरी %s" + +#: lib/InventoryPage.php +msgid "Valid" +msgstr "मान्य" + +#: lib/LinkCondition.php +msgid "Up" +msgstr "चालू" + +#: lib/LinkCondition.php +msgid "Below best, limited by enabled values" +msgstr "सर्वोत्तम से कम, सक्षम मानों द्वारा सीमित" + +#: lib/LinkCondition.php +msgid "Below best, cause unknown" +msgstr "सर्वोत्तम से कम, कारण अज्ञात" + +#: lib/LinkCondition.php +msgid "Degraded" +msgstr "अवनत" + +#: lib/LinkCondition.php +msgid "Down" +msgstr "बंद" + +#: lib/NodeType.php +msgid "Switch" +msgstr "स्विच" + +#: lib/NodeType.php +msgid "Channel adapter" +msgstr "चैनल एडाप्टर" + +#: lib/NodeType.php +msgid "Router" +msgstr "राउटर" + +#: lib/OperatorPage.php +msgid "Review the recorded observations below. Acknowledgments are personal to this session, expire when observations change, and never suppress alerts or change health." +msgstr "नीचे दर्ज अवलोकनों की समीक्षा करें। पुष्टि केवल इस सत्र में आपके लिए है, अवलोकन बदलने पर समाप्त हो जाती है और कभी अलर्ट दबाती या स्वास्थ्य बदलती नहीं है।" + +#: lib/OperatorPage.php lib/Pages.php +msgid "Fabric Operations" +msgstr "Fabric संचालन" + +#: lib/OperatorPage.php +msgid "Investigation" +msgstr "जाँच" + +#: lib/OperatorPage.php +msgid "Object" +msgstr "ऑब्जेक्ट" + +#: lib/OperatorPage.php +msgid "Observed (UTC)" +msgstr "अवलोकन समय (UTC)" + +#: lib/OperatorPage.php +msgid "Unknown or stale" +msgstr "अज्ञात या पुराना" + +#: lib/OperatorPage.php +msgid "Acknowledged; health unchanged." +msgstr "पुष्टि की गई; स्वास्थ्य अपरिवर्तित।" + +#: lib/OperatorPage.php +msgid "Acknowledge" +msgstr "पुष्टि करें" + +#: lib/OperatorPage.php +msgid "No observations are available for devices you may access." +msgstr "जिन डिवाइस तक आपकी पहुँच है, उनके लिए कोई अवलोकन उपलब्ध नहीं है।" + +#: lib/Pages.php +msgid "Fabric Operator" +msgstr "Fabric ऑपरेटर" + +#: lib/Pages.php +msgid "Fabric View" +msgstr "Fabric दृश्य" + +#: lib/PrivilegeProbe.php +msgid "The sweep runs as root. Run the poller as an unprivileged account with read access to the umad devices through a group." +msgstr "सर्वेक्षण root के रूप में चलता है। पोलर को ऐसे गैर-विशेषाधिकार खाते से चलाएँ जिसे समूह के माध्यम से umad डिवाइस पढ़ने की अनुमति हो।" + +#: lib/PrivilegeProbe.php +msgid "A diagnostics tool has the setuid or setgid bit. The plugin never needs it." +msgstr "किसी निदान उपकरण पर setuid या setgid बिट सेट है। प्लगइन को इसकी कभी आवश्यकता नहीं होती।" + +#: lib/PrivilegeProbe.php +msgid "A diagnostics tool or its directory can be written by an account other than its owner, or by the poller account. Whoever can write it chooses what the poller runs." +msgstr "निदान उपकरण या उसकी निर्देशिका को उसके स्वामी से अलग खाता या पोलर खाता लिख सकता है। जो इसे लिख सकता है, वह तय करता है कि पोलर क्या चलाएगा।" + +#: lib/PrivilegeProbe.php +msgid "A umad device is readable or writable by every account, so any local user can query the fabric. Restrict it to a group." +msgstr "umad डिवाइस को हर खाता पढ़ या लिख सकता है, इसलिए कोई भी स्थानीय उपयोगकर्ता फ़ैब्रिक से क्वेरी कर सकता है। इसे किसी समूह तक सीमित करें।" + +#: lib/PrivilegeProbe.php lib/ToolDirectory.php +msgid "Unknown warning" +msgstr "अज्ञात चेतावनी" + +#: lib/Settings.php +msgid "Diagnostics Tools" +msgstr "निदान उपकरण" + +#: lib/Settings.php +msgid "Absolute directory, on each poller that sweeps a fabric, holding perfquery, ibnetdiscover, and iblinkinfo. The Debian and Ubuntu packages install them in /usr/sbin. No other program is ever run from it." +msgstr "फ़ैब्रिक का सर्वेक्षण करने वाले हर पोलर पर perfquery, ibnetdiscover और iblinkinfo रखने वाली पूर्ण निर्देशिका। Debian और Ubuntu पैकेज इन्हें /usr/sbin में स्थापित करते हैं। इससे कोई अन्य प्रोग्राम कभी नहीं चलाया जाता।" + +#: lib/Settings.php +msgid "Tool Directory" +msgstr "उपकरण निर्देशिका" + +#: lib/Settings.php +msgid "Node Name Map" +msgstr "नोड नाम मैप" + +#: lib/Settings.php +msgid "Optional absolute path to an infiniband-diags node name map file. Names it supplies are shown only; identity is always the node GUID." +msgstr "infiniband-diags नोड नाम मैप फ़ाइल का वैकल्पिक पूर्ण पथ। इसके नाम केवल दिखाए जाते हैं; पहचान हमेशा नोड GUID होती है।" + +#: lib/Settings.php +msgid "Datagram Timeout" +msgstr "डेटाग्राम समय सीमा" + +#: lib/Settings.php +msgid "Milliseconds each management datagram may take before the tools retry it (their -t option)." +msgstr "हर प्रबंधन डेटाग्राम को दोबारा आज़माने से पहले उपकरण जितने मिलीसेकंड प्रतीक्षा कर सकते हैं (उनका -t विकल्प)।" + +#: lib/Settings.php +msgid "Command Timeout" +msgstr "कमांड समय सीमा" + +#: lib/Settings.php +msgid "Seconds one tool run may take before it is stopped and recorded as failed." +msgstr "किसी उपकरण के एक रन को रोककर विफल दर्ज करने से पहले दी जाने वाली सेकंड संख्या।" + +#: lib/Settings.php +msgid "KiB one tool run may print. Larger output is discarded and recorded as failed." +msgstr "उपकरण के एक रन का अधिकतम आउटपुट, KiB में। अधिक बड़ा आउटपुट त्याग दिया जाता है और रन विफल दर्ज होता है।" + +#: lib/Settings.php +msgid "Maximum Output" +msgstr "अधिकतम आउटपुट" + +#: lib/Settings.php +msgid "Sweep" +msgstr "सर्वेक्षण" + +#: lib/Settings.php +msgid "Node Time Budget" +msgstr "नोड समय बजट" + +#: lib/Settings.php +msgid "Seconds one node sweep may spend reading counters. Ports not reached are read in the next cycle." +msgstr "एक नोड के सर्वेक्षण में काउंटर पढ़ने के लिए उपलब्ध सेकंड। जिन पोर्ट तक नहीं पहुँचा गया, वे अगले चक्र में पढ़े जाते हैं।" + +#: lib/Settings.php +msgid "Failed ports after which a node sweep stops for this cycle. A port that does not answer costs several seconds." +msgstr "विफल पोर्ट की वह संख्या जिसके बाद इस चक्र में नोड सर्वेक्षण रुक जाता है। उत्तर न देने वाला पोर्ट कई सेकंड लेता है।" + +#: lib/Settings.php +msgid "Node Failure Budget" +msgstr "नोड विफलता बजट" + +#: lib/Settings.php +msgid "Index Down Ports" +msgstr "बंद पोर्ट सूचीबद्ध करें" + +#: lib/Settings.php +msgid "When checked, the Fabric Port data query also lists ports that are down and have no remote end, such as unused adapter ports. Cleared, they are left out until they come up." +msgstr "चुनने पर Fabric Port डेटा क्वेरी बंद और बिना दूरस्थ सिरे वाले पोर्ट भी सूचीबद्ध करती है, जैसे अप्रयुक्त एडाप्टर पोर्ट। न चुनने पर वे चालू होने तक सूची से बाहर रहते हैं।" + +#: lib/Settings.php +msgid "Uninstall" +msgstr "स्थापना रद्द करें" + +#: lib/Settings.php +msgid "Keep Plugin Tables on Uninstall" +msgstr "स्थापना रद्द करने पर प्लगइन तालिकाएँ रखें" + +#: lib/Settings.php +msgid "When checked, uninstalling the plugin keeps its fabrics, inventory, and samples. Clear it to have the uninstall drop them; export the inventory first from the Fabric Admin page. The fabric is never contacted either way." +msgstr "चुनने पर प्लगइन की स्थापना रद्द करने से उसके फ़ैब्रिक, सूची और नमूने बने रहते हैं। उन्हें हटाने के लिए इसे साफ़ करें; पहले Fabric प्रशासन पृष्ठ से सूची निर्यात करें। दोनों स्थितियों में फ़ैब्रिक से कभी संपर्क नहीं होता।" + +#: lib/ToolDirectory.php +msgid "The tool directory must be an absolute path of letters, digits, dots, dashes, underscores, and slashes, with no trailing slash." +msgstr "उपकरण निर्देशिका का पूर्ण पथ केवल अक्षर, अंक, बिंदु, हाइफ़न, अंडरस्कोर और स्लैश से बना होना चाहिए; अंत में स्लैश नहीं होना चाहिए।" + +#: lib/ToolDirectory.php +msgid "The tool directory does not exist or is not a directory." +msgstr "उपकरण निर्देशिका मौजूद नहीं है या निर्देशिका नहीं है।" + +#: lib/ToolDirectory.php +msgid "The tool directory path contains a symbolic link. Enter the real path." +msgstr "उपकरण निर्देशिका के पथ में प्रतीकात्मक लिंक है। वास्तविक पथ दर्ज करें।" + +#: lib/ToolDirectory.php +msgid "The tool directory is not owned by root." +msgstr "उपकरण निर्देशिका का स्वामी root नहीं है।" + +#: lib/ToolDirectory.php +msgid "The tool directory can be written by its group or by others." +msgstr "उपकरण निर्देशिका को उसका समूह या अन्य उपयोगकर्ता लिख सकते हैं।" + +#: setup.php +#, php-format +msgid "The Fabric plugin requires PHP %s or later. This server runs PHP %s, so the plugin was not installed or enabled." +msgstr "Fabric प्लगइन को PHP %s या बाद का संस्करण चाहिए। यह सर्वर PHP %s चला रहा है, इसलिए प्लगइन स्थापित या सक्षम नहीं किया गया।" + +#: setup.php +msgid "The Fabric plugin is not enabled." +msgstr "Fabric प्लगइन सक्षम नहीं है।" + +#: setup.php +#, php-format +msgid "The Fabric plugin requires PHP %s or later." +msgstr "Fabric प्लगइन को PHP %s या बाद का संस्करण चाहिए।" + +#: setup.php +msgid "Management" +msgstr "प्रबंधन" + +#: setup.php +#, php-format +msgid "The Tool Directory was not saved. %s" +msgstr "उपकरण निर्देशिका सहेजी नहीं गई। %s" diff --git a/locales/po/zh-CN.po b/locales/po/zh-CN.po new file mode 100644 index 0000000..856c170 --- /dev/null +++ b/locales/po/zh-CN.po @@ -0,0 +1,981 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# +msgid "" +msgstr "" +"Project-Id-Version: fabric 0.1.0-dev\n" +"Report-Msgid-Bugs-To: https://github.com/somethingwithproof/plugin_fabric/issues\n" +"PO-Revision-Date: 2026-11-17 00:00+0000\n" +"Last-Translator: Thomas Vincent \n" +"Language-Team: Thomas Vincent \n" +"Language: zh-CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: fabric_admin.php +msgid "The node changed after the page was drawn, so nothing was done. Review it and try again." +msgstr "页面显示后节点已更改,因此未执行任何操作。请检查后重试。" + +#: fabric_admin.php +msgid "Your device permissions do not allow changing this record." +msgstr "您的设备权限不允许更改此记录。" + +#: fabric_admin.php +msgid "Name: another fabric already uses this name." +msgstr "名称:另一个互连网络已使用此名称。" + +#: fabric_admin.php +msgid "Adapter: another fabric already sweeps this adapter port on this poller. One fabric per adapter port." +msgstr "适配器:此采集器上的另一个互连网络已扫描该适配器端口。每个适配器端口只能对应一个互连网络。" + +#: fabric_admin.php +msgid "The fabric could not be saved." +msgstr "无法保存互连网络。" + +#: fabric_admin.php +msgid "The fabric was saved." +msgstr "已保存互连网络。" + +#: fabric_admin.php +msgid "A sweep of this fabric is running, so nothing was deleted. Try again when it finishes." +msgstr "正在扫描此互连网络,因此未删除任何内容。请在扫描完成后重试。" + +#: fabric_admin.php +msgid "The fabric and its inventory were deleted. No Cacti device was changed and the fabric was not contacted." +msgstr "已删除互连网络及其清单。未更改任何 Cacti 设备,也未连接互连网络。" + +#: fabric_admin.php +msgid "The fabric could not be deleted." +msgstr "无法删除互连网络。" + +#: fabric_admin.php +msgid "The node identity was not changed." +msgstr "未更改节点标识。" + +#: fabric_admin.php +msgid "The node identity was updated. It is swept again from the next cycle." +msgstr "已更新节点标识。从下一个周期开始重新扫描。" + +#: fabric_admin.php +msgid "The device mapping moved to the new node." +msgstr "已将设备映射移至新节点。" + +#: fabric_admin.php +msgid "The proposal could not be confirmed. The nodes may have changed since it was made." +msgstr "无法确认此建议。建议创建后,节点可能已更改。" + +#: fabric_admin.php +msgid "The proposal could not be rejected." +msgstr "无法拒绝此建议。" + +#: fabric_admin.php +msgid "The proposal was rejected." +msgstr "已拒绝此建议。" + +#: fabric_admin.php +#, php-format +msgid "The node mapping was not changed. %s" +msgstr "未更改节点映射。%s" + +#: fabric_admin.php +msgid "The node mapping was not changed." +msgstr "未更改节点映射。" + +#: fabric_admin.php +msgid "The node mapping was saved." +msgstr "已保存节点映射。" + +#: fabric_admin.php +msgid "No device was created. See the Cacti log." +msgstr "未创建设备。请查看 Cacti 日志。" + +#: fabric_admin.php +msgid "The device was created and the node mapped to it. Choose the ports to graph on the New Graphs page." +msgstr "已创建设备并将节点映射到该设备。请在“新建图表”页面选择要绘图的端口。" + +#: fabric_admin.php +msgid "The inventory could not be read for export." +msgstr "无法读取清单以供导出。" + +#: fabric_health.php +msgid "The Fabric templates and data query file were installed." +msgstr "已安装 Fabric 模板和数据查询文件。" + +#: fabric_health.php +msgid "The Fabric templates were not installed. See the Cacti Objects table and the Cacti log." +msgstr "未安装 Fabric 模板。请查看“Cacti 对象”表和 Cacti 日志。" + +#: fabric_operator.php +msgid "Monitoring view" +msgstr "监控视图" + +#: fabric_operator.php +msgid "Observations could not be read. Ask an administrator to check the plugin log." +msgstr "无法读取观测结果。请联系管理员检查插件日志。" + +#: include/operator.php +msgid "Inspect port validity, link width and speed, and the congestion view. Escalate identity conflicts and device relinking to an administrator; do not reset counters." +msgstr "检查端口有效性、链路宽度和速度以及拥塞视图。标识冲突和设备重新关联请交由管理员处理;请勿重置计数器。" + +#: lib/AdminPage.php lib/HealthPage.php lib/Pages.php +msgid "Fabric Admin" +msgstr "Fabric 管理" + +#: lib/AdminPage.php +msgid "The fabric records could not be read. See the Cacti log." +msgstr "无法读取互连网络记录。请查看 Cacti 日志。" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php lib/Pages.php +#: setup.php +msgid "Fabrics" +msgstr "互连网络" + +#: lib/AdminPage.php lib/OperatorPage.php +msgid "Actions" +msgstr "操作" + +#: lib/AdminPage.php +msgid "Adapter" +msgstr "适配器" + +#: lib/AdminPage.php +msgid "Backend" +msgstr "后端" + +#: lib/AdminPage.php +msgid "Name" +msgstr "名称" + +#: lib/AdminPage.php +msgid "Nodes" +msgstr "节点" + +#: lib/AdminPage.php +msgid "Poller" +msgstr "采集器" + +#: lib/AdminPage.php lib/InventoryPage.php lib/OperatorPage.php +msgid "State" +msgstr "状态" + +#: lib/AdminPage.php +msgid "Sweep Interval" +msgstr "扫描间隔" + +#: lib/AdminPage.php lib/HealthPage.php +msgid "No fabrics defined yet." +msgstr "尚未定义互连网络。" + +#: lib/AdminPage.php +#, php-format +msgid "Deleted poller (ID %d)" +msgstr "已删除的采集器(ID %d)" + +#: lib/AdminPage.php +#, php-format +msgid "port %d" +msgstr "端口 %d" + +#: lib/AdminPage.php +#, php-format +msgid "%d seconds" +msgstr "%d 秒" + +#: lib/AdminPage.php +msgid "Delete" +msgstr "删除" + +#: lib/AdminPage.php +msgid "Holds devices you may not see" +msgstr "包含您无权查看的设备" + +#: lib/AdminPage.php +msgid "Export" +msgstr "导出" + +#: lib/AdminPage.php +msgid "Download the fabrics and node inventory, with device mappings, as JSON before an uninstall that drops the plugin tables. It holds no credential." +msgstr "在卸载并删除插件表之前,将互连网络和节点清单及其设备映射下载为 JSON。该文件不包含凭据。" + +#: lib/AdminPage.php lib/InventoryPage.php +#, php-format +msgid "Fabric: %s" +msgstr "互连网络:%s" + +#: lib/AdminPage.php +msgid "New Fabric" +msgstr "新建互连网络" + +#: lib/AdminPage.php +msgid "Sweep Interval (seconds)" +msgstr "扫描间隔(秒)" + +#: lib/AdminPage.php +msgid "Adapter Port" +msgstr "适配器端口" + +#: lib/AdminPage.php +msgid "Enabled" +msgstr "已启用" + +#: lib/AdminPage.php +msgid "Save" +msgstr "保存" + +#: lib/AdminPage.php +#, php-format +msgid "Delete Fabric: %s" +msgstr "删除互连网络:%s" + +#: lib/AdminPage.php +#, php-format +msgid "Delete this fabric with its %d nodes, their ports, samples, and proposals? %d nodes are mapped to Cacti devices; those devices, their data sources, and RRD files are kept. The fabric is not contacted." +msgstr "是否删除此互连网络及其 %d 个节点、端口、样本和建议?其中 %d 个节点映射到 Cacti 设备;这些设备、数据源和 RRD 文件将保留。不会连接互连网络。" + +#: lib/AdminPage.php lib/InventoryPage.php +msgid "Unmapped" +msgstr "未映射" + +#: lib/AdminPage.php +#, php-format +msgid "Deleted device (ID %d)" +msgstr "已删除的设备(ID %d)" + +#: lib/AdminPage.php lib/InventoryPage.php +#, php-format +msgid "Fabric Node: %s" +msgstr "互连网络节点:%s" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php +msgid "GUID" +msgstr "GUID" + +#: lib/AdminPage.php +msgid "Devices Matching the Node Name" +msgstr "与节点名称匹配的设备" + +#: lib/AdminPage.php +#, php-format +msgid "%s (device %d)" +msgstr "%s(设备 %d)" + +#: lib/AdminPage.php +msgid "None" +msgstr "无" + +#: lib/AdminPage.php +msgid "Cacti Device" +msgstr "Cacti 设备" + +#: lib/AdminPage.php +msgid "Saving maps the node to the device and adds the Fabric Port data query to the device, which lists the node's ports. No graph, data source, or device setting is changed. The device must be polled by the poller that sweeps the fabric." +msgstr "保存后会将节点映射到设备,并向设备添加列出节点端口的 Fabric Port 数据查询。不会更改图表、数据源或设备设置。设备必须由扫描该互连网络的采集器采集。" + +#: lib/AdminPage.php +msgid "Create a Device for This Node" +msgstr "为此节点创建设备" + +#: lib/AdminPage.php +msgid "Devices cannot be created here." +msgstr "无法在此处创建设备。" + +#: lib/AdminPage.php +#, php-format +msgid "Create a Device for %s" +msgstr "为 %s 创建设备" + +#: lib/AdminPage.php +msgid "Creating the device adds:" +msgstr "创建设备将添加:" + +#: lib/AdminPage.php +msgid "Create" +msgstr "创建" + +#: lib/AdminPage.php +msgid "Identity Conflicts" +msgstr "标识冲突" + +#: lib/AdminPage.php lib/HealthPage.php lib/InventoryPage.php +msgid "Node" +msgstr "节点" + +#: lib/AdminPage.php +msgid "Seen" +msgstr "观测值" + +#: lib/AdminPage.php +msgid "Stored" +msgstr "已存储" + +#: lib/AdminPage.php +msgid "No conflicts." +msgstr "无冲突。" + +#: lib/AdminPage.php +msgid "Printed twice in one discovery" +msgstr "在一次发现中出现两次" + +#: lib/AdminPage.php +msgid "Accept Seen Identity" +msgstr "接受观测到的标识" + +#: lib/AdminPage.php +msgid "Re-link Proposals" +msgstr "重新关联建议" + +#: lib/AdminPage.php lib/InventoryPage.php +msgid "Device" +msgstr "设备" + +#: lib/AdminPage.php +msgid "Missing Node" +msgstr "缺失节点" + +#: lib/AdminPage.php +msgid "New Node" +msgstr "新节点" + +#: lib/AdminPage.php +msgid "Shared Neighbor Port" +msgstr "共用邻居端口" + +#: lib/AdminPage.php +msgid "No open proposals." +msgstr "无待处理建议。" + +#: lib/AdminPage.php +msgid "Confirm" +msgstr "确认" + +#: lib/AdminPage.php +msgid "Reject" +msgstr "拒绝" + +#: lib/Backend.php +msgid "Diagnostics tools (infiniband-diags)" +msgstr "诊断工具(infiniband-diags)" + +#: lib/CommandError.php +msgid "The fabric or plugin settings are incomplete or invalid" +msgstr "互连网络或插件设置不完整或无效" + +#: lib/CommandError.php +msgid "The tool is missing or not executable in the configured directory" +msgstr "配置目录中缺少该工具,或该工具不可执行" + +#: lib/CommandError.php +msgid "The tool exceeded its time limit and was stopped" +msgstr "工具超出时间限制,已停止" + +#: lib/CommandError.php +msgid "The tool output exceeded the size limit and was discarded" +msgstr "工具输出超出大小限制,已丢弃" + +#: lib/CommandError.php +msgid "The tool failed" +msgstr "工具执行失败" + +#: lib/CommandError.php +msgid "The tool output did not have the expected form" +msgstr "工具输出格式不符合预期" + +#: lib/CommandError.php +msgid "Not attempted: the time or failure budget was spent" +msgstr "未尝试:时间或失败预算已耗尽" + +#: lib/CommandError.php +msgid "The plugin tables could not be read or written" +msgstr "无法读取或写入插件表" + +#: lib/DeviceProvisioner.php +msgid "The Fabric templates are not installed. Reinstall them from the health page." +msgstr "未安装 Fabric 模板。请从健康状态页面重新安装。" + +#: lib/DeviceProvisioner.php +msgid "The node is already mapped to a device." +msgstr "该节点已映射到设备。" + +#: lib/DeviceProvisioner.php +msgid "The node's fabric is not swept by the main poller, so its device could not be polled." +msgstr "该节点的互连网络未由主采集器扫描,因此无法采集其设备。" + +#: lib/DeviceProvisioner.php +msgid "The device does not exist." +msgstr "设备不存在。" + +#: lib/DeviceProvisioner.php +msgid "The device is polled by another poller than the one that sweeps this fabric, so it could not read the fabric cache." +msgstr "该设备与此互连网络使用不同的采集器,因此无法读取互连网络缓存。" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "A device \"%s\" from the %s device template, host name %s, polled by poller %d, with availability checks and SNMP off." +msgstr "设备“%s”,使用 %s 设备模板,主机名为 %s,由采集器 %d 采集,可用性检查和 SNMP 均关闭。" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "The %s data query on it, listing the node's ports. It creates no graph and no data source by itself." +msgstr "设备上的 %s 数据查询,用于列出节点端口。查询本身不创建图表或数据源。" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "Created by the Fabric plugin for node %s. Its values come from the plugin cache; the host name is a reserved name that is never contacted." +msgstr "由 Fabric 插件为节点 %s 创建。数值来自插件缓存;主机名为保留名称,永远不会连接该主机。" + +#: lib/FabricInput.php +msgid "Name: use 1 to 64 letters, digits, spaces, dots, dashes, or underscores, starting with a letter or digit." +msgstr "名称:使用 1 至 64 个字母、数字、空格、点、连字符或下划线,且以字母或数字开头。" + +#: lib/FabricInput.php +msgid "Backend: choose one of the listed backends." +msgstr "后端:选择列出的后端之一。" + +#: lib/FabricInput.php +msgid "Poller: choose one of the listed pollers." +msgstr "采集器:选择列出的采集器之一。" + +#: lib/FabricInput.php +msgid "Poller: only the main poller can sweep a fabric until remote poller support is added." +msgstr "采集器:在添加远程采集器支持之前,仅主采集器可扫描互连网络。" + +#: lib/FabricInput.php +#, php-format +msgid "Sweep Interval: enter whole seconds from %d to %d." +msgstr "扫描间隔:输入 %d 至 %d 的整数秒数。" + +#: lib/FabricInput.php +msgid "Adapter: enter the local adapter name as the kernel names it, such as mlx5_0." +msgstr "适配器:输入内核使用的本地适配器名称,例如 mlx5_0。" + +#: lib/FabricInput.php +#, php-format +msgid "Adapter Port: enter the port number of the local adapter, from 1 to %d." +msgstr "适配器端口:输入本地适配器的端口号,范围为 1 至 %d。" + +#: lib/Format.php lib/InventoryPage.php lib/OperatorPage.php +msgid "Never" +msgstr "从未" + +#: lib/Format.php +#, php-format +msgid "%d seconds ago" +msgstr "%d 秒前" + +#: lib/Format.php +#, php-format +msgid "%d minutes ago" +msgstr "%d 分钟前" + +#: lib/Format.php +#, php-format +msgid "%d hours ago" +msgstr "%d 小时前" + +#: lib/Format.php +#, php-format +msgid "%d days ago" +msgstr "%d 天前" + +#: lib/HealthPage.php lib/Settings.php +msgid "Cacti Objects" +msgstr "Cacti 对象" + +#: lib/HealthPage.php +msgid "Installed" +msgstr "已安装" + +#: lib/HealthPage.php lib/InventoryPage.php +msgid "Missing" +msgstr "缺失" + +#: lib/HealthPage.php +msgid "Templates" +msgstr "模板" + +#: lib/HealthPage.php +msgid "Data Query File" +msgstr "数据查询文件" + +#: lib/HealthPage.php +msgid "Last Install" +msgstr "上次安装" + +#: lib/HealthPage.php +msgid "Reinstall the Templates" +msgstr "重新安装模板" + +#: lib/HealthPage.php lib/Pages.php +msgid "Fabric Health" +msgstr "Fabric 健康状态" + +#: lib/HealthPage.php +msgid "The health records could not be read. See the Cacti log." +msgstr "无法读取健康状态记录。请查看 Cacti 日志。" + +#: lib/HealthPage.php +msgid "Counter Sweeps" +msgstr "计数器扫描" + +#: lib/HealthPage.php +msgid "Discovery" +msgstr "发现" + +#: lib/HealthPage.php +msgid "Fabric" +msgstr "互连网络" + +#: lib/HealthPage.php +msgid "Last Discovery" +msgstr "上次发现" + +#: lib/HealthPage.php +msgid "Last Link Read" +msgstr "上次链路读取" + +#: lib/HealthPage.php +msgid "Last Successful Discovery" +msgstr "上次成功发现" + +#: lib/HealthPage.php +msgid "Link Read" +msgstr "链路读取" + +#: lib/HealthPage.php +msgid "Nodes / Ports Seen" +msgstr "已发现节点 / 端口" + +#: lib/HealthPage.php +msgid "Skipped Link Lines" +msgstr "已跳过的链路行" + +#: lib/HealthPage.php +msgid "Unmatched Link Records" +msgstr "不匹配的链路记录" + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: the inventory is %s; the last successful discovery was %s." +msgstr "互连网络 %s:清单状态为 %s;上次成功发现时间为 %s。" + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: it is assigned to poller %d, but only the main poller can sweep a fabric until remote poller support is added. It is not swept; assign it to the main poller." +msgstr "互连网络 %s:已分配给采集器 %d,但在添加远程采集器支持之前,仅主采集器可扫描互连网络。当前不会扫描;请将其分配给主采集器。" + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: %d iblinkinfo lines could not be read, most likely because a node description imitates the tool output. Those nodes keep their last link states." +msgstr "互连网络 %s:无法读取 %d 行 iblinkinfo 输出,很可能是某个节点描述模仿了工具输出。这些节点将保留上次链路状态。" + +#: lib/HealthPage.php +#, php-format +msgid "Fabric %s: %s" +msgstr "互连网络 %s:%s" + +#: lib/HealthPage.php +msgid "disabled" +msgstr "已禁用" + +#: lib/HealthPage.php +msgid "Warnings" +msgstr "警告" + +#: lib/HealthPage.php +msgid "No warnings." +msgstr "无警告。" + +#: lib/HealthPage.php lib/InventoryPage.php +msgid "Identity" +msgstr "标识" + +#: lib/HealthPage.php +#, php-format +msgid "%d identity conflicts and %d open re-link proposals. Resolve them on the Fabric Admin page." +msgstr "有 %d 个标识冲突和 %d 个待处理的重新关联建议。请在 Fabric 管理页面处理。" + +#: lib/HealthPage.php +msgid "Counter Sweeps Needing Attention" +msgstr "需要关注的计数器扫描" + +#: lib/HealthPage.php +msgid "Duration" +msgstr "持续时间" + +#: lib/HealthPage.php +msgid "Failure" +msgstr "失败" + +#: lib/HealthPage.php +msgid "Last Success" +msgstr "上次成功" + +#: lib/HealthPage.php +msgid "Last Sweep" +msgstr "上次扫描" + +#: lib/HealthPage.php +msgid "Outcome" +msgstr "结果" + +#: lib/HealthPage.php +msgid "Ports Read / Failed / Skipped" +msgstr "已读取 / 失败 / 已跳过的端口" + +#: lib/HealthPage.php +#, php-format +msgid "%s s" +msgstr "%s 秒" + +#: lib/HealthPage.php +msgid "Every swept node completed its last sweep." +msgstr "所有参与扫描的节点均已完成上次扫描。" + +#: lib/HealthPage.php +#, php-format +msgid "OK, %s s" +msgstr "正常,%s 秒" + +#: lib/InventoryPage.php +msgid "LID" +msgstr "LID" + +#: lib/InventoryPage.php +msgid "Last Seen" +msgstr "上次发现" + +#: lib/InventoryPage.php +msgid "Presence" +msgstr "存在状态" + +#: lib/InventoryPage.php +msgid "Type" +msgstr "类型" + +#: lib/InventoryPage.php +msgid "No nodes to show." +msgstr "无可显示的节点。" + +#: lib/InventoryPage.php +msgid "No fabrics are defined yet." +msgstr "尚未定义任何互连网络。" + +#: lib/InventoryPage.php +msgid "Ports with the highest transmit wait" +msgstr "发送等待最高的端口" + +#: lib/InventoryPage.php +msgid "Ports with the Highest Transmit Wait" +msgstr "发送等待最高的端口" + +#: lib/InventoryPage.php +msgid "The fabric inventory could not be read. See the Cacti log." +msgstr "无法读取互连网络清单。请查看 Cacti 日志。" + +#: lib/InventoryPage.php +msgid "Transmit wait counts ticks in which a port had data to send but could not send it, for lack of credits or arbitration. A high value shows congestion toward the remote end; it does not show that the port or its cable is faulty. The tick length is not published for current link speeds, so values are ticks per second, not time." +msgstr "发送等待统计端口有数据要发送但因信用不足或仲裁而无法发送的时钟周期数。数值高表示远端方向拥塞,并不表示端口或线缆故障。当前链路速度对应的时钟周期长度未公开,因此数值单位为每秒时钟周期数,而非时间。" + +#: lib/InventoryPage.php +msgid "Port" +msgstr "端口" + +#: lib/InventoryPage.php +msgid "Remote" +msgstr "远端" + +#: lib/InventoryPage.php +msgid "Transmit Discards (per second)" +msgstr "发送丢弃数(每秒)" + +#: lib/InventoryPage.php +msgid "Transmit Wait (ticks per second)" +msgstr "发送等待(每秒时钟周期数)" + +#: lib/InventoryPage.php +msgid "No port has a current transmit wait rate." +msgstr "没有端口具有当前有效的发送等待速率。" + +#: lib/InventoryPage.php lib/LinkCondition.php +msgid "Unknown" +msgstr "未知" + +#: lib/InventoryPage.php +msgid "Fabric Node" +msgstr "互连网络节点" + +#: lib/InventoryPage.php +msgid "The node does not exist or you may not see it." +msgstr "节点不存在或您无权查看。" + +#: lib/InventoryPage.php +msgid "Active" +msgstr "活动" + +#: lib/InventoryPage.php +msgid "Best Both Ends Support" +msgstr "两端支持的最佳值" + +#: lib/InventoryPage.php +msgid "Counter Validity" +msgstr "计数器有效性" + +#: lib/InventoryPage.php +msgid "Counters" +msgstr "计数器" + +#: lib/InventoryPage.php +msgid "Graphs" +msgstr "图表" + +#: lib/InventoryPage.php +msgid "Link" +msgstr "链路" + +#: lib/InventoryPage.php +msgid "No ports recorded yet." +msgstr "尚未记录端口。" + +#: lib/InventoryPage.php +#, php-format +msgid "Device %d" +msgstr "设备 %d" + +#: lib/InventoryPage.php +#, php-format +msgid "%s counters saturated, published as unknown: %s" +msgstr "%s 计数器已饱和,发布为未知:%s" + +#: lib/InventoryPage.php +#, php-format +msgid "%s counters: %d discontinuities, the last %s" +msgstr "%s 计数器:%d 次不连续,最近一次为 %s" + +#: lib/InventoryPage.php +msgid "Valid" +msgstr "有效" + +#: lib/LinkCondition.php +msgid "Up" +msgstr "已连接" + +#: lib/LinkCondition.php +msgid "Below best, limited by enabled values" +msgstr "低于最佳值,受启用值限制" + +#: lib/LinkCondition.php +msgid "Below best, cause unknown" +msgstr "低于最佳值,原因未知" + +#: lib/LinkCondition.php +msgid "Degraded" +msgstr "已降级" + +#: lib/LinkCondition.php +msgid "Down" +msgstr "已断开" + +#: lib/NodeType.php +msgid "Switch" +msgstr "交换机" + +#: lib/NodeType.php +msgid "Channel adapter" +msgstr "通道适配器" + +#: lib/NodeType.php +msgid "Router" +msgstr "路由器" + +#: lib/OperatorPage.php +msgid "Review the recorded observations below. Acknowledgments are personal to this session, expire when observations change, and never suppress alerts or change health." +msgstr "查看下方记录的观测结果。确认记录仅对当前会话中的您有效,在观测结果变化时失效,且不会抑制告警或更改健康状态。" + +#: lib/OperatorPage.php lib/Pages.php +msgid "Fabric Operations" +msgstr "Fabric 运维" + +#: lib/OperatorPage.php +msgid "Investigation" +msgstr "调查" + +#: lib/OperatorPage.php +msgid "Object" +msgstr "对象" + +#: lib/OperatorPage.php +msgid "Observed (UTC)" +msgstr "观测时间(UTC)" + +#: lib/OperatorPage.php +msgid "Unknown or stale" +msgstr "未知或已过期" + +#: lib/OperatorPage.php +msgid "Acknowledged; health unchanged." +msgstr "已确认;健康状态未改变。" + +#: lib/OperatorPage.php +msgid "Acknowledge" +msgstr "确认" + +#: lib/OperatorPage.php +msgid "No observations are available for devices you may access." +msgstr "您有权访问的设备暂无观测结果。" + +#: lib/Pages.php +msgid "Fabric Operator" +msgstr "Fabric 操作员" + +#: lib/Pages.php +msgid "Fabric View" +msgstr "Fabric 查看" + +#: lib/PrivilegeProbe.php +msgid "The sweep runs as root. Run the poller as an unprivileged account with read access to the umad devices through a group." +msgstr "扫描以 root 身份运行。请使用非特权账户运行采集器,并通过组授予其 umad 设备读取权限。" + +#: lib/PrivilegeProbe.php +msgid "A diagnostics tool has the setuid or setgid bit. The plugin never needs it." +msgstr "某个诊断工具设置了 setuid 或 setgid 位。插件永远不需要这些位。" + +#: lib/PrivilegeProbe.php +msgid "A diagnostics tool or its directory can be written by an account other than its owner, or by the poller account. Whoever can write it chooses what the poller runs." +msgstr "诊断工具或其目录可由所有者以外的账户或采集器账户写入。任何能写入它的人都能决定采集器运行的内容。" + +#: lib/PrivilegeProbe.php +msgid "A umad device is readable or writable by every account, so any local user can query the fabric. Restrict it to a group." +msgstr "某个 umad 设备可被所有账户读取或写入,因此任何本地用户均可查询互连网络。请将访问权限限制到一个组。" + +#: lib/PrivilegeProbe.php lib/ToolDirectory.php +msgid "Unknown warning" +msgstr "未知警告" + +#: lib/Settings.php +msgid "Diagnostics Tools" +msgstr "诊断工具" + +#: lib/Settings.php +msgid "Absolute directory, on each poller that sweeps a fabric, holding perfquery, ibnetdiscover, and iblinkinfo. The Debian and Ubuntu packages install them in /usr/sbin. No other program is ever run from it." +msgstr "每个扫描互连网络的采集器上存放 perfquery、ibnetdiscover 和 iblinkinfo 的绝对目录。Debian 和 Ubuntu 软件包将其安装在 /usr/sbin 中。永远不会从此目录运行其他程序。" + +#: lib/Settings.php +msgid "Tool Directory" +msgstr "工具目录" + +#: lib/Settings.php +msgid "Node Name Map" +msgstr "节点名称映射" + +#: lib/Settings.php +msgid "Optional absolute path to an infiniband-diags node name map file. Names it supplies are shown only; identity is always the node GUID." +msgstr "可选的 infiniband-diags 节点名称映射文件绝对路径。提供的名称仅用于显示;标识始终为节点 GUID。" + +#: lib/Settings.php +msgid "Datagram Timeout" +msgstr "数据报超时" + +#: lib/Settings.php +msgid "Milliseconds each management datagram may take before the tools retry it (their -t option)." +msgstr "工具重试每个管理数据报之前允许等待的毫秒数(工具的 -t 选项)。" + +#: lib/Settings.php +msgid "Command Timeout" +msgstr "命令超时" + +#: lib/Settings.php +msgid "Seconds one tool run may take before it is stopped and recorded as failed." +msgstr "每次工具运行允许的秒数,超时后停止并记录为失败。" + +#: lib/Settings.php +msgid "KiB one tool run may print. Larger output is discarded and recorded as failed." +msgstr "每次工具运行允许输出的 KiB 数。超出限制的输出将丢弃,并记录为失败。" + +#: lib/Settings.php +msgid "Maximum Output" +msgstr "最大输出" + +#: lib/Settings.php +msgid "Sweep" +msgstr "扫描" + +#: lib/Settings.php +msgid "Node Time Budget" +msgstr "节点时间预算" + +#: lib/Settings.php +msgid "Seconds one node sweep may spend reading counters. Ports not reached are read in the next cycle." +msgstr "每个节点扫描可用于读取计数器的秒数。未读取的端口将在下一个周期读取。" + +#: lib/Settings.php +msgid "Failed ports after which a node sweep stops for this cycle. A port that does not answer costs several seconds." +msgstr "节点扫描在本周期停止之前允许的失败端口数。不响应的端口会消耗数秒。" + +#: lib/Settings.php +msgid "Node Failure Budget" +msgstr "节点失败预算" + +#: lib/Settings.php +msgid "Index Down Ports" +msgstr "索引断开的端口" + +#: lib/Settings.php +msgid "When checked, the Fabric Port data query also lists ports that are down and have no remote end, such as unused adapter ports. Cleared, they are left out until they come up." +msgstr "选中时,Fabric Port 数据查询也会列出已断开且无远端的端口,例如未使用的适配器端口。不选中时,直到端口连接后才将其列出。" + +#: lib/Settings.php +msgid "Uninstall" +msgstr "卸载" + +#: lib/Settings.php +msgid "Keep Plugin Tables on Uninstall" +msgstr "卸载时保留插件表" + +#: lib/Settings.php +msgid "When checked, uninstalling the plugin keeps its fabrics, inventory, and samples. Clear it to have the uninstall drop them; export the inventory first from the Fabric Admin page. The fabric is never contacted either way." +msgstr "选中时,卸载插件将保留互连网络、清单和样本。不选中时,卸载将删除这些内容;请先从 Fabric 管理页面导出清单。无论哪种情况都不会连接互连网络。" + +#: lib/ToolDirectory.php +msgid "The tool directory must be an absolute path of letters, digits, dots, dashes, underscores, and slashes, with no trailing slash." +msgstr "工具目录必须是仅含字母、数字、点、连字符、下划线和斜杠的绝对路径,且末尾不能带斜杠。" + +#: lib/ToolDirectory.php +msgid "The tool directory does not exist or is not a directory." +msgstr "工具目录不存在或不是目录。" + +#: lib/ToolDirectory.php +msgid "The tool directory path contains a symbolic link. Enter the real path." +msgstr "工具目录路径包含符号链接。请输入实际路径。" + +#: lib/ToolDirectory.php +msgid "The tool directory is not owned by root." +msgstr "工具目录不属于 root。" + +#: lib/ToolDirectory.php +msgid "The tool directory can be written by its group or by others." +msgstr "工具目录可由其所属组或其他用户写入。" + +#: setup.php +#, php-format +msgid "The Fabric plugin requires PHP %s or later. This server runs PHP %s, so the plugin was not installed or enabled." +msgstr "Fabric 插件要求 PHP %s 或更高版本。此服务器运行 PHP %s,因此未安装或启用插件。" + +#: setup.php +msgid "The Fabric plugin is not enabled." +msgstr "Fabric 插件未启用。" + +#: setup.php +#, php-format +msgid "The Fabric plugin requires PHP %s or later." +msgstr "Fabric 插件要求 PHP %s 或更高版本。" + +#: setup.php +msgid "Management" +msgstr "管理" + +#: setup.php +#, php-format +msgid "The Tool Directory was not saved. %s" +msgstr "工具目录未保存。%s" diff --git a/phpstan.neon b/phpstan.neon index e772c19..d5060d0 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -23,6 +23,7 @@ parameters: paths: - lib - setup.php + - include/operator.php - include/unbooted-uninstall.php - scripts scanDirectories: diff --git a/setup.php b/setup.php index 69a3d3b..01d9807 100644 --- a/setup.php +++ b/setup.php @@ -100,13 +100,18 @@ function plugin_fabric_check_config(): bool { } /** - * Common start of every page script, after include/auth.php has authorized - * the realm. Refuses on an unsupported runtime or a disabled plugin, because - * Cacti keeps plugin realms registered while a plugin is disabled. + * Common start after include/auth.php establishes the user. Recheck the + * realm here because cookie and Basic login restore the user after the + * alternate-realms hook. Disabled plugins and unsupported runtimes refuse. */ function fabric_page_start(): bool { if (fabric_boot() && api_plugin_is_enabled('fabric')) { - return true; + if (fabric_page_allowed()) { + return true; + } + http_response_code(403); + + return false; } top_header(); @@ -254,7 +259,7 @@ function fabric_setup_hooks(bool $grant = false): void { } foreach (\Somethingwithproof\Fabric\Pages::realms() as $realm) { - api_plugin_register_realm('fabric', implode(',', $realm['files']), $realm['name'], $grant); + api_plugin_register_realm('fabric', implode(',', $realm['files']), $realm['name'], $grant && $realm['files'] !== \Somethingwithproof\Fabric\Pages::OPERATOR); } } @@ -324,6 +329,10 @@ function fabric_config_arrays(): void { function fabric_config_settings(): void { global $tabs, $settings; + if (PHP_SAPI !== 'cli' && !api_plugin_user_realm_auth('fabric_admin.php')) { + return; + } + if (!fabric_boot()) { return; } @@ -349,10 +358,17 @@ function fabric_config_settings(): void { * @return array */ function fabric_draw_navigation_text($nav) { + global $current_user; + if (!fabric_boot()) { return $nav; } + // Refresh settings after core restores cookie or Basic authentication. + if (get_current_page() === 'settings.php' && (PHP_SAPI === 'cli' || ($current_user['enabled'] ?? '') === 'on')) { + fabric_config_settings(); + } + return array_merge($nav, \Somethingwithproof\Fabric\Pages::navigation()); } @@ -429,3 +445,63 @@ function fabric_script_sweep_seconds(): float { return (float) max(0, ($timeout > 0 ? $timeout : 25) - 5); } + +/** Resolve role inheritance against Cacti's current user and group grants. */ +function fabric_auth_alternate_realms(): void { + global $user_auth_realm_filenames; + + static $deferred = array(); + + foreach ($deferred as $file => $realm) { + $user_auth_realm_filenames[$file] = $realm; + } + $deferred = array(); + + if (!api_plugin_is_enabled('fabric')) { + return; + } + + if (empty($_SESSION['sess_user_id'])) { + // Core restores cookie and Basic authentication after this hook. Only + // these entrypoints defer the realm check to their post-auth guard. + $page = get_current_page(); + + if (in_array($page, array('fabric.php', 'fabric_operator.php'), true) && isset($user_auth_realm_filenames[$page])) { + $deferred[$page] = $user_auth_realm_filenames[$page]; + $user_auth_realm_filenames[$page] = -1; + } + + return; + } + $operator = 'fabric_operator.php'; + $admin = 'fabric_admin.php'; + $files = array('fabric.php'); + $realm = $user_auth_realm_filenames[$admin] ?? 0; + if ($realm > 0 && is_realm_allowed($realm)) { + $files[] = $operator; + } else { + $realm = $user_auth_realm_filenames[$operator] ?? 0; + if ($realm <= 0 || !is_realm_allowed($realm)) { + return; + } + } + foreach ($files as $file) { + $user_auth_realm_filenames[$file] = $realm; + } +} + +/** Recheck the authenticated user before a plugin page reads data or acts. */ +function fabric_page_allowed(): bool { + global $current_user; + + fabric_auth_alternate_realms(); + $userId = $current_user['id'] ?? null; + $sessionId = $_SESSION['sess_user_id'] ?? null; + + return (is_int($userId) || (is_string($userId) && ctype_digit($userId))) + && (is_int($sessionId) || (is_string($sessionId) && ctype_digit($sessionId))) + && (int) $userId > 0 && (int) $userId === (int) $sessionId + && api_plugin_is_enabled('fabric') + && ($current_user['enabled'] ?? '') === 'on' + && api_plugin_user_realm_auth(get_current_page()); +} diff --git a/tests/Integration/LifecycleTest.php b/tests/Integration/LifecycleTest.php index 3c6c04e..00e937c 100644 --- a/tests/Integration/LifecycleTest.php +++ b/tests/Integration/LifecycleTest.php @@ -29,7 +29,7 @@ // What the seed action leaves: one fabric and one node. const FABRIC_SEEDED = ['plugin_fabric_claim' => 0, 'plugin_fabric_fabric' => 1, 'plugin_fabric_health' => 0, 'plugin_fabric_node' => 1, 'plugin_fabric_node_sweep' => 0, 'plugin_fabric_port' => 0, 'plugin_fabric_relink' => 0, 'plugin_fabric_sample' => 0]; -const FABRIC_HOOKS = ['config_arrays', 'config_settings', 'device_remove', 'draw_navigation_text']; +const FABRIC_HOOKS = ['auth_alternate_realms', 'config_arrays', 'config_settings', 'device_remove', 'draw_navigation_text']; beforeEach(function () { lifecycle('reset'); @@ -39,7 +39,7 @@ lifecycle('reset'); }); -it('installs fresh with tracked tables, hooks, and both realms, leaving the plugin disabled', function () { +it('installs fresh with tracked tables, hooks, and three realms, leaving the plugin disabled', function () { $state = lifecycle('install'); expect($state['plugin']['status'])->toEqual('4') @@ -49,8 +49,9 @@ ->and($state['tracked'])->toBe(FABRIC_TABLES) ->and(array_keys($state['hooks']))->toBe(FABRIC_HOOKS) ->and($state['realms'])->toEqual([ - 'fabric.php' => 'Fabric View', + 'fabric.php' => 'Fabric View', 'fabric_admin.php,fabric_health.php' => 'Fabric Admin', + 'fabric_operator.php' => 'Fabric Operator', ]) ->and($state['admin'])->toBe(2); }); @@ -99,7 +100,7 @@ expect($state['result'])->toBeTrue() ->and(array_keys($state['hooks']))->toBe(FABRIC_HOOKS) - ->and($state['realms'])->toHaveCount(2); + ->and($state['realms'])->toHaveCount(3); }); it('makes a hook repaired while the plugin is enabled active, and one repaired while disabled not', function () { @@ -203,7 +204,7 @@ expect(lifecycle('install')['admin'])->toBe(2); $repair = lifecycle('repair_as_viewer'); - expect($repair['realms'])->toHaveCount(2) + expect($repair['realms'])->toHaveCount(3) ->and($repair['result'])->toBe(['viewer_realms' => 0]); }); @@ -319,3 +320,23 @@ expect(lifecycle('install')['objects'])->toBe($installed); }); + +it('preserves old grants and resolves the three roles through Cacti including groups', function () { + lifecycle('install'); + lifecycle('enable'); + $roles = lifecycle('operator_roles')['result']; + expect($roles['ids_preserved'])->toBeTrue() + ->and($roles['viewer_grants'])->toBe([$roles['expected_view']]) + ->and($roles['hook_enabled'])->toBe(1) + ->and($roles['viewer'])->toBe([true, false, false]) + ->and($roles['operator'])->toBe([true, true, false]) + ->and($roles['admin'])->toBe([true, true, true]) + ->and($roles['revoked'])->toBe([false, false, false]) + ->and($roles['group_operator'])->toBe([true, true, false]) + ->and($roles['disabled_group'])->toBe([false, false, false]) + ->and($roles['first_request']['viewer'])->toBe([[true, true, true], [true, false, true], [false, false, true]]) + ->and($roles['first_request']['operator'])->toBe([[true, true, true], [true, true, true], [false, false, true]]) + ->and($roles['first_request']['admin'])->toBe([[true, true, true], [true, true, true], [false, true, true]]) + ->and($roles['first_request']['revoked'])->toBe([false, false, false]) + ->and($roles['disabled_user'])->toBe([false, false, false]); +}); diff --git a/tests/Unit/BootTest.php b/tests/Unit/BootTest.php index 048c051..2165afd 100644 --- a/tests/Unit/BootTest.php +++ b/tests/Unit/BootTest.php @@ -78,6 +78,7 @@ it('registers no poller_bottom hook: sweeps start lazily (ADR 0008)', function () { expect(Somethingwithproof\Fabric\Schema::HOOKS)->toBe([ + 'auth_alternate_realms' => 'fabric_auth_alternate_realms', 'config_arrays' => 'fabric_config_arrays', 'config_settings' => 'fabric_config_settings', 'draw_navigation_text' => 'fabric_draw_navigation_text', diff --git a/tests/Unit/OperatorTest.php b/tests/Unit/OperatorTest.php new file mode 100644 index 0000000..ba2a2d4 --- /dev/null +++ b/tests/Unit/OperatorTest.php @@ -0,0 +1,111 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_fabric, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_fabric + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +use Somethingwithproof\Fabric\OperatorPage; + +function fabric_triage_fixture(): array { + return ['id' => '7', 'name' => '', 'state' => 'failed', 'observed' => 900, 'interval' => 60, 'detail' => 'timeout']; +} + +it('requires an operator, a known action, POST and a valid CSRF token', function () { + $actions = ['acknowledge', 'retry']; + expect(OperatorPage::actionStatus(false, 'retry', 'POST', true, $actions))->toBe(403) + ->and(OperatorPage::actionStatus(true, 'delete', 'POST', true, $actions))->toBe(400) + ->and(OperatorPage::actionStatus(true, 'retry', 'GET', true, $actions))->toBe(405) + ->and(OperatorPage::actionStatus(true, 'retry', 'POST', false, $actions))->toBe(403) + ->and(OperatorPage::actionStatus(true, 'retry', 'POST', true, $actions))->toBe(200); +}); + +it('acknowledges only unchanged, current evidence for the acting user', function () { + $row = fabric_triage_fixture(); + $session = []; + $fingerprint = OperatorPage::fingerprint($row); + expect(OperatorPage::acknowledge($session, $row, $fingerprint, 2, 1000))->toBeTrue() + ->and(OperatorPage::acknowledged($session, $row, 2, 1000))->toBeTrue() + ->and(OperatorPage::acknowledged($session, $row, 3, 1000))->toBeFalse() + ->and(OperatorPage::acknowledged($session, $row, 2, 1021))->toBeFalse() + ->and(OperatorPage::acknowledged($session, array_replace($row, ['state' => 'ok']), 2, 1000))->toBeFalse() + ->and(OperatorPage::acknowledged($session, array_replace($row, ['observed' => 950]), 2, 1000))->toBeFalse() + ->and(OperatorPage::acknowledge($session, $row, 'forged', 2, 1000))->toBeFalse() + ->and(OperatorPage::acknowledge($session, $row, $fingerprint, 0, 1000))->toBeFalse() + ->and(OperatorPage::acknowledge($session, $row, $fingerprint, 2, 800))->toBeFalse(); +}); + +it('bounds personal acknowledgments and drops the previous users entries', function () { + $session = []; + + for ($i = 1; $i <= 120; $i++) { + $row = array_replace(fabric_triage_fixture(), ['id' => (string) $i]); + OperatorPage::acknowledge($session, $row, OperatorPage::fingerprint($row), 2, 1000); + } + expect($session['entries'])->toHaveCount(100) + ->and($session['entries'])->not->toHaveKey('1'); + $row = fabric_triage_fixture(); + OperatorPage::acknowledge($session, $row, OperatorPage::fingerprint($row), 3, 1000); + expect($session['entries'])->toHaveCount(1)->and($session['user'])->toBe(3); +}); + +it('never treats absent or future observations as fresh', function () { + $row = fabric_triage_fixture(); + expect(OperatorPage::fresh(array_replace($row, ['observed' => 0]), 1000))->toBeFalse() + ->and(OperatorPage::fresh(array_replace($row, ['observed' => 1001]), 1000))->toBeFalse() + ->and(OperatorPage::fresh($row, 1020))->toBeTrue() + ->and(OperatorPage::fresh($row, 1021))->toBeFalse(); +}); + +it('ignores malformed session acknowledgments without hiding current health', function () { + $row = fabric_triage_fixture(); + expect(OperatorPage::acknowledged(['user' => 2, 'entries' => 'bad'], $row, 2, 1000))->toBeFalse(); + $session = ['user' => 2, 'entries' => ['7' => ['at' => 'invalid']]]; + expect(OperatorPage::acknowledge($session, $row, OperatorPage::fingerprint($row), 2, 1000))->toBeTrue() + ->and($row['state'])->toBe('failed'); +}); + +if (!function_exists('is_device_allowed')) { + function is_device_allowed($hostId, $userId = 0) { + return in_array($hostId, $GLOBALS['__fabric_operator_hosts'] ?? [], true); + } +} + +it('uses discovery evidence and cadence for missing nodes without exposing hidden devices', function () { + require_once dirname(__DIR__, 2) . '/include/operator.php'; + $original = $GLOBALS['__fabric_db_rows']; + $options = $GLOBALS['__fabric_options']; + $node = ['id' => 7, 'fabric_id' => 1, 'guid' => '0000000000000007', 'node_type' => 'switch', 'host_id' => 42, 'presence' => 'missing', 'identity' => 'ok', 'last_seen' => 1000, 'sweep_interval' => 600, 'discovery_success' => 1900]; + $GLOBALS['__fabric_operator_hosts'] = [42]; + $GLOBALS['__fabric_options']['poller_interval'] = '60'; + $GLOBALS['__fabric_db_rows'] = ['FROM plugin_fabric_node' => [$node, array_replace($node, ['id' => 8, 'host_id' => 43])]]; + + try { + $rows = fabric_operator_rows(); + expect($rows)->toHaveCount(1) + ->and($rows[0]['observed'])->toBe(1900) + ->and($rows[0]['interval'])->toBe(300) + ->and(OperatorPage::fresh($rows[0], 2200))->toBeTrue() + ->and(OperatorPage::fresh($rows[0], 2501))->toBeFalse(); + $GLOBALS['__fabric_db_rows'] = ['FROM plugin_fabric_node' => [array_replace($node, ['presence' => 'present'])]]; + expect(fabric_operator_rows()[0]['observed'])->toBe(1000); + $GLOBALS['__fabric_db_rows'] = ['FROM plugin_fabric_node' => [array_replace($node, ['discovery_success' => null])]]; + expect(OperatorPage::fresh(fabric_operator_rows()[0], 2000))->toBeFalse(); + } finally { + $GLOBALS['__fabric_db_rows'] = $original; + $GLOBALS['__fabric_options'] = $options; + unset($GLOBALS['__fabric_operator_hosts']); + } +}); diff --git a/tests/bin/lifecycle.php b/tests/bin/lifecycle.php index 9c25271..e8ceb0c 100644 --- a/tests/bin/lifecycle.php +++ b/tests/bin/lifecycle.php @@ -212,6 +212,10 @@ $result = array('viewer_realms' => (int) db_fetch_cell_prepared('SELECT COUNT(*) FROM user_auth_realm WHERE user_id = ?', array($viewer))); db_execute("REPLACE INTO settings (name, value) VALUES ('admin_user', '1')"); + break; + case 'operator_roles': + include(__DIR__ . '/operator-roles.php'); + break; case 'state': break; diff --git a/tests/bin/operator-roles.php b/tests/bin/operator-roles.php new file mode 100644 index 0000000..6c3af6c --- /dev/null +++ b/tests/bin/operator-roles.php @@ -0,0 +1,114 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_fabric, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_fabric + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +// Executed only by lifecycle.php in a disposable Cacti database. +if (PHP_SAPI !== 'cli') { + exit(1); +} + +if (getenv('FABRIC_TEST_DATABASE') !== 'disposable') { + exit(2); +} +require_once $config['library_path'] . '/auth.php'; +require_once $config['base_path'] . '/plugins/fabric/setup.php'; +fabric_boot(); +$view = \Somethingwithproof\Fabric\Pages::VIEW[0]; +$admin = \Somethingwithproof\Fabric\Pages::ADMIN[0]; +$operator = 'fabric_operator.php'; +api_plugin_load_realms(); +$old = [$view => $user_auth_realm_filenames[$view], $admin => $user_auth_realm_filenames[$admin]]; +// Emulate an installed two-realm release without modifying the existing IDs. +$operatorId = $user_auth_realm_filenames[$operator]; +db_execute_prepared('DELETE FROM user_auth_realm WHERE realm_id = ?', [$operatorId]); +db_execute_prepared('DELETE FROM plugin_realms WHERE id = ?', [$operatorId - 100]); +db_execute("DELETE FROM plugin_hooks WHERE name = 'fabric' AND hook = 'auth_alternate_realms'"); +db_execute("INSERT INTO user_auth (username, password, realm, full_name, enabled) VALUES ('fabric_role_test', '', 0, 'Role test', 'on')"); +$user = (int) db_fetch_insert_id(); +db_execute_prepared('INSERT INTO user_auth_realm (user_id, realm_id) VALUES (?, ?)', [$user, $old[$view]]); +$_SESSION = ['sess_user_id' => $user]; +plugin_fabric_upgrade(); +api_plugin_load_realms(); +$result = [ + 'ids_preserved' => $old === [$view => $user_auth_realm_filenames[$view], $admin => $user_auth_realm_filenames[$admin]], + 'viewer_grants' => array_map('intval', array_column(db_fetch_assoc_prepared('SELECT realm_id FROM user_auth_realm WHERE user_id = ?', [$user]), 'realm_id')), + 'expected_view' => $old[$view], + 'hook_enabled' => (int) db_fetch_cell("SELECT status FROM plugin_hooks WHERE name = 'fabric' AND hook = 'auth_alternate_realms'"), +]; +$realms = [$view => $user_auth_realm_filenames[$view], $operator => $user_auth_realm_filenames[$operator], $admin => $user_auth_realm_filenames[$admin]]; +$check = static function () use ($user, $view, $operator, $admin): array { + $_SESSION = ['sess_user_id' => $user]; + api_plugin_load_realms(); + fabric_auth_alternate_realms(); + + return [api_plugin_user_realm_auth($view), api_plugin_user_realm_auth($operator), api_plugin_user_realm_auth($admin)]; +}; + +foreach (['viewer' => $view, 'operator' => $operator, 'admin' => $admin] as $role => $file) { + db_execute_prepared('DELETE FROM user_auth_realm WHERE user_id = ?', [$user]); + db_execute_prepared('INSERT INTO user_auth_realm (user_id, realm_id) VALUES (?, ?)', [$user, $realms[$file]]); + $result[$role] = $check(); + + foreach ([$view, $operator, $admin] as $page) { + $_SERVER['SCRIPT_NAME'] = '/plugins/fabric/' . $page; + $_SESSION = []; + api_plugin_load_realms(); + fabric_auth_alternate_realms(); + $deferred = $user_auth_realm_filenames[$page] === -1; + // Both cookie restore and Basic auth establish the user after the hook. + $_SESSION = ['sess_user_id' => $user]; + $current_user = db_fetch_row_prepared('SELECT * FROM user_auth WHERE id = ?', [$user]); + $allowed = fabric_page_allowed(); + $result['first_request'][$role][] = [$deferred, $allowed, $user_auth_realm_filenames[$page] > 0]; + } +} +// A valid realm never enables a disabled account after authentication restore. +db_execute_prepared("UPDATE user_auth SET enabled = '' WHERE id = ?", [$user]); +foreach ([$view, $operator, $admin] as $page) { + $_SERVER['SCRIPT_NAME'] = '/plugins/fabric/' . $page; + $_SESSION = []; + api_plugin_load_realms(); + fabric_auth_alternate_realms(); + $_SESSION = ['sess_user_id' => $user]; + $current_user = db_fetch_row_prepared('SELECT * FROM user_auth WHERE id = ?', [$user]); + $result['disabled_user'][] = fabric_page_allowed(); +} +db_execute_prepared("UPDATE user_auth SET enabled = 'on' WHERE id = ?", [$user]); +db_execute_prepared('DELETE FROM user_auth_realm WHERE user_id = ?', [$user]); +$result['revoked'] = $check(); +foreach ([$view, $operator, $admin] as $page) { + $_SERVER['SCRIPT_NAME'] = '/plugins/fabric/' . $page; + $_SESSION = []; + api_plugin_load_realms(); + fabric_auth_alternate_realms(); + $_SESSION = ['sess_user_id' => $user]; + $current_user = db_fetch_row_prepared('SELECT * FROM user_auth WHERE id = ?', [$user]); + $result['first_request']['revoked'][] = fabric_page_allowed(); +} +db_execute("INSERT INTO user_auth_group (name, enabled) VALUES ('fabric_role_test', 'on')"); +$group = (int) db_fetch_insert_id(); +db_execute_prepared('INSERT INTO user_auth_group_members (group_id, user_id) VALUES (?, ?)', [$group, $user]); +db_execute_prepared('INSERT INTO user_auth_group_realm (group_id, realm_id) VALUES (?, ?)', [$group, $realms[$operator]]); +$result['group_operator'] = $check(); +db_execute_prepared("UPDATE user_auth_group SET enabled = '' WHERE id = ?", [$group]); +$result['disabled_group'] = $check(); +db_execute_prepared('DELETE FROM user_auth_group_realm WHERE group_id = ?', [$group]); +db_execute_prepared('DELETE FROM user_auth_group_members WHERE group_id = ?', [$group]); +db_execute_prepared('DELETE FROM user_auth_group WHERE id = ?', [$group]); +db_execute_prepared('DELETE FROM user_auth WHERE id = ?', [$user]); +$_SESSION = []; diff --git a/tests/bin/php-guard-check.php b/tests/bin/php-guard-check.php index e442a16..a744b45 100644 --- a/tests/bin/php-guard-check.php +++ b/tests/bin/php-guard-check.php @@ -113,7 +113,7 @@ function guard_call_shims() { if ($supported) { guard_expect($state['status'] == 1, 'install and enable succeed (status ' . $state['status'] . ')'); guard_expect($state['tables'] === 8, 'all eight plugin tables exist (' . $state['tables'] . ')'); - guard_expect($state['hooks'] === 4 && $state['realms'] === 2, 'hooks and realms are registered'); + guard_expect($state['hooks'] === 5 && $state['realms'] === 3, 'hooks and realms are registered'); } else { guard_expect($state['status'] == 2, 'plugin is left as needing configuration, not enabled (status ' . $state['status'] . ')'); guard_expect($state['tables'] === 0 && $state['hooks'] === 0 && $state['realms'] === 0, 'no tables, hooks, or realms were created'); diff --git a/tests/check_translations.py b/tests/check_translations.py new file mode 100644 index 0000000..316e179 --- /dev/null +++ b/tests/check_translations.py @@ -0,0 +1,164 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-2.0-or-later +# SPDX-FileCopyrightText: 2026 Thomas Vincent +"""Check required catalogs and translated user guides without third-party packages.""" + +import ast +import gettext +import hashlib +import json +from pathlib import Path +import re +import sys +from urllib.parse import unquote, urlsplit + + +LOCALES = ("zh-CN", "hi-IN", "es-ES", "es-419", "ar-SA") +NAVIGATION = re.compile(r"\n.*?\n\n?", re.S) +HEADER = re.compile(r"") +TOKENS = re.compile(r"%(?:\d+\$)?[-+ 0#]*\d*(?:\.\d+)?[sdfuxXcoeEgGi]|%%|<[^>]*>") + + +def messages(path): + result = [] + for block in path.read_text(encoding="utf-8").split("\n\n"): + fields = {} + current = None + for line in block.splitlines(): + match = re.match(r'(msgid_plural|msgid) (".*")$', line) + if match: + current = match[1] + fields[current] = ast.literal_eval(match[2]) + elif line.startswith('"') and current: + fields[current] += ast.literal_eval(line) + else: + current = None + if fields.get("msgid"): + result.append(fields) + return result + + +def edges(text): + return (text[:len(text) - len(text.lstrip())], text[len(text.rstrip()):]) + + +def source_text(text): + return NAVIGATION.sub("", text) + + +def fenced_sections(text: str) -> tuple[list[tuple[str, str]], str]: + blocks = [] + prose = [] + fence = None + content = [] + language = "" + for line in text.splitlines(): + match = re.match(r"^[ \t]*(`{3,}|~{3,})(.*)$", line) + if fence is None and match: + fence, language = match[1], match[2].strip() + content = [] + prose.append("") + elif (fence is not None and match + and match[1][0] == fence[0] + and len(match[1]) >= len(fence) + and not match[2].strip()): + blocks.append((language, "\n".join(content))) + fence = None + elif fence is not None: + content.append(line) + else: + prose.append(line) + if fence is not None: + raise ValueError("unclosed code fence") + return blocks, "\n".join(prose) + + +def code_blocks(text): + blocks, _ = fenced_sections(text) + return [content for language, content in blocks if language != "mermaid"] + + +def links(text): + # Fenced examples can contain literal Markdown and URLs that are not links. + _, text = fenced_sections(text) + result = re.findall(r"\]\(]+)>?(?:\s+[\"'][^\n]*?[\"'])?\)", text) + result.extend(re.findall(r"(?:href|src|srcset)=[\"']([^\"']+)[\"']", text)) + return result + + +def heading_levels(text): + _, text = fenced_sections(text) + return [len(level) for level in re.findall(r"^(#{1,6})\s+", text, re.M)] + + +def validate(root): + failures = [] + manifest_path = root / "docs/i18n/manifest.json" + manifest = json.loads(manifest_path.read_text(encoding="utf-8")) + sources = manifest["sources"] + if manifest["locales"] != list(LOCALES): + failures.append("manifest locales must include both Spanish variants") + if "README.md" not in sources or len(sources) != len(set(sources)): + failures.append("manifest needs README.md and unique source paths") + template = messages(root / "locales/po/cacti.pot") + for locale in LOCALES: + for path in (root / "locales/po" / (locale + ".po"), root / "locales/LC_MESSAGES" / (locale + ".mo")): + if not path.is_file(): + failures.append("missing catalog: " + str(path.relative_to(root))) + mo = root / "locales/LC_MESSAGES" / (locale + ".mo") + if mo.is_file(): + with mo.open("rb") as stream: + catalog = gettext.GNUTranslations(stream) + if catalog.info().get("language") != locale: + failures.append("wrong compiled language header: " + locale) + for entry in template: + original = entry["msgid"] + values = [catalog.gettext(original)] + if "msgid_plural" in entry: + values = [catalog.ngettext(original, entry["msgid_plural"], n) for n in (0, 1, 2, 3, 11, 100)] + for value in values: + if sorted(TOKENS.findall(original)) != sorted(TOKENS.findall(value)) or edges(original) != edges(value): + failures.append("placeholder, markup or whitespace mismatch: " + locale + ": " + original) + for source in sources: + original = root / source + translated = root / "docs/i18n" / locale / source + label = str(translated.relative_to(root)) + if not original.is_file() or not translated.is_file(): + failures.append("missing source or translation: " + label) + continue + english = source_text(original.read_text(encoding="utf-8")) + text = translated.read_text(encoding="utf-8") + header = HEADER.search(text) + digest = hashlib.sha256(english.encode()).hexdigest() + if header is None or header[1] != source or header[2] != digest: + failures.append("source changed; review and refresh translation: " + label) + body = re.sub(r'^\n', "", text, flags=re.M) + if source_text(HEADER.sub("", body)).strip() == english.strip(): + failures.append("translation is an English copy: " + label) + if heading_levels(english) != heading_levels(text): + failures.append("heading structure differs from source: " + label) + try: + if code_blocks(english) != code_blocks(text): + failures.append("code examples differ from source: " + label) + except ValueError as error: + failures.append(str(error) + ": " + label) + for link in links(text): + parts = urlsplit(link) + if parts.scheme or parts.netloc or not parts.path or parts.path.startswith("/"): + continue + target = (translated.parent / unquote(parts.path)).resolve() + if not target.is_relative_to(root.resolve()) or not target.exists(): + failures.append("broken local link: " + label + " -> " + link) + if failures: + print("\n".join(failures), file=sys.stderr) + return 1 + print(f"Verified {len(LOCALES)} locale catalogs and {len(sources) * len(LOCALES)} translated guides") + return 0 + + +if __name__ == "__main__": + try: + sys.exit(validate(Path(__file__).resolve().parents[1])) + except (OSError, ValueError, KeyError) as error: + print("Translation validation failed: " + str(error), file=sys.stderr) + sys.exit(1)