diff --git a/README.md b/README.md index dbcfc6b..ce97220 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,37 @@ + +[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_hpcsched A Cacti 1.2 plugin that graphs the state of an HPC batch scheduler next to the devices Cacti already monitors: queue depth, pending versus running jobs, why jobs are pending, node states, and partition utilization. Slurm is the first backend. Thold alerts on the resulting data sources, and Maint can be driven by drained nodes and maintenance reservations. -> **Status: in development, no release yet.** Milestone 2 (foundation) is merged on `main`, and this branch adds milestone 3 (cluster graphs and pending reasons). The code installs, upgrades, and uninstalls through Cacti's plugin API and refuses PHP below 8.2. It keeps a registry of Slurm clusters, each assigned to one Cacti poller. A background reader on the main poller collects one snapshot per cluster per interval, either by running `squeue`, `scontrol`, and `sshare` with `--json` or by reading `slurmrestd` over HTTPS, and stores job counts by state and pending reason, node states, partitions, reservations, and fair-share usage with their freshness. The plugin ships Cacti templates and, on an administrator's confirmation, creates or maps one Cacti device per cluster with graphs of jobs by state, pending jobs by reason family, nodes by state, CPUs, and utilization, for the cluster and for each partition, plus the snapshot age. A read-only overview page shows counts per cluster with their freshness and a pending reasons view per cluster, and an admin-only health page shows what each collection returned and whether the templates are installed. Every page and action follows Cacti's device permissions. The data sources are ones Thold can alert on, but no Thold or Maint integration has been tested yet; that is milestone 4 and later. The test suite runs against stand-in Slurm commands and a stand-in `slurmrestd` with synthetic data. It has not run against a real Slurm cluster. Below the operator notes, this README describes the design, not shipped behavior. +> **Status: in development, no release yet.** Milestone 2 (foundation) is merged on `main`, and this branch adds milestone 3 (cluster graphs and pending reasons). The code installs, upgrades, and uninstalls through Cacti's plugin API and refuses PHP below 8.2. It keeps a registry of Slurm clusters, each assigned to one Cacti poller. A background reader on the main poller collects one snapshot per cluster per interval, either by running `squeue`, `scontrol`, and `sshare` with `--json` or by reading `slurmrestd` over HTTPS, and stores job counts by state and pending reason, node states, partitions, reservations, and fair-share usage with their freshness. The plugin ships Cacti templates and, on an administrator's confirmation, creates or maps one Cacti device per cluster with graphs of jobs by state, pending jobs by reason family, nodes by state, CPUs, and utilization, for the cluster and for each partition, plus the snapshot age. A read-only overview page shows counts per cluster with their freshness and a pending reasons view per cluster, and an admin-only health page shows what each collection returned and whether the templates are installed. Every page and action follows Cacti's device permissions. The data sources are ones Thold can alert on, but no Thold or Maint integration has been tested yet; that is milestone 4 and later. The test suite covers synthetic Slurm commands and `slurmrestd` responses, and CI also exercises a real six-node Slurm cluster in containers as described below. The reader has not run against a production cluster. Below the operator notes, this README describes the design, not shipped behavior. This is an independent project and is not affiliated with the Cacti project. +## Access roles + +| Realm | Access | +| --- | --- | +| HPC Scheduler View | Existing monitoring pages. | +| HPC Scheduler Operator | Monitoring plus the Operations page and personal triage acknowledgments. | +| HPC Scheduler 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 +HPC Scheduler 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. + ## Operator notes for milestone 2 **Least privilege.** The plugin only reads. Give it a dedicated Slurm user with no administrator or operator role (`AdminLevel=None` in `sacctmgr`). With `PrivateData=jobs` (or `nodes`, `reservations`, `usage`) in `slurm.conf`, that user sees only its own records, so the counts are incomplete and the plugin cannot detect it. Lifting that for the account means an operator or administrator level, which also allows changes; that tradeoff is the site's call. For client commands, the Cacti poller user needs the Slurm client binaries and a `slurm.conf` that reaches the controller; the binary paths are absolute settings under Configuration > Settings > HPC Scheduler. For `slurmrestd`, the URL must be `https://`, or `http://` on a loopback address only. TLS certificates are verified and redirects are not followed. An optional slurmrestd host list under Configuration > Settings > HPC Scheduler limits the hosts and ports a cluster may name. diff --git a/docs/PLAN.md b/docs/PLAN.md index ec89ea0..1dc1200 100644 --- a/docs/PLAN.md +++ b/docs/PLAN.md @@ -391,7 +391,7 @@ Plugin code is object-oriented wherever Cacti's plugin contract allows it. No ma - Classes in `lib/*.php` under the `Somethingwithproof\Hpcsched` namespace (milestone 2; the plan earlier named `Cacti\HpcSched`, which would claim the Cacti project's vendor name for an independent plugin), one per file, loaded by a small autoloader registered after the PHP check. No runtime Composer dependency. Files stay at depth 2 or less because the gettext build scans only that deep (to be confirmed against current Cacti build scripts). - Settings use the `config_settings` hook. Logging uses `cacti_log()` with an `HPCSCHED` tag. Forms rely on csrf-magic. - Strings use the `hpcsched` text domain, with a `locales/` directory and POT file. -- Realms: "HPC Scheduler View" and "HPC Scheduler Admin". +- Realms: "HPC Scheduler View", "HPC Scheduler Operator" and "HPC Scheduler Admin". | Kind | Examples | Notes | |---|---|---| @@ -450,7 +450,7 @@ The setup screen shows the number of data sources and RRD files an import will c | Boundary | Control | |---|---| -| Browser to Cacti | Cacti session, csrf-magic, two realms, device and graph permissions, prepared queries, contextual escaping | +| Browser to Cacti | Cacti session, csrf-magic, three realms, device and graph permissions, prepared queries, contextual escaping | | Cacti poller to Slurm client commands | Argument arrays, no shell, fixed command and option allowlist, no operator input in commands, timeouts and size limits, no `sudo`, no elevated user | | Cacti poller to slurmrestd | GET-only path allowlist, TLS verification on, token from a file with owner-only permissions, token never logged, timeouts and size limits | | Scheduler account | A dedicated, least-privilege Slurm account; the plugin documents what it must see and what `PrivateData` hides | diff --git a/docs/i18n/ar-SA/README.md b/docs/i18n/ar-SA/README.md new file mode 100644 index 0000000..5ebd5ed --- /dev/null +++ b/docs/i18n/ar-SA/README.md @@ -0,0 +1,139 @@ + + + +[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_hpcsched + +إضافة لـ Cacti 1.2 ترسم حالة مُجدول مهام دفعية للحوسبة عالية الأداء بجانب الأجهزة التي يراقبها Cacti بالفعل: عمق الطابور والمهام المنتظرة مقابل الجارية وأسباب الانتظار وحالات العقد واستخدام الأقسام. Slurm هو الواجهة الخلفية الأولى. يطلق Thold تنبيهات على مصادر البيانات الناتجة، ويمكن توجيه Maint بواسطة العقد المفرّغة وحجوزات الصيانة. + +> **الحالة: قيد التطوير، لم يصدر إصدار بعد.** دُمج المعلم 2 (الأساس) في `main`، ويضيف هذا الفرع المعلم 3 (رسوم العناقيد وأسباب الانتظار). تُثبّت الشيفرة وتُرقّى وتُزال عبر واجهة إضافات Cacti، وترفض PHP الأقدم من 8.2. تحتفظ بسجل عناقيد Slurm، يُسند كل منها إلى مُستطلِع Cacti واحد. يجمع قارئ خلفي على المُستطلِع الرئيسي لقطة واحدة لكل عنقود في كل فاصل، إما بتشغيل `squeue` و`scontrol` و`sshare` مع `--json` أو بقراءة `slurmrestd` عبر HTTPS، ويخزّن أعداد المهام حسب الحالة وسبب الانتظار وحالات العقد والأقسام والحجوزات واستخدام الحصة العادلة مع حداثتها. توفر الإضافة قوالب Cacti، وبعد تأكيد المسؤول تنشئ أو تربط جهاز Cacti واحدًا لكل عنقود، مع رسوم للمهام حسب الحالة والمهام المنتظرة حسب فئة السبب والعقد حسب الحالة ووحدات CPU والاستخدام، للعنقود ولكل قسم، إضافة إلى عمر اللقطة. تعرض صفحة عامة للقراءة فقط الأعداد وحداثتها لكل عنقود وعرض أسباب انتظاره؛ وتعرض صفحة حالة صحية خاصة بالمسؤولين ما أعادته كل عملية جمع وما إذا كانت القوالب مثبّتة. تتبع كل صفحة وإجراء أذونات أجهزة Cacti. يستطيع Thold التنبيه على مصادر البيانات هذه، لكن لم يُختبر تكامل Thold أو Maint بعد؛ وذلك للمعلم 4 وما بعده. تغطي مجموعة الاختبارات أوامر Slurm واستجابات `slurmrestd` الاصطناعية، ويختبر CI أيضًا عنقود Slurm حقيقيًا من ست عقد في حاويات كما هو موضح أدناه. لم يعمل القارئ على عنقود إنتاجي. بعد ملاحظات المشغّل، يصف هذا README التصميم لا السلوك الصادر. + +هذا مشروع مستقل وغير تابع لمشروع Cacti. + + +## أدوار الوصول + +| نطاق الأذونات | الوصول | +| --- | --- | +| HPC Scheduler View | صفحات المراقبة الحالية. | +| HPC Scheduler Operator | المراقبة وصفحة العمليات والإقرارات الشخصية أثناء التحقيق. | +| HPC Scheduler Admin | وصول المشغّل مع الإعدادات والإجراءات الإدارية الحالية. | + +بعد نسخ ملفات الترقية، افتح صفحة الإضافات بصفتك مسؤولًا لتسجيل نطاق الأذونات الجديد. امنح نطاق Operator صراحةً ضمن **الإعداد > المستخدمون** أو مجموعات المستخدمين. تحتفظ الترقيات بمعرّفات نطاقي View وAdmin ومنحهما الحالي. يرث Admin وصول Operator ويرث Operator وصول View في كل طلب؛ ولا يضيف ذلك منحًا مخزّنة للمستخدمين أو المجموعات. تتطلب إعدادات الإضافة أيضًا HPC Scheduler Admin بالإضافة إلى إذن الإعدادات في Cacti. + +تظل أذونات أجهزة Cacti تقيّد الصفوف والإجراءات المتاحة لكل مستخدم؛ وتتطلب الكائنات غير المرتبطة مسؤولًا. تبقى بيانات الاعتماد والإعدادات والربط والحذف والتغييرات الإدارية الأخرى في الصفحات الإدارية. لا تستمر الإقرارات إلا في جلسة المستخدم الحالي، لمدة ساعة على الأكثر وفقط ما دامت الملاحظة نفسها حديثة. تُبطلها الملاحظات الجديدة أو المعدّلة. ولا تجعل قياسًا فاشلًا سليمًا أو تكبح التنبيهات مطلقًا. + + +## ملاحظات المشغّل للمعلم 2 + +**أقل الامتيازات.** تقرأ الإضافة فقط. امنحها مستخدم Slurm مخصصًا دون دور مسؤول أو مشغّل (`AdminLevel=None` في `sacctmgr`). مع `PrivateData=jobs` (أو `nodes` أو `reservations` أو `usage`) في `slurm.conf`، لا يرى المستخدم إلا سجلاته، فتكون الأعداد ناقصة ولا تستطيع الإضافة اكتشاف ذلك. يتطلب رفع القيد للحساب مستوى مشغّل أو مسؤول يسمح بالتغييرات أيضًا؛ وهذا توازن تقرره إدارة الموقع. لأوامر العميل، يحتاج مستخدم مُستطلِع Cacti إلى ملفات عميل Slurm التنفيذية وملف `slurm.conf` يصل إلى المتحكم؛ تُضبط المسارات المطلقة ضمن الإعداد > الإعدادات > HPC Scheduler. بالنسبة إلى `slurmrestd`، يجب أن يبدأ العنوان بـ `https://`، أو بـ `http://` على عنوان استرجاع محلي فقط. تُتحقق شهادات TLS ولا تُتبع عمليات إعادة التوجيه. تقيّد قائمة مضيفي slurmrestd الاختيارية في صفحة الإعدادات نفسها المضيفين والمنافذ التي يجوز للعنقود تحديدها. + +**المُستطلِعات البعيدة.** يجمع هذا الإصدار على مُستطلِع Cacti الرئيسي فقط. لا تُجمع بيانات العنقود المسند إلى جامع بيانات بعيد: يرفض القارئ هناك العملية مع تسجيل السبب وتذكر صفحة الحالة الصحية العنقود. الجمع البعيد مخطط للمرحلة 3. + +**الذاكرة.** تفك كل عملية جمع ترميز رد واحد من المُجدول في كل مرة، ويتطلب ذلك نحو 12 ضعف حجم الرد من ذاكرة PHP (قيس نحو 10 أضعاف لسجلات مهام مماثلة لبنية Slurm، إضافة إلى النص نفسه). ترفع العملية حد ذاكرة PHP إلى إعداد ذاكرة الجمع (1024 MiB افتراضيًا)، وتسمح بردود حتى (ذاكرة الجمع - 64) / 12 MiB، أي 80 MiB افتراضيًا، حتى عند ضبط الحجم الأقصى للرد على قيمة أعلى؛ وتحذّر صفحة الحالة الصحية عند ذلك. يفشل الرد الأكبر قسمه بسبب الحجم، وتُسجّل العملية التي تنفد ذاكرتها رغم ذلك كفاشلة. قد يحتاج العنقود الكبير إلى رفع الإعدادين؛ لم يُقَس أثر 100,000 سجل مهمة حقيقي. + +**ملفات الرموز.** يحدد عنقود `slurmrestd` ملف رمز؛ ولا يُخزّن الرمز نفسه في قاعدة البيانات أو يُعرض في صفحة أو يُكتب في السجل مطلقًا. يجب أن يقع الملف داخل أحد أدلة ملفات الرموز المحددة ضمن الإعداد > الإعدادات > HPC Scheduler، وأن يُوصل إليه دون رابط رمزي، وأن يكون ملفًا عاديًا يملكه مستخدم المُستطلِع ولا يكتب إليه إلا ذلك المستخدم. يحتوي على سطر واحد: الرمز، أو `SLURM_JWT=` كما يطبعه `scontrol token`. عند عدم تحديد أدلة الرموز، لا يستطيع أي عنقود استخدام `slurmrestd`. يقع هذان الإعدادان في صفحة إعدادات Cacti، فلا يكفي نطاق Admin الخاص بالإضافة لتغييرهما؛ اجعل الكتابة إلى كل دليل مقتصرة على root ومستخدم المُستطلِع. يظل الملف الذي تقرؤه المجموعة أو المستخدمون الآخرون مستخدمًا، مع تحذير في صفحة الحالة الصحية. تحذّر الصفحة أيضًا عندما تنتهي صلاحية الرمز خلال وقت التحذير المحدد. + +لتدوير الرمز دون فترة يرى فيها القارئ ملفًا جزئيًا، اكتب الرمز الجديد بجانب القديم ثم أعد تسميته ليحل محله: + +```sh +dir=/etc/cacti/hpcsched +tmp=$(mktemp "$dir/.token.XXXXXX") +scontrol token username=cactiread lifespan=2592000 > "$tmp" +chown cacti:cacti "$tmp" +chmod 0600 "$tmp" +mv -f "$tmp" "$dir/cluster1.token" +``` + +تقرأ عملية الجمع التالية الملف الجديد. يتطلب توليد الرموز باستخدام `scontrol token` مسؤول Slurm؛ شغّله حيث يُسمح بذلك وانسخ الملف إلى المُستطلِع. + + +## ملاحظات المشغّل للمعلم 3 + +**القوالب.** يستورد التثبيت والترقية قوالب أجهزة وبيانات ورسوم HPC Scheduler وينسخان استعلام بيانات الأقسام إلى دليل `resource/script_server/` في Cacti. إذا تعذّرت الكتابة إلى الدليل على المستخدم الذي يثبّت الإضافة، أو وُجد ملف مختلف بالاسم نفسه لم تكتبه الإضافة، أو كان الاسم رابطًا رمزيًا، يتوقف الاستيراد ويُترك الملف دون تغيير وتوضح صفحة الحالة الصحية ما يجب فعله؛ يعيد خيار تثبيت القوالب فيها المحاولة. تُستخدم النسخة المطابقة المنسوخة يدويًا لكنها تظل ملكك. لا يزيل إلغاء التثبيت ملف الاستعلام إلا إذا كتبته الإضافة ولم يتغير، ويحتفظ بالقوالب والأجهزة والرسوم. + +**أجهزة العناقيد.** يعرض عناقيد HPC > الجهاز ما سيضيفه الجهاز (رسومًا ومصادر بيانات وملفات RRD واستدعاءات خادم البرامج النصية لكل استطلاع) قبل إنشاء أي شيء. ينشئ خيار إنشاء جهاز جهازًا باسم مضيف في النطاق المحجوز `.invalid` ودون فحص توافر؛ أما ربط جهاز فيضيف الرسوم إلى جهاز موجود ويترك إعداداته كما هي. لكل رسم عنقود ولكل رسم قسم مصدر بيانات مستقل: ستة للعنقود وخمسة لكل قسم، مع استدعاء خادم برامج نصية لكل مصدر بيانات عنقود وآخر لكل قيمة قسم (32) في كل استطلاع. تُفهرس الأقسام المضافة لاحقًا عندما يراها القارئ، وتُنشأ رسومها من صفحة الرسوم الجديدة في Cacti؛ يتوقف استطلاع القسم المحذوف وتُحفظ رسومه. يؤدي حذف الجهاز إلى فك ربط العنقود مع الاحتفاظ به. + +**ما تحسبه الرسوم.** تستثني المهام المنتظرة المهام المعلّقة، فلها سلسلة مستقلة. تحسب المصفوفة المنتظرة مهامها المتبقية. تُحسب المهمة أو العقدة الموجودة في عدة أقسام مرة في رسوم العنقود ومرة في كل قسم، لذلك لا يلزم أن يساوي مجموع رسوم الأقسام رسوم العنقود. تُجمع أسباب الانتظار في إحدى عشرة فئة ([ADR 0011](../../decisions/0011-pending-reason-families-and-counting.md))؛ يسرد عرض الأسباب الأسباب الخام، بما فيها فئة أخرى. لا تبلغ كل مهمة إلا عن آخر سبب فحصه المُجدول. يشمل مقام الاستخدام العقد المفرّغة والمتوقفة وغير المتاحة الأخرى. البيانات المتقادمة أو الفاشلة هي `U`، وليست صفرًا مطلقًا؛ ويظل `age` رقميًا. + +**التنبيهات.** يستطيع Thold التنبيه على أي مصدر من هذه المصادر؛ اضبط المدد على فاصل جمع واحد على الأقل، ونبّه على `age` لاكتشاف قارئ متوقف. اختبار Thold الشامل ضمن المعلم 4. + +**اختبار خرج Slurm الحقيقي.** يبدأ CI عنقود Slurm من ست عقد في حاويات (26.05.5 عند كل تغيير، و25.11.8 مبنيًا من المصدر عند الدفع إلى `main` وأسبوعيًا وعند الطلب)، ويفحص حالات العقد وحجز الصيانة وأسباب الانتظار والمصفوفات كما تحللها الإضافة، ثم يجمع من العنقود بوسيلتي الأوامر و`slurmrestd` الخاصتين بالإضافة. لا تغطي الإصدارات الأقدم إلا بيانات اختبار اصطناعية. لم يعمل القارئ بعد على عنقود إنتاجي. + +**الأذونات.** لا يُعرض العنقود المرتبط بجهاز أو يُصدّر أو يُغيّر إلا للمستخدمين الذين يسمح لهم Cacti بذلك الجهاز، في كل صفحة إضافة؛ ويتطلب ربط جهاز إذنًا للجهاز الهدف أيضًا. يظهر العنقود الذي ليس له جهاز لكل من يملك نطاق الإضافة. إذا بقي عنقود مرتبطًا بجهاز حُذف أثناء تعطيل الإضافة، فلا يظهر إلا لمن يملك HPC Scheduler Admin، ويمكنهم إنشاء جهاز له أو ربطه بآخر. وصول الرسوم هو وصول Cacti نفسه. + + +## الدافع + +يرسم المشغّلون الذين يستخدمون Cacti عقد الحوسبة لديهم بالفعل. يفتقدون منظور المُجدول في تلك الرسوم، فتظل فجوتان: + +- **لا تفسير لعدم بدء العمل.** يسجل Slurm سببًا لكل مهمة منتظرة. الطابور الممتلئ بجانب رسوم عقد خاملة لا يبين ما إذا كان السبب أولوية أو حدود موارد أو تعليقًا أو اعتمادًا أو عقدًا مفرّغة. +- **لا صلة بين حالة المُجدول والتنبيهات.** ينبه Thold على جهاز فرّغه المسؤول بالفعل، وينشئ المسؤولون جداول Maint يدويًا. + +تجمع الإضافة لقطة مؤقتة واحدة لكل عنقود، وتنشرها كمصادر بيانات ورسوم Cacti عادية، وتربط عقد المُجدول بأجهزة Cacti الموجودة، ويمكنها إدراج العقد المفرّغة وحجوزات الصيانة في Maint. تعيد استخدام أذونات Cacti وجامعاته البعيدة وThold وMaint، وتتصل بالمُجدول للقراءة فقط. + + +## النطاق المخطط + +| المرحلة | النطاق | المعالم | +|---|---|---| +| 0، البحث | مصفوفة إصدارات Slurm، تأكيد السلوك الأصلي، حمل المتحكم، بيانات اختبار أسماء العقد | [M1](https://github.com/somethingwithproof/plugin_hpcsched/milestone/1) | +| 1، رسوم العناقيد | عمق الطابور، المهام المنتظرة والجارية، أسباب الانتظار، حالات العقد، استخدام الأقسام، تنبيهات Thold، صفحة الحالة الصحية، الإصدار | [M2](https://github.com/somethingwithproof/plugin_hpcsched/milestone/2)، [M3](https://github.com/somethingwithproof/plugin_hpcsched/milestone/3)، [M4](https://github.com/somethingwithproof/plugin_hpcsched/milestone/4) | +| 2، العقد والصيانة | ربط العقد بالأجهزة، حالة كل عقدة، نوافذ Maint تلقائية للعقد المفرّغة وحجوزات الصيانة | [M5](https://github.com/somethingwithproof/plugin_hpcsched/milestone/5) | +| 3، المحاسبة | استخدام الحصة العادلة، إحصاءات محاسبية محدودة، جامعات بيانات بعيدة | [M6](https://github.com/somethingwithproof/plugin_hpcsched/milestone/6) | + +خارج النطاق: أي كتابة إلى المُجدول (submit أو cancel أو hold أو drain أو resume)، ومحرك تنبيهات خاص بالإضافة، ومحرك تقارير أو تحميل تكاليف، وسلاسل لكل مستخدم ولكل مهمة. واجهات PBS Pro وOpenPBS وLSF قيد البحث. + + +## أهداف التوافق + +| المكوّن | الهدف | +|---|---| +| Cacti | 1.2.31 أو أحدث، دون ترقيعات للنواة | +| PHP | 8.2 أو أحدث؛ يظل `setup.php` قابلًا للتحليل على 8.0 لرفض وقت التشغيل غير المدعوم بدل تعطيل واجهة Cacti | +| Slurm | 25.05 و25.11 و26.05، أحدث ثلاثة إصدارات ([ADR 0013](../../decisions/0013-three-latest-slurm-releases.md))؛ يُختبر 25.11 و26.05 على عنقود يعمل، و25.05 ببيانات اختبار فقط. أوامر العميل هي النقل الافتراضي ([ADR 0012](../../decisions/0012-client-commands-default-transport.md)) وتستخدم إعداد محلّل البيانات: v0.0.43 افتراضيًا، الذي تزيله SchedMD في 27.05، أو v0.0.44 أو v0.0.45 في الإصدارات التي تتضمنها. تكتشف عناقيد slurmrestd أحدث محلّل توفره الخدمة | +| Thold وMaint | لا تغيير في Thold؛ تكامل Maint اقتراح يحتاج إلى موافقة القائمين على Maint | + + +## التصميم + +- [docs/PLAN.md](../../PLAN.md) هو الخطة الكاملة: البنية والحقائق الأصلية التي تعتمد عليها (مع المصادر وقائمة صريحة بالافتراضات غير المؤكدة)، وربط العقد، ونموذج الحالة، وحدود الأمان، وحسابات الأداء، والاختبارات والمخاطر. +- يحتوي [docs/decisions/](../../decisions) على سجلات قرارات البنية. +- يربط [docs/REQUIREMENTS.md](../../REQUIREMENTS.md) كل معرّف متطلب بمشكلته. + +```mermaid +flowchart LR + S[Slurm controller] -->|read-only calls, one set per cycle| R[Reader on the assigned Cacti poller] + R --> SNAP[(Snapshot tables)] + SNAP --> SS[Script server inputs] + SS -->|poller_output| T[Thold and Maint] + SS --> G[Cacti graphs and permissions] + SNAP --> MAP[Node to device mapping] + MAP -->|owned, expiring schedules| T +``` + + +## تتبّع العمل + +- تتبع **المعالم** معالم الخطة. لكل منها مشكلة ملحمية تسرد مشكلاتها الفرعية وأدلة اكتمالها. +- تُصنَّف **المشكلات** بالوسوم `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/10) كل المشكلات عبر المعالم. + + +## المساهمة + +اقرأ [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..779fe46 --- /dev/null +++ b/docs/i18n/es-419/README.md @@ -0,0 +1,139 @@ + + + +[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_hpcsched + +Un complemento para Cacti 1.2 que representa el estado de un planificador de trabajos por lotes HPC junto a los dispositivos que Cacti ya supervisa: profundidad de las colas, trabajos pendientes y en ejecución, motivos de espera, estados de nodos y utilización de particiones. Slurm es el primer motor. Thold alerta sobre las fuentes de datos resultantes, y Maint puede actuar según los nodos drenados y las reservas de mantenimiento. + +> **Estado: en desarrollo, todavía sin publicación.** El hito 2 (base) está integrado en `main`, y esta rama añade el hito 3 (gráficos de clústeres y motivos de espera). El código instala, actualiza y desinstala mediante la API de complementos de Cacti y rechaza PHP anterior a 8.2. Mantiene un registro de clústeres Slurm, cada uno asignado a un sondeador Cacti. Un lector en segundo plano en el sondeador principal recopila una instantánea por clúster e intervalo, ejecutando `squeue`, `scontrol` y `sshare` con `--json` o leyendo `slurmrestd` mediante HTTPS, y almacena recuentos de trabajos por estado y motivo de espera, estados de nodos, particiones, reservas y uso de reparto equitativo con su vigencia. El complemento incluye plantillas Cacti y, tras la confirmación de un administrador, crea o asocia un dispositivo Cacti por clúster con gráficos de trabajos por estado, trabajos pendientes por familia de motivos, nodos por estado, CPU y utilización, para el clúster y para cada partición, además de la antigüedad de la instantánea. Un resumen de solo lectura muestra recuentos por clúster con su vigencia y una vista de motivos de espera por clúster; una página de estado exclusiva para administradores muestra qué devolvió cada recopilación y si están instaladas las plantillas. Todas las páginas y acciones respetan los permisos de dispositivos de Cacti. Thold puede alertar sobre estas fuentes de datos, pero aún no se ha probado ninguna integración con Thold o Maint; eso corresponde al hito 4 y posteriores. La suite de pruebas cubre comandos Slurm y respuestas `slurmrestd` sintéticos; CI también prueba un clúster Slurm real de seis nodos en contenedores, como se describe abajo. El lector no se ha ejecutado contra un clúster de producción. Después de las notas para operadores, este README describe el diseño, no el comportamiento publicado. + +Este proyecto es independiente y no está afiliado al proyecto Cacti. + + +## Roles de acceso + +| Permiso | Acceso | +| --- | --- | +| HPC Scheduler View | Páginas de supervisión existentes. | +| HPC Scheduler Operator | Supervisión, página de operaciones y acuses personales de investigación. | +| HPC Scheduler 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 HPC Scheduler 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. + + +## Notas para operadores del hito 2 + +**Privilegios mínimos.** El complemento solo lee. Asígnele un usuario Slurm dedicado sin rol de administrador ni operador (`AdminLevel=None` en `sacctmgr`). Con `PrivateData=jobs` (o `nodes`, `reservations`, `usage`) en `slurm.conf`, ese usuario solo ve sus propios registros, por lo que los recuentos son incompletos y el complemento no puede detectarlo. Levantar esa restricción requiere nivel de operador o administrador, que también permite cambios; cada instalación debe decidir ese equilibrio. Para los comandos cliente, el usuario del sondeador Cacti necesita los binarios Slurm y un `slurm.conf` que llegue al controlador; las rutas absolutas de los binarios se configuran en Configuración > Ajustes > HPC Scheduler. Para `slurmrestd`, la URL debe ser `https://`, o `http://` únicamente en una dirección de bucle local. Se verifican los certificados TLS y no se siguen redirecciones. Una lista opcional de hosts slurmrestd en Configuración > Ajustes > HPC Scheduler limita los hosts y puertos que puede indicar un clúster. + +**Sondeadores remotos.** Esta versión solo recopila en el sondeador principal de Cacti. No se recopila un clúster asignado a un recolector remoto: el lector de ese recolector rechaza la operación, registra el motivo y la página de estado identifica el clúster. La recopilación remota corresponde a la fase 3. + +**Memoria.** Cada ejecución decodifica una respuesta del planificador a la vez; necesita unas 12 veces su tamaño en memoria PHP (se midieron unas 10 veces para registros de trabajos similares a los de Slurm, más el propio texto). La ejecución eleva el límite de memoria PHP al ajuste Memoria de recopilación (1024 MiB de forma predeterminada) y admite respuestas de hasta (Memoria de recopilación - 64) / 12 MiB, 80 MiB de forma predeterminada, aunque Tamaño máximo de respuesta sea mayor; la página de estado avisa en ese caso. Una respuesta mayor hace fallar su sección por tamaño excesivo, y una ejecución que aun así agota la memoria se registra como fallida. Un clúster grande puede necesitar aumentar ambos ajustes; no se han medido 100.000 registros reales de trabajos. + +**Archivos de tokens.** Un clúster `slurmrestd` indica un archivo de token; el token nunca se almacena en la base de datos, se muestra en una página ni se escribe en el registro. El archivo debe estar dentro de uno de los directorios configurados en Configuración > Ajustes > HPC Scheduler, ser accesible sin enlaces simbólicos y ser un archivo normal propiedad del usuario del sondeador, que debe ser el único que pueda escribirlo. Debe contener una sola línea: el token, o `SLURM_JWT=` como lo imprime `scontrol token`. Sin directorios configurados, ningún clúster puede usar `slurmrestd`. Estos dos ajustes están en la página Ajustes de Cacti, por lo que el permiso Admin del complemento por sí solo no permite modificarlos; mantenga cada directorio escribible únicamente por root y por el usuario del sondeador. Se sigue usando un archivo legible por el grupo u otros usuarios, pero la página de estado lo advierte. También avisa cuando el token caduca dentro del plazo configurado. + +Para rotar un token sin que el lector pueda ver un archivo parcial, escriba el nuevo junto al anterior y renómbrelo para sustituirlo: + +```sh +dir=/etc/cacti/hpcsched +tmp=$(mktemp "$dir/.token.XXXXXX") +scontrol token username=cactiread lifespan=2592000 > "$tmp" +chown cacti:cacti "$tmp" +chmod 0600 "$tmp" +mv -f "$tmp" "$dir/cluster1.token" +``` + +La siguiente recopilación lee el archivo nuevo. Generar tokens con `scontrol token` requiere un administrador de Slurm; ejecútelo donde esté permitido y copie el archivo al sondeador. + + +## Notas para operadores del hito 3 + +**Plantillas.** La instalación y la actualización importan las plantillas de dispositivos, datos y gráficos de HPC Scheduler y copian la consulta de particiones al directorio `resource/script_server/` de Cacti. Si el usuario que instala no puede escribir en ese directorio, ya existe un archivo distinto del mismo nombre no creado por el complemento, o el nombre es un enlace simbólico, la importación se detiene, no se toca el archivo y la página de estado indica qué hacer; Instalar plantillas permite reintentar. Una copia idéntica creada manualmente se utiliza, pero sigue siendo suya. La desinstalación solo elimina el archivo de consulta si lo escribió el complemento y no cambió, y conserva las plantillas, los dispositivos y los gráficos. + +**Dispositivos de clústeres.** Clústeres HPC > Dispositivo muestra qué añadirá un dispositivo (gráficos, fuentes de datos, archivos RRD y llamadas al servidor de scripts por sondeo) antes de crear nada. Crear dispositivo usa un nombre de host del dominio reservado `.invalid` y desactiva las comprobaciones de disponibilidad; Asociar dispositivo añade los gráficos a uno existente y mantiene sus ajustes. Cada gráfico de clúster y cada gráfico de partición tiene su propia fuente de datos: seis por clúster y cinco por partición, con una llamada al servidor de scripts por fuente de clúster y una por valor de partición (32) en cada sondeo. Las particiones añadidas después se indexan cuando las ve el lector y reciben gráficos desde Nuevos gráficos; una partición eliminada deja de sondearse y conserva sus gráficos. Eliminar el dispositivo desvincula el clúster y lo conserva. + +**Qué cuentan los gráficos.** Pendientes excluye los trabajos retenidos, que tienen su propia serie. Una matriz pendiente cuenta sus tareas restantes. Un trabajo o nodo en varias particiones cuenta una vez en los gráficos del clúster y una vez en cada partición, por lo que la suma de los gráficos de particiones no tiene por qué coincidir con la del clúster. Los motivos de espera se agrupan en once familias ([ADR 0011](../../decisions/0011-pending-reason-families-and-counting.md)); la vista de motivos muestra los motivos originales, incluidos los de Otros. Cada trabajo informa solo del último motivo que examinó el planificador. El denominador de utilización incluye nodos drenados, caídos y otros no disponibles. Los datos obsoletos o fallidos son `U`, nunca cero; `age` sigue siendo numérico. + +**Alertas.** Thold puede alertar sobre cualquiera de estas fuentes; establezca duraciones de al menos un intervalo de recopilación y una alerta sobre `age` para detectar un lector detenido. La comprobación integral de Thold corresponde al hito 4. + +**Pruebas con salida real de Slurm.** CI inicia un clúster Slurm de seis nodos en contenedores (26.05.5 en cada cambio, 25.11.8 compilado desde el código fuente en envíos a `main`, semanalmente y bajo petición), comprueba los estados de nodos, la reserva de mantenimiento, los motivos de espera y las matrices tal como los interpreta el complemento, y después recopila desde ese clúster con los transportes propios de comandos y `slurmrestd`. Las versiones anteriores solo están cubiertas por datos sintéticos. El lector todavía no se ha ejecutado contra un clúster de producción. + +**Permisos.** En todas las páginas del complemento, un clúster asociado a un dispositivo solo se muestra, exporta y modifica para usuarios autorizados para ese dispositivo por Cacti; asociar un dispositivo también requiere permiso para el dispositivo destino. Un clúster sin dispositivo es visible para todos los usuarios con el permiso del complemento. Un clúster que sigue asociado a un dispositivo eliminado mientras el complemento estaba deshabilitado solo se muestra a quienes tienen HPC Scheduler Admin, que pueden crearle o asociarle un dispositivo. El acceso a los gráficos es el propio de Cacti. + + +## Motivo + +Los operadores que utilizan Cacti ya representan sus nodos de cálculo. La vista del planificador falta en esos gráficos, dejando dos carencias: + +- **No explica por qué no empieza el trabajo.** Slurm registra un motivo para cada trabajo pendiente. Una cola llena junto a gráficos de nodos inactivos no dice si la causa es la prioridad, límites de recursos, retenciones, dependencias o nodos drenados. +- **No conecta el estado del planificador con las alertas.** Thold alerta sobre un dispositivo que un administrador ya ha drenado, y los administradores crean manualmente las programaciones Maint. + +El complemento recopila una instantánea en caché por clúster, la publica como fuentes de datos y gráficos normales de Cacti, asocia nodos del planificador a dispositivos existentes y puede trasladar nodos drenados y reservas de mantenimiento a Maint. Reutiliza los permisos, recolectores remotos, Thold y Maint de Cacti, y solo realiza lecturas en el planificador. + + +## Alcance previsto + +| Fase | Alcance | Hitos | +|---|---|---| +| 0, investigación | Matriz de versiones Slurm, confirmación del comportamiento original, carga del controlador, datos de prueba de nombres de nodos | [M1](https://github.com/somethingwithproof/plugin_hpcsched/milestone/1) | +| 1, gráficos de clúster | Profundidad de colas, trabajos pendientes y en ejecución, motivos de espera, estados de nodos, utilización de particiones, alertas Thold, página de estado, publicación | [M2](https://github.com/somethingwithproof/plugin_hpcsched/milestone/2), [M3](https://github.com/somethingwithproof/plugin_hpcsched/milestone/3), [M4](https://github.com/somethingwithproof/plugin_hpcsched/milestone/4) | +| 2, nodos y mantenimiento | Asociación de nodos a dispositivos, estado por nodo, ventanas Maint automáticas para nodos drenados y reservas de mantenimiento | [M5](https://github.com/somethingwithproof/plugin_hpcsched/milestone/5) | +| 3, contabilidad | Uso de reparto equitativo, estadísticas contables acotadas, recolectores remotos | [M6](https://github.com/somethingwithproof/plugin_hpcsched/milestone/6) | + +Fuera de alcance: cualquier escritura en el planificador (enviar, cancelar, retener, drenar, reanudar), un motor propio de alertas, un motor de informes o imputación de costes, series por usuario y por trabajo. Los motores PBS Pro, OpenPBS y LSF están 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 | +| Slurm | 25.05, 25.11 y 26.05, las tres versiones más recientes ([ADR 0013](../../decisions/0013-three-latest-slurm-releases.md)); 25.11 y 26.05 se prueban con un clúster en ejecución, 25.05 solo con datos de prueba. Los comandos cliente son el transporte predeterminado ([ADR 0012](../../decisions/0012-client-commands-default-transport.md)) y usan el ajuste de analizador: v0.0.43 por defecto, que SchedMD elimina en 27.05, o v0.0.44 o v0.0.45 en las versiones que los incluyen. Los clústeres slurmrestd descubren el analizador más reciente que ofrece el servicio | +| Thold, Maint | Sin cambios en Thold; la integración Maint es una propuesta que necesita el acuerdo de sus responsables | + + +## Diseño + +- [docs/PLAN.md](../../PLAN.md) contiene el plan completo: arquitectura, hechos originales de los que depende (con fuentes y una lista explícita de supuestos no confirmados), asociación de nodos, modelo de estados, límites de seguridad, cálculos de rendimiento, pruebas y riesgos. +- [docs/decisions/](../../decisions) contiene los registros de decisiones de arquitectura. +- [docs/REQUIREMENTS.md](../../REQUIREMENTS.md) relaciona cada identificador de requisito con su incidencia. + +```mermaid +flowchart LR + S[Slurm controller] -->|read-only calls, one set per cycle| R[Reader on the assigned Cacti poller] + R --> SNAP[(Snapshot tables)] + SNAP --> SS[Script server inputs] + SS -->|poller_output| T[Thold and Maint] + SS --> G[Cacti graphs and permissions] + SNAP --> MAP[Node to device mapping] + MAP -->|owned, expiring schedules| T +``` + + +## 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/10) 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..a51d1d1 --- /dev/null +++ b/docs/i18n/es-ES/README.md @@ -0,0 +1,139 @@ + + + +[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_hpcsched + +Un complemento para Cacti 1.2 que representa el estado de un planificador de trabajos por lotes HPC junto a los dispositivos que Cacti ya supervisa: profundidad de las colas, trabajos pendientes y en ejecución, motivos de espera, estados de nodos y utilización de particiones. Slurm es el primer motor. Thold alerta sobre las fuentes de datos resultantes, y Maint puede actuar según los nodos drenados y las reservas de mantenimiento. + +> **Estado: en desarrollo, todavía sin publicación.** El hito 2 (base) está integrado en `main`, y esta rama añade el hito 3 (gráficos de clústeres y motivos de espera). El código instala, actualiza y desinstala mediante la API de complementos de Cacti y rechaza PHP anterior a 8.2. Mantiene un registro de clústeres Slurm, cada uno asignado a un sondeador Cacti. Un lector en segundo plano en el sondeador principal recopila una instantánea por clúster e intervalo, ejecutando `squeue`, `scontrol` y `sshare` con `--json` o leyendo `slurmrestd` mediante HTTPS, y almacena recuentos de trabajos por estado y motivo de espera, estados de nodos, particiones, reservas y uso de reparto equitativo con su vigencia. El complemento incluye plantillas Cacti y, tras la confirmación de un administrador, crea o asocia un dispositivo Cacti por clúster con gráficos de trabajos por estado, trabajos pendientes por familia de motivos, nodos por estado, CPU y utilización, para el clúster y para cada partición, además de la antigüedad de la instantánea. Un resumen de solo lectura muestra recuentos por clúster con su vigencia y una vista de motivos de espera por clúster; una página de estado exclusiva para administradores muestra qué devolvió cada recopilación y si están instaladas las plantillas. Todas las páginas y acciones respetan los permisos de dispositivos de Cacti. Thold puede alertar sobre estas fuentes de datos, pero aún no se ha probado ninguna integración con Thold o Maint; eso corresponde al hito 4 y posteriores. La suite de pruebas cubre comandos Slurm y respuestas `slurmrestd` sintéticos; CI también prueba un clúster Slurm real de seis nodos en contenedores, como se describe abajo. El lector no se ha ejecutado contra un clúster de producción. Después de las notas para operadores, este README describe el diseño, no el comportamiento publicado. + +Este proyecto es independiente y no está afiliado al proyecto Cacti. + + +## Roles de acceso + +| Permiso | Acceso | +| --- | --- | +| HPC Scheduler View | Páginas de supervisión existentes. | +| HPC Scheduler Operator | Supervisión, página de operaciones y acuses personales de investigación. | +| HPC Scheduler 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 HPC Scheduler 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. + + +## Notas para operadores del hito 2 + +**Privilegios mínimos.** El complemento solo lee. Asígnele un usuario Slurm dedicado sin rol de administrador ni operador (`AdminLevel=None` en `sacctmgr`). Con `PrivateData=jobs` (o `nodes`, `reservations`, `usage`) en `slurm.conf`, ese usuario solo ve sus propios registros, por lo que los recuentos son incompletos y el complemento no puede detectarlo. Levantar esa restricción requiere nivel de operador o administrador, que también permite cambios; cada instalación debe decidir ese equilibrio. Para los comandos cliente, el usuario del sondeador Cacti necesita los binarios Slurm y un `slurm.conf` que llegue al controlador; las rutas absolutas de los binarios se configuran en Configuración > Ajustes > HPC Scheduler. Para `slurmrestd`, la URL debe ser `https://`, o `http://` únicamente en una dirección de bucle local. Se verifican los certificados TLS y no se siguen redirecciones. Una lista opcional de hosts slurmrestd en Configuración > Ajustes > HPC Scheduler limita los hosts y puertos que puede indicar un clúster. + +**Sondeadores remotos.** Esta versión solo recopila en el sondeador principal de Cacti. No se recopila un clúster asignado a un recolector remoto: el lector de ese recolector rechaza la operación, registra el motivo y la página de estado identifica el clúster. La recopilación remota corresponde a la fase 3. + +**Memoria.** Cada ejecución decodifica una respuesta del planificador a la vez; necesita unas 12 veces su tamaño en memoria PHP (se midieron unas 10 veces para registros de trabajos similares a los de Slurm, más el propio texto). La ejecución eleva el límite de memoria PHP al ajuste Memoria de recopilación (1024 MiB de forma predeterminada) y admite respuestas de hasta (Memoria de recopilación - 64) / 12 MiB, 80 MiB de forma predeterminada, aunque Tamaño máximo de respuesta sea mayor; la página de estado avisa en ese caso. Una respuesta mayor hace fallar su sección por tamaño excesivo, y una ejecución que aun así agota la memoria se registra como fallida. Un clúster grande puede necesitar aumentar ambos ajustes; no se han medido 100.000 registros reales de trabajos. + +**Archivos de tokens.** Un clúster `slurmrestd` indica un archivo de token; el token nunca se almacena en la base de datos, se muestra en una página ni se escribe en el registro. El archivo debe estar dentro de uno de los directorios configurados en Configuración > Ajustes > HPC Scheduler, ser accesible sin enlaces simbólicos y ser un archivo normal propiedad del usuario del sondeador, que debe ser el único que pueda escribirlo. Debe contener una sola línea: el token, o `SLURM_JWT=` como lo imprime `scontrol token`. Sin directorios configurados, ningún clúster puede usar `slurmrestd`. Estos dos ajustes están en la página Ajustes de Cacti, por lo que el permiso Admin del complemento por sí solo no permite modificarlos; mantenga cada directorio escribible únicamente por root y por el usuario del sondeador. Se sigue usando un archivo legible por el grupo u otros usuarios, pero la página de estado lo advierte. También avisa cuando el token caduca dentro del plazo configurado. + +Para rotar un token sin que el lector pueda ver un archivo parcial, escriba el nuevo junto al anterior y renómbrelo para sustituirlo: + +```sh +dir=/etc/cacti/hpcsched +tmp=$(mktemp "$dir/.token.XXXXXX") +scontrol token username=cactiread lifespan=2592000 > "$tmp" +chown cacti:cacti "$tmp" +chmod 0600 "$tmp" +mv -f "$tmp" "$dir/cluster1.token" +``` + +La siguiente recopilación lee el archivo nuevo. Generar tokens con `scontrol token` requiere un administrador de Slurm; ejecútelo donde esté permitido y copie el archivo al sondeador. + + +## Notas para operadores del hito 3 + +**Plantillas.** La instalación y la actualización importan las plantillas de dispositivos, datos y gráficos de HPC Scheduler y copian la consulta de particiones al directorio `resource/script_server/` de Cacti. Si el usuario que instala no puede escribir en ese directorio, ya existe un archivo distinto del mismo nombre no creado por el complemento, o el nombre es un enlace simbólico, la importación se detiene, no se toca el archivo y la página de estado indica qué hacer; Instalar plantillas permite reintentar. Una copia idéntica creada manualmente se utiliza, pero sigue siendo suya. La desinstalación solo elimina el archivo de consulta si lo escribió el complemento y no cambió, y conserva las plantillas, los dispositivos y los gráficos. + +**Dispositivos de clústeres.** Clústeres HPC > Dispositivo muestra qué añadirá un dispositivo (gráficos, fuentes de datos, archivos RRD y llamadas al servidor de scripts por sondeo) antes de crear nada. Crear dispositivo usa un nombre de host del dominio reservado `.invalid` y desactiva las comprobaciones de disponibilidad; Asociar dispositivo añade los gráficos a uno existente y mantiene sus ajustes. Cada gráfico de clúster y cada gráfico de partición tiene su propia fuente de datos: seis por clúster y cinco por partición, con una llamada al servidor de scripts por fuente de clúster y una por valor de partición (32) en cada sondeo. Las particiones añadidas después se indexan cuando las ve el lector y reciben gráficos desde Nuevos gráficos; una partición eliminada deja de sondearse y conserva sus gráficos. Eliminar el dispositivo desvincula el clúster y lo conserva. + +**Qué cuentan los gráficos.** Pendientes excluye los trabajos retenidos, que tienen su propia serie. Una matriz pendiente cuenta sus tareas restantes. Un trabajo o nodo en varias particiones cuenta una vez en los gráficos del clúster y una vez en cada partición, por lo que la suma de los gráficos de particiones no tiene por qué coincidir con la del clúster. Los motivos de espera se agrupan en once familias ([ADR 0011](../../decisions/0011-pending-reason-families-and-counting.md)); la vista de motivos muestra los motivos originales, incluidos los de Otros. Cada trabajo informa solo del último motivo que examinó el planificador. El denominador de utilización incluye nodos drenados, caídos y otros no disponibles. Los datos obsoletos o fallidos son `U`, nunca cero; `age` sigue siendo numérico. + +**Alertas.** Thold puede alertar sobre cualquiera de estas fuentes; establezca duraciones de al menos un intervalo de recopilación y una alerta sobre `age` para detectar un lector detenido. La comprobación integral de Thold corresponde al hito 4. + +**Pruebas con salida real de Slurm.** CI inicia un clúster Slurm de seis nodos en contenedores (26.05.5 en cada cambio, 25.11.8 compilado desde el código fuente en envíos a `main`, semanalmente y bajo petición), comprueba los estados de nodos, la reserva de mantenimiento, los motivos de espera y las matrices tal como los interpreta el complemento, y después recopila desde ese clúster con los transportes propios de comandos y `slurmrestd`. Las versiones anteriores solo están cubiertas por datos sintéticos. El lector todavía no se ha ejecutado contra un clúster de producción. + +**Permisos.** En todas las páginas del complemento, un clúster asociado a un dispositivo solo se muestra, exporta y modifica para usuarios autorizados para ese dispositivo por Cacti; asociar un dispositivo también requiere permiso para el dispositivo destino. Un clúster sin dispositivo es visible para todos los usuarios con el permiso del complemento. Un clúster que sigue asociado a un dispositivo eliminado mientras el complemento estaba deshabilitado solo se muestra a quienes tienen HPC Scheduler Admin, que pueden crearle o asociarle un dispositivo. El acceso a los gráficos es el propio de Cacti. + + +## Motivo + +Los operadores que utilizan Cacti ya representan sus nodos de cálculo. La vista del planificador falta en esos gráficos, dejando dos carencias: + +- **No explica por qué no empieza el trabajo.** Slurm registra un motivo para cada trabajo pendiente. Una cola llena junto a gráficos de nodos inactivos no dice si la causa es la prioridad, límites de recursos, retenciones, dependencias o nodos drenados. +- **No conecta el estado del planificador con las alertas.** Thold alerta sobre un dispositivo que un administrador ya ha drenado, y los administradores crean manualmente las programaciones Maint. + +El complemento recopila una instantánea en caché por clúster, la publica como fuentes de datos y gráficos normales de Cacti, asocia nodos del planificador a dispositivos existentes y puede trasladar nodos drenados y reservas de mantenimiento a Maint. Reutiliza los permisos, recolectores remotos, Thold y Maint de Cacti, y solo realiza lecturas en el planificador. + + +## Alcance previsto + +| Fase | Alcance | Hitos | +|---|---|---| +| 0, investigación | Matriz de versiones Slurm, confirmación del comportamiento original, carga del controlador, datos de prueba de nombres de nodos | [M1](https://github.com/somethingwithproof/plugin_hpcsched/milestone/1) | +| 1, gráficos de clúster | Profundidad de colas, trabajos pendientes y en ejecución, motivos de espera, estados de nodos, utilización de particiones, alertas Thold, página de estado, publicación | [M2](https://github.com/somethingwithproof/plugin_hpcsched/milestone/2), [M3](https://github.com/somethingwithproof/plugin_hpcsched/milestone/3), [M4](https://github.com/somethingwithproof/plugin_hpcsched/milestone/4) | +| 2, nodos y mantenimiento | Asociación de nodos a dispositivos, estado por nodo, ventanas Maint automáticas para nodos drenados y reservas de mantenimiento | [M5](https://github.com/somethingwithproof/plugin_hpcsched/milestone/5) | +| 3, contabilidad | Uso de reparto equitativo, estadísticas contables acotadas, recolectores remotos | [M6](https://github.com/somethingwithproof/plugin_hpcsched/milestone/6) | + +Fuera de alcance: cualquier escritura en el planificador (enviar, cancelar, retener, drenar, reanudar), un motor propio de alertas, un motor de informes o imputación de costes, series por usuario y por trabajo. Los motores PBS Pro, OpenPBS y LSF están 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 | +| Slurm | 25.05, 25.11 y 26.05, las tres versiones más recientes ([ADR 0013](../../decisions/0013-three-latest-slurm-releases.md)); 25.11 y 26.05 se prueban con un clúster en ejecución, 25.05 solo con datos de prueba. Los comandos cliente son el transporte predeterminado ([ADR 0012](../../decisions/0012-client-commands-default-transport.md)) y usan el ajuste de analizador: v0.0.43 por defecto, que SchedMD elimina en 27.05, o v0.0.44 o v0.0.45 en las versiones que los incluyen. Los clústeres slurmrestd descubren el analizador más reciente que ofrece el servicio | +| Thold, Maint | Sin cambios en Thold; la integración Maint es una propuesta que necesita el acuerdo de sus responsables | + + +## Diseño + +- [docs/PLAN.md](../../PLAN.md) contiene el plan completo: arquitectura, hechos originales de los que depende (con fuentes y una lista explícita de supuestos no confirmados), asociación de nodos, modelo de estados, límites de seguridad, cálculos de rendimiento, pruebas y riesgos. +- [docs/decisions/](../../decisions) contiene los registros de decisiones de arquitectura. +- [docs/REQUIREMENTS.md](../../REQUIREMENTS.md) relaciona cada identificador de requisito con su incidencia. + +```mermaid +flowchart LR + S[Slurm controller] -->|read-only calls, one set per cycle| R[Reader on the assigned Cacti poller] + R --> SNAP[(Snapshot tables)] + SNAP --> SS[Script server inputs] + SS -->|poller_output| T[Thold and Maint] + SS --> G[Cacti graphs and permissions] + SNAP --> MAP[Node to device mapping] + MAP -->|owned, expiring schedules| T +``` + + +## 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/10) 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..5e52222 --- /dev/null +++ b/docs/i18n/hi-IN/README.md @@ -0,0 +1,139 @@ + + + +[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_hpcsched + +यह Cacti 1.2 प्लगइन HPC बैच शेड्यूलर की स्थिति को Cacti द्वारा पहले से निगरानी किए जा रहे डिवाइस के साथ ग्राफ़ करता है: कतार की गहराई, लंबित बनाम चल रहे जॉब, लंबित होने के कारण, नोड स्थिति और पार्टिशन उपयोग। Slurm पहला बैकएंड है। Thold इन डेटा स्रोतों पर अलर्ट देता है और Maint को ड्रेन किए नोड तथा रखरखाव आरक्षण से चलाया जा सकता है। + +> **स्थिति: विकास में, अभी रिलीज़ नहीं हुई।** माइलस्टोन 2 (आधार) `main` में मर्ज है और यह शाखा माइलस्टोन 3 (क्लस्टर ग्राफ़ और लंबित कारण) जोड़ती है। कोड Cacti प्लगइन API से स्थापित, अपग्रेड और अनइंस्टॉल होता है तथा PHP 8.2 से पुराने संस्करण अस्वीकार करता है। यह Slurm क्लस्टर का रजिस्टर रखता है, जिसमें हर क्लस्टर एक Cacti पोलर को सौंपा है। मुख्य पोलर का बैकग्राउंड रीडर हर अंतराल में प्रति क्लस्टर एक स्नैपशॉट लेता है: `squeue`, `scontrol` और `sshare` को `--json` के साथ चलाकर या HTTPS पर `slurmrestd` पढ़कर। यह स्थिति और लंबित कारण के अनुसार जॉब गिनती, नोड स्थिति, पार्टिशन, आरक्षण और फेयर-शेयर उपयोग उनकी ताज़गी सहित रखता है। प्लगइन Cacti टेम्पलेट देता है और व्यवस्थापक की पुष्टि पर प्रति क्लस्टर एक Cacti डिवाइस बनाता या मैप करता है, जिसमें क्लस्टर और हर पार्टिशन के लिए स्थिति अनुसार जॉब, कारण समूह अनुसार लंबित जॉब, स्थिति अनुसार नोड, CPU और उपयोग के ग्राफ़ तथा स्नैपशॉट आयु होती है। केवल-पठन अवलोकन पृष्ठ क्लस्टर गिनती और ताज़गी तथा हर क्लस्टर के लंबित कारण दिखाता है; केवल व्यवस्थापक का स्वास्थ्य पृष्ठ हर संग्रह का परिणाम और टेम्पलेट स्थापना दिखाता है। हर पृष्ठ और कार्रवाई Cacti डिवाइस अनुमतियाँ मानती है। Thold इन डेटा स्रोतों पर अलर्ट दे सकता है, पर Thold या Maint एकीकरण अभी परखा नहीं गया; वह माइलस्टोन 4 और बाद का काम है। परीक्षण सूट सिंथेटिक Slurm कमांड और `slurmrestd` प्रतिक्रियाएँ जाँचता है; CI नीचे बताए अनुसार कंटेनरों में वास्तविक छह-नोड Slurm क्लस्टर भी चलाकर परखता है। रीडर किसी उत्पादन क्लस्टर पर नहीं चला है। ऑपरेटर टिप्पणियों के बाद यह README डिज़ाइन बताता है, जारी किया गया व्यवहार नहीं। + +यह स्वतंत्र परियोजना है और Cacti परियोजना से संबद्ध नहीं है। + + +## पहुँच भूमिकाएँ + +| अनुमति क्षेत्र | पहुँच | +| --- | --- | +| HPC Scheduler View | मौजूदा निगरानी पृष्ठ। | +| HPC Scheduler Operator | निगरानी के साथ संचालन पृष्ठ और व्यक्तिगत जाँच पुष्टि। | +| HPC Scheduler Admin | ऑपरेटर पहुँच के साथ मौजूदा कॉन्फ़िगरेशन और प्रशासनिक कार्रवाइयाँ। | + +अपग्रेड फ़ाइलें कॉपी करने के बाद नया अनुमति क्षेत्र दर्ज करने के लिए व्यवस्थापक के रूप में प्लगइन पृष्ठ खोलें। **कॉन्फ़िगरेशन > उपयोगकर्ता** या उपयोगकर्ता समूहों में Operator अनुमति स्पष्ट रूप से दें। अपग्रेड मौजूदा View और Admin क्षेत्र के ID और अनुदान सुरक्षित रखते हैं। हर अनुरोध में Admin को Operator और Operator को View पहुँच विरासत में मिलती है; इससे उपयोगकर्ता या समूह में संग्रहीत अनुदान नहीं जुड़ते। प्लगइन सेटिंग के लिए Cacti की Settings अनुमति के अतिरिक्त HPC Scheduler Admin भी आवश्यक है। + +Cacti डिवाइस अनुमतियाँ अब भी हर उपयोगकर्ता के लिए उपलब्ध पंक्तियाँ और कार्रवाइयाँ सीमित करती हैं; अनमैप ऑब्जेक्ट के लिए व्यवस्थापक चाहिए। क्रेडेंशियल, कॉन्फ़िगरेशन, मैपिंग, हटाना और अन्य प्रशासनिक बदलाव प्रशासनिक पृष्ठों में ही रहते हैं। पुष्टि केवल वर्तमान उपयोगकर्ता के सत्र में, अधिकतम एक घंटे तक और उसी अवलोकन के ताज़ा रहने तक रहती है। नए या बदले अवलोकन उसे अमान्य कर देते हैं। यह कभी विफल माप को स्वस्थ नहीं बताती या अलर्ट नहीं दबाती। + + +## माइलस्टोन 2 के लिए ऑपरेटर टिप्पणियाँ + +**न्यूनतम विशेषाधिकार।** प्लगइन केवल पढ़ता है। इसे व्यवस्थापक या ऑपरेटर भूमिका के बिना समर्पित Slurm उपयोगकर्ता दें (`sacctmgr` में `AdminLevel=None`)। `slurm.conf` में `PrivateData=jobs` (या `nodes`, `reservations`, `usage`) होने पर वह उपयोगकर्ता केवल अपने रिकॉर्ड देखता है, इसलिए गिनती अधूरी है और प्लगइन इसका पता नहीं लगा सकता। खाते के लिए यह प्रतिबंध हटाने को ऑपरेटर या व्यवस्थापक स्तर चाहिए, जिससे बदलाव भी संभव होते हैं; यह समझौता साइट को तय करना है। क्लाइंट कमांड के लिए Cacti पोलर उपयोगकर्ता को Slurm क्लाइंट बाइनरी और कंट्रोलर तक पहुँचने वाला `slurm.conf` चाहिए; पूर्ण बाइनरी पथ कॉन्फ़िगरेशन > सेटिंग > HPC Scheduler में हैं। `slurmrestd` का URL `https://` होना चाहिए, या केवल लूपबैक पते पर `http://`। TLS प्रमाणपत्र जाँचे जाते हैं और रीडायरेक्ट का अनुसरण नहीं होता। उसी सेटिंग पृष्ठ की वैकल्पिक slurmrestd होस्ट सूची क्लस्टर द्वारा बताए जा सकने वाले होस्ट और पोर्ट सीमित करती है। + +**दूरस्थ पोलर।** यह रिलीज़ केवल मुख्य Cacti पोलर पर संग्रह करती है। दूरस्थ डेटा कलेक्टर को दिए क्लस्टर का संग्रह नहीं होता: वहाँ रीडर कारण लॉग करके मना करता है और स्वास्थ्य पृष्ठ क्लस्टर बताता है। दूरस्थ संग्रह चरण 3 में है। + +**मेमोरी।** हर संग्रह रन एक समय में शेड्यूलर का एक उत्तर डिकोड करता है, जिसमें उत्तर के आकार की लगभग 12 गुना PHP मेमोरी लगती है (Slurm जैसे जॉब रिकॉर्ड पर लगभग 10 गुना मापा गया, साथ में स्वयं पाठ)। रन PHP मेमोरी सीमा को संग्रह मेमोरी सेटिंग तक बढ़ाता है (डिफ़ॉल्ट 1024 MiB) और अधिकतम (संग्रह मेमोरी - 64) / 12 MiB उत्तर स्वीकार करता है, डिफ़ॉल्ट 80 MiB, भले अधिकतम उत्तर आकार अधिक सेट हो; उस स्थिति में स्वास्थ्य पृष्ठ चेतावनी देता है। बड़ा उत्तर उसके खंड को अधिक आकार के कारण विफल करता है और फिर भी मेमोरी समाप्त होने पर रन विफल दर्ज होता है। बड़े क्लस्टर को दोनों सेटिंग बढ़ानी पड़ सकती हैं; 100,000 वास्तविक जॉब रिकॉर्ड अभी मापे नहीं गए। + +**टोकन फ़ाइलें।** `slurmrestd` क्लस्टर टोकन फ़ाइल का नाम देता है; टोकन स्वयं कभी डेटाबेस में संग्रहीत, पृष्ठ पर प्रदर्शित या लॉग में लिखा नहीं जाता। फ़ाइल कॉन्फ़िगरेशन > सेटिंग > HPC Scheduler में दी टोकन फ़ाइल निर्देशिकाओं में से किसी के भीतर, बिना प्रतीकात्मक लिंक पहुँची नियमित फ़ाइल होनी चाहिए, जिसका स्वामी पोलर उपयोगकर्ता हो और केवल वही लिख सके। उसमें एक पंक्ति हो: टोकन या `scontrol token` द्वारा छापा `SLURM_JWT=`। कोई टोकन निर्देशिका न होने पर कोई क्लस्टर `slurmrestd` उपयोग नहीं कर सकता। ये दोनों सेटिंग Cacti सेटिंग पृष्ठ पर हैं, इसलिए केवल प्लगइन Admin अनुमति से नहीं बदली जा सकतीं; हर निर्देशिका केवल root और पोलर उपयोगकर्ता के लिए लिखने योग्य रखें। समूह या अन्य उपयोगकर्ता द्वारा पठनीय फ़ाइल फिर भी उपयोग होती है, लेकिन स्वास्थ्य पृष्ठ चेतावनी देता है। कॉन्फ़िगर की गई चेतावनी अवधि में टोकन समाप्त होने पर भी वहाँ चेतावनी आती है। + +टोकन बदलते समय रीडर को अधूरी फ़ाइल दिखने से बचाने के लिए नया टोकन पुराने के पास लिखें और नाम बदलकर उसकी जगह रखें: + +```sh +dir=/etc/cacti/hpcsched +tmp=$(mktemp "$dir/.token.XXXXXX") +scontrol token username=cactiread lifespan=2592000 > "$tmp" +chown cacti:cacti "$tmp" +chmod 0600 "$tmp" +mv -f "$tmp" "$dir/cluster1.token" +``` + +अगला संग्रह नई फ़ाइल पढ़ता है। `scontrol token` से टोकन बनाने के लिए Slurm व्यवस्थापक चाहिए; जहाँ अनुमत हो वहाँ चलाएँ और फ़ाइल पोलर पर कॉपी करें। + + +## माइलस्टोन 3 के लिए ऑपरेटर टिप्पणियाँ + +**टेम्पलेट।** स्थापना और अपग्रेड HPC Scheduler डिवाइस, डेटा और ग्राफ़ टेम्पलेट आयात करते हैं और पार्टिशन डेटा क्वेरी Cacti की `resource/script_server/` निर्देशिका में कॉपी करते हैं। इंस्टॉल करने वाला उपयोगकर्ता निर्देशिका लिख न सके, उसी नाम की अलग फ़ाइल पहले से हो जिसे प्लगइन ने न लिखा हो, या नाम प्रतीकात्मक लिंक हो, तो आयात रुकता है, फ़ाइल नहीं बदली जाती और स्वास्थ्य पृष्ठ बताता है कि क्या करें; वहाँ टेम्पलेट स्थापित करें फिर प्रयास करता है। हाथ से बनाई समान प्रति उपयोग होती है पर आपकी ही रहती है। स्थापना रद्द करने पर क्वेरी फ़ाइल तभी हटती है जब प्लगइन ने लिखी हो और बदली न हो; टेम्पलेट, डिवाइस और ग्राफ़ बने रहते हैं। + +**क्लस्टर डिवाइस।** HPC क्लस्टर > डिवाइस कुछ बनाने से पहले बताता है कि डिवाइस क्या जोड़ेगा (ग्राफ़, डेटा स्रोत, RRD फ़ाइलें और हर पोल की स्क्रिप्ट सर्वर कॉल)। डिवाइस बनाएँ आरक्षित `.invalid` डोमेन का होस्ट नाम और बिना उपलब्धता जाँच का डिवाइस बनाता है; डिवाइस मैप करें मौजूदा डिवाइस में ग्राफ़ जोड़ता है और सेटिंग नहीं बदलता। हर क्लस्टर और पार्टिशन ग्राफ़ का अलग डेटा स्रोत है: क्लस्टर के छह और हर पार्टिशन के पाँच; हर पोल में प्रति क्लस्टर डेटा स्रोत एक स्क्रिप्ट सर्वर कॉल और प्रति पार्टिशन मान (32) एक कॉल। बाद में जुड़े पार्टिशन रीडर को दिखते ही इंडेक्स होते हैं और Cacti नए ग्राफ़ पृष्ठ से ग्राफ़ पाते हैं; हटे पार्टिशन का पोल बंद होता है पर ग्राफ़ रहते हैं। डिवाइस हटाने पर क्लस्टर अनमैप होकर बना रहता है। + +**ग्राफ़ क्या गिनते हैं।** लंबित में रोके गए जॉब नहीं हैं; उनकी अलग श्रृंखला है। लंबित ऐरे अपने शेष टास्क गिनता है। कई पार्टिशन वाला जॉब या नोड क्लस्टर ग्राफ़ में एक बार और हर पार्टिशन में एक बार गिना जाता है, इसलिए पार्टिशन ग्राफ़ का योग क्लस्टर से मिलना आवश्यक नहीं। लंबित कारण ग्यारह समूहों में बाँटे जाते हैं ([ADR 0011](../../decisions/0011-pending-reason-families-and-counting.md)); कारण दृश्य मूल कारण दिखाता है, अन्य में रखे कारण भी। हर जॉब केवल शेड्यूलर द्वारा आखिरी जाँचा कारण बताता है। उपयोग के भाजक में ड्रेन, डाउन और अन्य अनुपलब्ध नोड शामिल हैं। पुराना या विफल डेटा `U` है, कभी शून्य नहीं; `age` संख्यात्मक रहता है। + +**अलर्ट।** Thold इनमें से किसी डेटा स्रोत पर अलर्ट दे सकता है; Thold अवधि कम से कम एक संग्रह अंतराल रखें और रुका रीडर पकड़ने के लिए `age` पर अलर्ट दें। शुरू से अंत तक Thold जाँच माइलस्टोन 4 में है। + +**वास्तविक Slurm आउटपुट से परीक्षण।** CI कंटेनर में छह-नोड Slurm क्लस्टर शुरू करता है (हर बदलाव पर 26.05.5; `main` पर पुश, साप्ताहिक और अनुरोध पर स्रोत से बना 25.11.8), और प्लगइन द्वारा पार्स किए नोड स्टेट, रखरखाव आरक्षण, लंबित कारण और ऐरे जाँचता है। फिर प्लगइन के अपने कमांड और `slurmrestd` ट्रांसपोर्ट से उसी क्लस्टर का संग्रह होता है। पुराने रिलीज़ केवल सिंथेटिक फ़िक्स्चर से ढके हैं। रीडर अभी उत्पादन क्लस्टर पर नहीं चला है। + +**अनुमतियाँ।** हर प्लगइन पृष्ठ पर डिवाइस से जुड़ा क्लस्टर केवल उन उपयोगकर्ताओं को दिखाया, निर्यात और बदलने दिया जाता है जिन्हें Cacti उस डिवाइस की अनुमति देता है; मैपिंग के लिए लक्ष्य डिवाइस की अनुमति भी चाहिए। बिना डिवाइस वाला क्लस्टर प्लगइन अनुमति क्षेत्र रखने वाले सभी को दिखता है। प्लगइन अक्षम रहते हटाए गए डिवाइस से अभी भी मैप क्लस्टर केवल HPC Scheduler Admin को दिखता है, जो नया डिवाइस बना या मैप कर सकते हैं। ग्राफ़ पहुँच Cacti की अपनी है। + + +## क्यों + +Cacti चलाने वाले ऑपरेटर अपने कंप्यूट नोड पहले से ग्राफ़ करते हैं। इन ग्राफ़ में शेड्यूलर का दृष्टिकोण नहीं है, जिससे दो कमियाँ रहती हैं: + +- **"काम शुरू क्यों नहीं होता" का उत्तर नहीं।** Slurm हर लंबित जॉब का कारण रखता है। निष्क्रिय नोड ग्राफ़ के साथ भरी कतार यह नहीं बताती कि कारण प्राथमिकता, संसाधन सीमा, रोक, निर्भरता या ड्रेन नोड है। +- **शेड्यूलर स्थिति और अलर्ट का जुड़ाव नहीं।** Thold ऐसे डिवाइस पर अलर्ट देता है जिसे व्यवस्थापक पहले ही ड्रेन कर चुका है, और Maint शेड्यूल हाथ से बनाए जाते हैं। + +प्लगइन हर क्लस्टर का एक कैश स्नैपशॉट लेता है, उसे सामान्य Cacti डेटा स्रोत और ग्राफ़ के रूप में प्रकाशित करता है, शेड्यूलर नोड मौजूदा Cacti डिवाइस से मैप करता है और ड्रेन नोड व रखरखाव आरक्षण Maint में रख सकता है। यह Cacti अनुमतियाँ, दूरस्थ डेटा कलेक्टर, Thold और Maint पुनः उपयोग करता है तथा शेड्यूलर के प्रति केवल-पठन है। + + +## नियोजित दायरा + +| चरण | दायरा | माइलस्टोन | +|---|---|---| +| 0, शोध | Slurm रिलीज़ मैट्रिक्स, मूल व्यवहार की पुष्टि, कंट्रोलर लोड, नोड नाम फ़िक्स्चर | [M1](https://github.com/somethingwithproof/plugin_hpcsched/milestone/1) | +| 1, क्लस्टर ग्राफ़ | कतार गहराई, लंबित और चल रहे जॉब, लंबित कारण, नोड स्थिति, पार्टिशन उपयोग, Thold अलर्ट, स्वास्थ्य पृष्ठ, रिलीज़ | [M2](https://github.com/somethingwithproof/plugin_hpcsched/milestone/2), [M3](https://github.com/somethingwithproof/plugin_hpcsched/milestone/3), [M4](https://github.com/somethingwithproof/plugin_hpcsched/milestone/4) | +| 2, नोड और रखरखाव | नोड-डिवाइस मैपिंग, प्रति-नोड स्थिति, ड्रेन नोड और रखरखाव आरक्षण के लिए स्वचालित Maint विंडो | [M5](https://github.com/somethingwithproof/plugin_hpcsched/milestone/5) | +| 3, लेखांकन | फेयर-शेयर उपयोग, सीमित लेखांकन आँकड़े, दूरस्थ डेटा कलेक्टर | [M6](https://github.com/somethingwithproof/plugin_hpcsched/milestone/6) | + +दायरे से बाहर: शेड्यूलर की कोई लिखने वाली कार्रवाई (submit, cancel, hold, drain, resume), प्लगइन का अपना अलर्ट इंजन, रिपोर्टिंग या शुल्क-वितरण इंजन, प्रति-उपयोगकर्ता और प्रति-जॉब श्रृंखलाएँ। PBS Pro, OpenPBS और LSF बैकएंड शोध में हैं। + + +## संगतता लक्ष्य + +| घटक | लक्ष्य | +|---|---| +| Cacti | 1.2.31 या बाद, बिना कोर पैच | +| PHP | 8.2 या बाद; `setup.php` 8.0 पर भी पार्स होता है ताकि असमर्थित रनटाइम को Cacti UI तोड़ने के बजाय अस्वीकृति मिले | +| Slurm | 25.05, 25.11 और 26.05, तीन नवीनतम रिलीज़ ([ADR 0013](../../decisions/0013-three-latest-slurm-releases.md)); 25.11 और 26.05 चालू क्लस्टर पर परखे जाते हैं, 25.05 केवल फ़िक्स्चर पर। क्लाइंट कमांड डिफ़ॉल्ट ट्रांसपोर्ट हैं ([ADR 0012](../../decisions/0012-client-commands-default-transport.md)) और डेटा पार्सर सेटिंग उपयोग करते हैं: डिफ़ॉल्ट v0.0.43, जिसे SchedMD 27.05 में हटाता है, या v0.0.44/v0.0.45 उन रिलीज़ पर जहाँ ये मिलते हैं। slurmrestd क्लस्टर डेमन का नवीनतम पार्सर खोजते हैं | +| Thold, Maint | Thold बदलाव नहीं; Maint एकीकरण प्रस्ताव है जिसके लिए Maint अनुरक्षकों की सहमति चाहिए | + + +## डिज़ाइन + +- [docs/PLAN.md](../../PLAN.md) पूरा प्लान है: वास्तुकला, निर्भर मूल तथ्य (स्रोत और अपुष्ट धारणाओं की स्पष्ट सूची सहित), नोड मैपिंग, स्थिति मॉडल, सुरक्षा सीमाएँ, प्रदर्शन गणना, परीक्षण और जोखिम। +- [docs/decisions/](../../decisions) में वास्तुकला निर्णय रिकॉर्ड हैं। +- [docs/REQUIREMENTS.md](../../REQUIREMENTS.md) हर आवश्यकता ID को उसकी इश्यू से जोड़ता है। + +```mermaid +flowchart LR + S[Slurm controller] -->|read-only calls, one set per cycle| R[Reader on the assigned Cacti poller] + R --> SNAP[(Snapshot tables)] + SNAP --> SS[Script server inputs] + SS -->|poller_output| T[Thold and Maint] + SS --> G[Cacti graphs and permissions] + SNAP --> MAP[Node to device mapping] + MAP -->|owned, expiring schedules| T +``` + + +## काम का अनुश्रवण + +- **माइलस्टोन** प्लान का अनुसरण करते हैं। हर माइलस्टोन की एक एपिक इश्यू में उप-इश्यू और समापन प्रमाण हैं। +- **इश्यू** लेबल से वर्गीकृत हैं: `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/10) सभी माइलस्टोन की इश्यू दिखाता है। + + +## योगदान + +[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..ed12d1a --- /dev/null +++ b/docs/i18n/zh-CN/README.md @@ -0,0 +1,139 @@ + + + +[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_hpcsched + +这是一个 Cacti 1.2 插件,将 HPC 批处理调度器的状态与 Cacti 已监控的设备一起绘图:队列深度、等待和运行中的任务、任务等待原因、节点状态以及分区利用率。Slurm 是第一个后端。Thold 可对生成的数据源告警,Maint 则可由已排空节点和维护预留驱动。 + +> **状态:开发中,尚未发布。** 里程碑 2(基础)已合并到 `main`,此分支添加里程碑 3(集群图表和等待原因)。代码通过 Cacti 插件 API 安装、升级和卸载,并拒绝 PHP 8.2 以下版本。它维护 Slurm 集群注册表,每个集群分配给一个 Cacti 采集器。主采集器上的后台读取器在每个间隔为每个集群采集一个快照,方式是使用 `--json` 运行 `squeue`、`scontrol` 和 `sshare`,或通过 HTTPS 读取 `slurmrestd`,然后按状态和等待原因保存任务计数、节点状态、分区、预留、公平份额用量及其时效性。插件提供 Cacti 模板,经管理员确认后为每个集群创建或映射一个 Cacti 设备,绘制集群及各分区的任务状态、等待原因类别、节点状态、CPU 和利用率,以及快照年龄。只读概览页显示各集群计数及其时效性,并提供每个集群的等待原因视图;仅管理员可访问的健康状态页显示每次采集的返回结果及模板安装状态。所有页面和操作遵循 Cacti 设备权限。数据源可供 Thold 告警,但尚未测试与 Thold 或 Maint 的集成;这是里程碑 4 及之后的工作。测试套件覆盖合成 Slurm 命令和 `slurmrestd` 响应,CI 还会测试下文所述的容器内真实六节点 Slurm 集群。读取器尚未针对生产集群运行。操作员说明之后的 README 内容描述的是设计,而非已交付行为。 + +这是独立项目,不隶属于 Cacti 项目。 + + +## 访问角色 + +| 权限域 | 访问权限 | +| --- | --- | +| HPC Scheduler View | 现有监控页面。 | +| HPC Scheduler Operator | 监控、运维页面以及个人排查确认。 | +| HPC Scheduler Admin | 操作员访问权限及现有配置和管理操作。 | + +复制升级文件后,以管理员身份打开插件页面,注册新权限域。在**配置 > 用户**或用户组中明确授予 Operator 权限域。升级保留现有 View 和 Admin 权限域的 ID 及授权。每次请求时,Admin 继承 Operator 访问权限,Operator 继承 View 访问权限;这不会向用户或组添加持久化授权。插件设置除需要 Cacti 的设置权限外,还需要 HPC Scheduler Admin 权限。 + +Cacti 设备权限仍限制每位用户可访问的行和操作;未映射对象需要管理员处理。凭据、配置、映射、删除和其他管理更改仍在管理页面中执行。确认记录仅在当前用户会话中有效,最多一小时,并且仅在同一观测结果仍然新鲜时有效。新出现或更改的观测结果会使确认失效。确认绝不会将失败的测量标记为健康,也不会抑制告警。 + + +## 里程碑 2 操作员说明 + +**最小权限。** 插件只读取。请使用专门的 Slurm 用户,不授予管理员或操作员角色(在 `sacctmgr` 中设置 `AdminLevel=None`)。如果 `slurm.conf` 设置了 `PrivateData=jobs`(或 `nodes`、`reservations`、`usage`),该用户只能看到自己的记录,因此计数不完整,插件无法检测这一情况。解除此限制需要操作员或管理员级别,这同时允许更改;需由站点自行权衡。对于客户端命令,Cacti 采集器用户需要 Slurm 客户端二进制文件和可连接控制器的 `slurm.conf`;二进制文件绝对路径在“配置 > 设置 > HPC Scheduler”中设置。对于 `slurmrestd`,URL 必须使用 `https://`,只有环回地址允许 `http://`。插件验证 TLS 证书,不跟随重定向。“配置 > 设置 > HPC Scheduler”中的可选 slurmrestd 主机列表可限制集群指定的主机和端口。 + +**远程采集器。** 此版本仅在 Cacti 主采集器上采集。分配给远程数据采集器的集群不会被采集:远端读取器拒绝执行并记录原因,健康状态页面标出该集群。远程采集属于第 3 阶段。 + +**内存。** 每次采集一次解码一个调度器响应,需要约响应大小 12 倍的 PHP 内存(对形状类似 Slurm 的任务记录,实测约 10 倍,再加响应文本本身)。运行时将 PHP 内存上限提高到“采集内存”设置值(默认 1024 MiB),并允许最大 (采集内存 - 64) / 12 MiB 的响应,默认 80 MiB;即使“最大响应大小”设置得更高,也使用此限制,并在健康状态页警告。更大的响应会使对应部分因过大而失败;仍然耗尽内存的运行也会记为失败。大型集群可能需要同时提高两个设置;尚未测量 100,000 条真实任务记录的情况。 + +**令牌文件。** `slurmrestd` 集群指定令牌文件;令牌本身绝不存入数据库、显示在页面上或写入日志。文件必须位于“配置 > 设置 > HPC Scheduler”指定的令牌文件目录之一,路径不能经过符号链接,必须是属于采集器用户且仅该用户可写的普通文件。文件包含一行:令牌本身,或 `scontrol token` 输出的 `SLURM_JWT=`。如果未设置令牌目录,任何集群都不能使用 `slurmrestd`。这两个设置位于 Cacti 设置页,仅有插件 Admin 权限域无法更改;请将每个令牌目录限制为仅 root 和采集器用户可写。组或其他用户可读的文件仍会被使用,但健康状态页会警告。令牌在配置的警告时间内过期时,健康状态页也会警告。 + +轮换令牌时,为避免读取器看到不完整文件,请在旧文件旁写入新令牌,再重命名到目标位置: + +```sh +dir=/etc/cacti/hpcsched +tmp=$(mktemp "$dir/.token.XXXXXX") +scontrol token username=cactiread lifespan=2592000 > "$tmp" +chown cacti:cacti "$tmp" +chmod 0600 "$tmp" +mv -f "$tmp" "$dir/cluster1.token" +``` + +下次采集会读取新文件。使用 `scontrol token` 生成令牌需要 Slurm 管理员权限;请在允许的位置运行,再将文件复制到采集器。 + + +## 里程碑 3 操作员说明 + +**模板。** 安装和升级会导入 HPC Scheduler 设备、数据和图表模板,并将分区数据查询复制到 Cacti 的 `resource/script_server/` 目录。如果安装插件的用户无法写入该目录、目录中已有非插件创建的同名不同文件,或该名称是符号链接,导入会停止,保留原文件,健康状态页说明处理方法;可在健康状态页使用“安装模板”重试。手动复制的相同文件会被使用,但所有权仍归您。卸载仅在查询文件由插件写入且未修改时删除该文件,并保留模板、设备和图表。 + +**集群设备。** “HPC 集群 > 设备”在创建前显示将添加的内容(图表、数据源、RRD 文件以及每次采集的脚本服务器调用数)。“创建设备”使用保留的 `.invalid` 域主机名并关闭可用性检查;“映射设备”则将图表附加到现有设备,不改变其设置。每个集群图表和分区图表都有独立数据源:集群六个,每分区五个;每次采集对每个集群数据源调用脚本服务器一次,对分区的每个值(32 个)调用一次。之后添加的分区在读取器发现时建立索引,可在 Cacti 的“新建图表”页创建图表;移除的分区停止采集但保留图表。删除设备会取消集群映射并保留集群。 + +**图表统计内容。** 等待任务不包括被保留任务,后者有独立序列。等待中的任务数组按剩余任务数计数。属于多个分区的任务或节点在集群图表中计一次,在每个分区中各计一次,因此分区图表之和不一定等于集群图表。等待原因分为十一个类别([ADR 0011](../../decisions/0011-pending-reason-families-and-counting.md));等待原因视图列出原始原因,包括归入“其他”的原因。每个任务仅报告调度器最近检查的原因。利用率的分母包含已排空、已停止和其他不可用节点。过期或失败数据为 `U`,绝不是零;`age` 始终为数值。 + +**告警。** Thold 可对这些任意数据源告警;Thold 持续时间应至少为一个采集间隔,并对 `age` 设置告警以检测停止的读取器。端到端 Thold 检查属于里程碑 4。 + +**针对真实 Slurm 输出测试。** CI 在容器中启动六节点 Slurm 集群(每次更改使用 26.05.5;向 `main` 推送、每周及按需运行时从源码构建 25.11.8),检查插件解析出的节点状态、维护预留、等待原因和任务数组,然后使用插件自身的命令及 `slurmrestd` 传输方式采集该集群。更早版本仅由合成测试数据覆盖。读取器仍未在生产集群上运行。 + +**权限。** 在每个插件页面中,关联到设备的集群仅向 Cacti 授权访问该设备的用户显示、导出或允许更改;映射设备还需要目标设备权限。无设备的集群对拥有插件权限域的所有用户可见。插件禁用期间设备被删除、但集群仍保留映射时,只有 HPC Scheduler Admin 用户可见,并可为其创建或映射设备。图表访问由 Cacti 自身控制。 + + +## 原因 + +使用 Cacti 的操作员已经为计算节点绘图,但缺少调度器视角,留下两个缺口: + +- **无法解释“任务为何不启动”。** Slurm 为每个等待任务记录原因。满队列旁的空闲节点图表无法说明原因是优先级、资源限制、保留、依赖关系还是已排空节点。 +- **调度器状态与告警脱节。** Thold 对管理员已排空的设备告警,管理员需要手动创建 Maint 计划。 + +插件为每个集群采集一个缓存快照,将其发布为普通 Cacti 数据源和图表,将调度器节点映射到现有 Cacti 设备,并可把已排空节点和维护预留加入 Maint。它复用 Cacti 权限、远程数据采集器、Thold 和 Maint,对调度器只读。 + + +## 计划范围 + +| 阶段 | 范围 | 里程碑 | +|---|---|---| +| 0,研究 | Slurm 版本矩阵、上游行为确认、控制器负载、节点命名测试数据 | [M1](https://github.com/somethingwithproof/plugin_hpcsched/milestone/1) | +| 1,集群图表 | 队列深度、等待和运行任务、等待原因、节点状态、分区利用率、Thold 告警、健康状态页面、发布 | [M2](https://github.com/somethingwithproof/plugin_hpcsched/milestone/2)、[M3](https://github.com/somethingwithproof/plugin_hpcsched/milestone/3)、[M4](https://github.com/somethingwithproof/plugin_hpcsched/milestone/4) | +| 2,节点和维护 | 节点到设备映射、逐节点状态、已排空节点和维护预留的自动 Maint 窗口 | [M5](https://github.com/somethingwithproof/plugin_hpcsched/milestone/5) | +| 3,记账 | 公平份额用量、有界记账统计、远程数据采集器 | [M6](https://github.com/somethingwithproof/plugin_hpcsched/milestone/6) | + +范围之外:任何调度器写入路径(提交、取消、保留、排空、恢复)、插件自有告警引擎、报表或费用分摊引擎,以及按用户或任务建立序列。PBS Pro、OpenPBS 和 LSF 后端仍属研究。 + + +## 兼容性目标 + +| 组件 | 目标 | +|---|---| +| Cacti | 1.2.31 或更高版本,无需核心补丁 | +| PHP | 8.2 或更高版本;`setup.php` 在 8.0 中仍可解析,以便对不受支持的运行时明确拒绝,而不是损坏 Cacti 界面 | +| Slurm | 25.05、25.11 和 26.05,即最近三个版本([ADR 0013](../../decisions/0013-three-latest-slurm-releases.md));25.11 和 26.05 针对运行中的集群测试,25.05 仅用测试数据。默认传输方式为客户端命令([ADR 0012](../../decisions/0012-client-commands-default-transport.md)),使用数据解析器设置:默认 v0.0.43(SchedMD 将在 27.05 移除),或在支持的版本上使用 v0.0.44、v0.0.45。slurmrestd 集群会发现守护进程提供的最新解析器 | +| Thold、Maint | 无需修改 Thold;Maint 集成是一项需获得 Maint 维护者同意的提案 | + + +## 设计 + +- [docs/PLAN.md](../../PLAN.md) 是完整计划:架构、依赖的上游事实(含来源和明确的未验证假设清单)、节点映射、状态模型、安全边界、性能计算、测试和风险。 +- [docs/decisions/](../../decisions) 保存架构决策记录。 +- [docs/REQUIREMENTS.md](../../REQUIREMENTS.md) 将每个需求 ID 映射到对应议题。 + +```mermaid +flowchart LR + S[Slurm controller] -->|read-only calls, one set per cycle| R[Reader on the assigned Cacti poller] + R --> SNAP[(Snapshot tables)] + SNAP --> SS[Script server inputs] + SS -->|poller_output| T[Thold and Maint] + SS --> G[Cacti graphs and permissions] + SNAP --> MAP[Node to device mapping] + MAP -->|owned, expiring schedules| T +``` + + +## 工作跟踪方式 + +- **里程碑**遵循计划。每个里程碑都有一个史诗议题,列出子议题和完成证据。 +- **议题**按标签分类:`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/10) 显示各里程碑的全部议题。 + + +## 贡献 + +请阅读 [CONTRIBUTING.md](../../../CONTRIBUTING.md)。提交需要 DCO 签署。设计讨论在议题中进行;未决决策带有 `type: decision` 标签。 + + +## 安全 + +请私下报告漏洞;参阅 [SECURITY.md](../../../SECURITY.md)。 + + +## 许可证 + +GNU 通用公共许可证 v2.0,与 Cacti 及其插件相同。参阅 [LICENSE](../../../LICENSE)。 diff --git a/hpcsched_operator.php b/hpcsched_operator.php new file mode 100644 index 0000000..558dba2 --- /dev/null +++ b/hpcsched_operator.php @@ -0,0 +1,103 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_hpcsched, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_hpcsched + * + * 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\Hpcsched\OperatorPage; + +chdir('../../'); +include('./include/auth.php'); +include_once('./plugins/hpcsched/setup.php'); + +if (!hpcsched_page_start()) { + exit; +} +require_once('./plugins/hpcsched/include/operator.php'); + +$user = (int) ($_SESSION['sess_user_id'] ?? 0); +$allowed = $user > 0 && api_plugin_user_realm_auth('hpcsched_operator.php'); + +if (!$allowed) { + http_response_code(403); + exit; +} +$actions = []; +$action = (string) get_nfilter_request_var('action'); +$session = $_SESSION['hpcsched_triage'] ?? []; +$session = is_array($session) ? $session : []; + +try { + // Re-read on POST too: stale forms never retain revoked device access. + $rows = hpcsched_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['hpcsched_triage'] = $session; + } + cacti_log('Operator ' . $action . ' by user ' . $user . ' on object ' . hash('sha256', $id), false, 'HPCSCHED'); + header('Location: hpcsched_operator.php'); + exit; + } + top_header(); + print '

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

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

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

'; + bottom_footer(); +} diff --git a/include/operator.php b/include/operator.php new file mode 100644 index 0000000..01744d5 --- /dev/null +++ b/include/operator.php @@ -0,0 +1,46 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_hpcsched, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_hpcsched + * + * 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\Hpcsched\SystemClock; +use Somethingwithproof\Hpcsched\RunRepository; +use Somethingwithproof\Hpcsched\ClusterRepository; + +/** @return list */ +function hpcsched_operator_rows(): array { + $rows = []; + $clock = new SystemClock(); + $runs = new RunRepository(false, $clock); + + foreach ((new ClusterRepository(false, $clock))->all() as $cluster) { + if ($cluster->hostId <= 0 || !hpcsched_device_access()->cluster($cluster)) { + continue; + } + $h = $runs->get($cluster->id); + $rows[] = [ + 'id' => (string) $cluster->id, + 'name' => $cluster->name, + 'state' => $cluster->adminState->value . ' / ' . ($h->outcome->value ?? 'never'), + 'observed' => $h->finishedAt ?? 0, + 'interval' => $cluster->effectiveInterval(max(60, (int) read_config_option('poller_interval'))), + 'detail' => ($h->error->value ?? '') . ' ' . __('Inspect pending reason families and snapshot freshness on the overview. Escalate credentials, cluster mappings and maintenance policy to an administrator.', 'hpcsched') + ]; + } + + return $rows; +} diff --git a/lib/OperatorPage.php b/lib/OperatorPage.php new file mode 100644 index 0000000..376dedf --- /dev/null +++ b/lib/OperatorPage.php @@ -0,0 +1,133 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_hpcsched, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_hpcsched + * + * 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\Hpcsched; + +/** 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('hpcsched_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.', 'hpcsched')) . '

'; + print '
'; + html_start_box(__('HPC Scheduler Operations', 'hpcsched'), '100%', '', '3', 'center', ''); + print '' . implode('', array_map('html_escape', [__('Object', 'hpcsched'), __('State', 'hpcsched'), __('Observed (UTC)', 'hpcsched'), __('Investigation', 'hpcsched'), __('Actions', 'hpcsched')])) . ''; + + foreach ($rows as $row) { + $fresh = self::fresh($row, $now); + $state = $row['state'] . ($fresh ? '' : ' / ' . __('Unknown or stale', 'hpcsched')); + print '' . html_escape($row['name']) . '' . html_escape($state) . '' . html_escape($row['observed'] > 0 ? gmdate('Y-m-d H:i:s', $row['observed']) : __('Never', 'hpcsched')) . '' . html_escape($row['detail']) . ''; + + if (self::acknowledged($session, $row, $user, $now)) { + print html_escape(__('Acknowledged; health unchanged.', 'hpcsched')); + } elseif ($fresh) { + self::form($row, 'acknowledge', __('Acknowledge', 'hpcsched')); + } + + 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.', 'hpcsched')) . ''; + } + html_end_box(); + print '
'; + } +} diff --git a/lib/Pages.php b/lib/Pages.php index 8db8043..d403f1f 100644 --- a/lib/Pages.php +++ b/lib/Pages.php @@ -30,6 +30,7 @@ * account name (REQ-UI-004). */ final class Pages { + public const OPERATOR = ['hpcsched_operator.php']; public const VIEW = ['hpcsched.php']; public const ADMIN = ['hpcsched_clusters.php', 'hpcsched_health.php']; @@ -38,6 +39,7 @@ final class Pages { */ public static function realms(): array { return [ + ['name' => __('HPC Scheduler Operator', 'hpcsched'), 'files' => self::OPERATOR], ['name' => __('HPC Scheduler View', 'hpcsched'), 'files' => self::VIEW], ['name' => __('HPC Scheduler Admin', 'hpcsched'), '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 [ + 'hpcsched_operator.php' => __('HPC Scheduler Operations', 'hpcsched'), 'hpcsched.php' => __('HPC Scheduler', 'hpcsched'), 'hpcsched_clusters.php' => __('HPC Clusters', 'hpcsched'), 'hpcsched_health.php' => __('HPC Scheduler Health', 'hpcsched'), diff --git a/lib/Schema.php b/lib/Schema.php index c6b36ff..f2f0051 100644 --- a/lib/Schema.php +++ b/lib/Schema.php @@ -38,6 +38,7 @@ final class Schema { public const VERSION = 2; public const HOOKS = [ + 'auth_alternate_realms' => 'hpcsched_auth_alternate_realms', 'config_arrays' => 'hpcsched_config_arrays', 'config_settings' => 'hpcsched_config_settings', 'draw_navigation_text' => 'hpcsched_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..b5b3317 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..5fa8f96 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..5819c90 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..4595769 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..d055482 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 d1e1236..e3f5820 100644 --- 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..fcc9892 --- /dev/null +++ b/locales/po/ar-SA.po @@ -0,0 +1,1070 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# +msgid "" +msgstr "" +"Project-Id-Version: hpcsched 0.1.0-dev\n" +"Report-Msgid-Bugs-To: https://github.com/somethingwithproof/plugin_hpcsched/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" + +#: hpcsched_clusters.php +msgid "You do not have permission for the device of that cluster." +msgstr "لا تملك إذنًا لجهاز ذلك العنقود." + +#: hpcsched_clusters.php +msgid "Name: another cluster already uses this name." +msgstr "الاسم: يستخدم عنقود آخر هذا الاسم بالفعل." + +#: hpcsched_clusters.php +msgid "The cluster was not saved: it was changed by someone else since the form was opened, or the write failed. Open it again and repeat the change." +msgstr "لم يُحفظ العنقود: غيّره شخص آخر منذ فتح النموذج أو فشلت الكتابة. افتحه مجددًا وكرّر التغيير." + +#: hpcsched_clusters.php +msgid "The cluster was saved." +msgstr "حُفظ العنقود." + +#: hpcsched_clusters.php +msgid "The cluster and its cached snapshot were deleted. Its device and graphs were kept. The scheduler was not contacted." +msgstr "حُذف العنقود ولقطته المؤقتة. احتُفظ بجهازه ورسومه. لم يُتصل بالمُجدول." + +#: hpcsched_clusters.php +msgid "The device and its graphs were created." +msgstr "أُنشئ الجهاز ورسومه." + +#: hpcsched_clusters.php +msgid "The device was not created: the cluster already has a device, it was changed by someone else since the page was opened, or Cacti refused it. See the Cacti log." +msgstr "لم يُنشأ الجهاز: للعنقود جهاز بالفعل، أو غيّره شخص آخر منذ فتح الصفحة، أو رفضه Cacti. راجع سجل Cacti." + +#: hpcsched_clusters.php +msgid "The cluster was mapped to the device." +msgstr "رُبط العنقود بالجهاز." + +#: hpcsched_clusters.php +msgid "The cluster was not mapped: the device does not exist, is not allowed to you, already carries another cluster, or the cluster was changed by someone else since the page was opened." +msgstr "لم يُربط العنقود: الجهاز غير موجود، أو لا تملك إذنًا له، أو يحمل عنقودًا آخر، أو غيّر شخص آخر العنقود منذ فتح الصفحة." + +#: hpcsched_clusters.php +msgid "Missing graphs were added." +msgstr "أُضيفت الرسوم المفقودة." + +#: hpcsched_clusters.php +msgid "The cluster was not unmapped: it was changed by someone else since the page was opened." +msgstr "لم يُفك ربط العنقود: غيّره شخص آخر منذ فتح الصفحة." + +#: hpcsched_clusters.php +msgid "The cluster was unmapped. The device and its graphs were kept." +msgstr "فُك ربط العنقود. احتُفظ بالجهاز ورسومه." + +#: hpcsched_clusters.php +msgid "The partitions were reindexed from the snapshot." +msgstr "أُعيدت فهرسة الأقسام من اللقطة." + +#: hpcsched_health.php +msgid "The HPC Scheduler templates are installed." +msgstr "قوالب HPC Scheduler مثبّتة." + +#: hpcsched_health.php +#, php-format +msgid "The templates were not installed: %s" +msgstr "لم تُثبَّت القوالب: %s" + +#: hpcsched_operator.php +msgid "Monitoring view" +msgstr "عرض المراقبة" + +#: hpcsched_operator.php +msgid "Observations could not be read. Ask an administrator to check the plugin log." +msgstr "تعذّرت قراءة الملاحظات. اطلب من مسؤول مراجعة سجل الإضافة." + +#: include/operator.php +msgid "Inspect pending reason families and snapshot freshness on the overview. Escalate credentials, cluster mappings and maintenance policy to an administrator." +msgstr "افحص فئات أسباب الانتظار وحداثة اللقطة في النظرة العامة. أحِل بيانات الاعتماد وروابط العناقيد وسياسة الصيانة إلى مسؤول." + +#: lib/ClusterInput.php +msgid "Name: use 1 to 64 letters, digits, dots, dashes, or underscores, starting with a letter or digit." +msgstr "الاسم: استخدم من 1 إلى 64 حرفًا أو رقمًا أو نقطة أو شرطة أو شرطة سفلية، على أن يبدأ بحرف أو رقم." + +#: lib/ClusterInput.php +msgid "Poller: choose one of the listed pollers." +msgstr "المُستطلِع: اختر أحد المُستطلِعات المدرجة." + +#: lib/ClusterInput.php +#, php-format +msgid "Collection Interval: enter whole seconds from %d to %d." +msgstr "فاصل الجمع: أدخل عددًا صحيحًا من الثواني بين %d و%d." + +#: lib/ClusterInput.php +msgid "Transport: choose one of the listed transports." +msgstr "النقل: اختر إحدى وسائل النقل المدرجة." + +#: lib/ClusterInput.php +msgid "slurm.conf: enter an absolute path, or leave it empty to use the poller default." +msgstr "slurm.conf: أدخل مسارًا مطلقًا أو اتركه فارغًا لاستخدام افتراضي المُستطلِع." + +#: lib/ClusterInput.php +msgid "slurmrestd URL: this host and port are not on the slurmrestd host list in Settings." +msgstr "عنوان slurmrestd: هذا المضيف والمنفذ غير مدرجين في قائمة مضيفي slurmrestd في الإعدادات." + +#: lib/ClusterInput.php +msgid "slurmrestd URL: enter an https:// URL without user name, query, or fragment; plain http:// is accepted only for a loopback address." +msgstr "عنوان slurmrestd: أدخل عنوان https:// دون اسم مستخدم أو استعلام أو جزء؛ يُقبل http:// غير المشفّر لعناوين الاسترجاع المحلي فقط." + +#: lib/ClusterInput.php +msgid "slurmrestd User: use at most 64 letters, digits, dots, dashes, or underscores, or leave it empty for a user token." +msgstr "مستخدم slurmrestd: استخدم 64 حرفًا أو رقمًا أو نقطة أو شرطة أو شرطة سفلية كحد أقصى، أو اتركه فارغًا لرمز مستخدم." + +#: lib/ClusterInput.php +msgid "Token File: enter the absolute path of the token file on the poller. The token itself is never entered here." +msgstr "ملف الرمز: أدخل المسار المطلق لملف الرمز على المُستطلِع. لا يُدخل الرمز نفسه هنا مطلقًا." + +#: lib/ClusterInput.php +msgid "Token File: no token file directories are set yet. Ask a Cacti administrator to set them under Settings, HPC Scheduler." +msgstr "ملف الرمز: لم تُحدّد أدلة ملفات الرموز بعد. اطلب من مسؤول Cacti تحديدها ضمن الإعدادات، HPC Scheduler." + +#: lib/ClusterInput.php +#, php-format +msgid "Token File: the file must be inside one of the token file directories set in Settings (%s)." +msgstr "ملف الرمز: يجب أن يكون داخل أحد أدلة ملفات الرموز المحددة في الإعدادات (%s)." + +#: lib/ClustersPage.php lib/Pages.php +msgid "HPC Clusters" +msgstr "عناقيد HPC" + +#: lib/ClustersPage.php lib/OperatorPage.php +msgid "Actions" +msgstr "الإجراءات" + +#: lib/ClustersPage.php +msgid "Device" +msgstr "الجهاز" + +#: lib/ClustersPage.php +msgid "Interval" +msgstr "الفاصل" + +#: lib/ClustersPage.php +msgid "Name" +msgstr "الاسم" + +#: lib/ClustersPage.php +msgid "Poller" +msgstr "المُستطلِع" + +#: lib/ClustersPage.php +msgid "Sections" +msgstr "الأقسام" + +#: lib/ClustersPage.php lib/HealthPage.php lib/OperatorPage.php +msgid "State" +msgstr "الحالة" + +#: lib/ClustersPage.php lib/HealthPage.php +msgid "Transport" +msgstr "النقل" + +#: lib/ClustersPage.php lib/HealthPage.php +msgid "No clusters configured yet." +msgstr "لم تُضبط أي عناقيد بعد." + +#: lib/ClustersPage.php +msgid "Disable" +msgstr "تعطيل" + +#: lib/ClustersPage.php +msgid "Enable" +msgstr "تفعيل" + +#: lib/ClustersPage.php +#, php-format +msgid "Deleted poller %d" +msgstr "مُستطلِع محذوف %d" + +#: lib/ClustersPage.php +#, php-format +msgid "%d seconds" +msgstr "%d ثانية" + +#: lib/ClustersPage.php +msgid "None" +msgstr "لا شيء" + +#: lib/ClustersPage.php +msgid "Delete" +msgstr "حذف" + +#: lib/ClustersPage.php +msgid "Export" +msgstr "تصدير" + +#: lib/ClustersPage.php +msgid "Download the cluster configuration as JSON before an uninstall that drops the plugin tables. It holds token file paths, never a token." +msgstr "قبل إلغاء التثبيت مع حذف جداول الإضافة، نزّل إعدادات العناقيد بصيغة JSON. تتضمن مسارات ملفات الرموز، ولا تتضمن رمزًا مطلقًا." + +#: lib/ClustersPage.php +#, php-format +msgid "Cluster: %s" +msgstr "العنقود: %s" + +#: lib/ClustersPage.php +msgid "New Cluster" +msgstr "عنقود جديد" + +#: lib/ClustersPage.php +msgid "Collection Interval (seconds)" +msgstr "فاصل الجمع (بالثواني)" + +#: lib/ClustersPage.php +msgid "Enabled" +msgstr "مفعّل" + +#: lib/ClustersPage.php +msgid "Collect Reservations" +msgstr "جمع الحجوزات" + +#: lib/ClustersPage.php +msgid "Collect Fair-share (accounts only)" +msgstr "جمع الحصة العادلة (الحسابات فقط)" + +#: lib/ClustersPage.php +msgid "slurm.conf Path (optional)" +msgstr "مسار slurm.conf (اختياري)" + +#: lib/ClustersPage.php +msgid "slurmrestd URL" +msgstr "عنوان slurmrestd" + +#: lib/ClustersPage.php +msgid "slurmrestd User (optional)" +msgstr "مستخدم slurmrestd (اختياري)" + +#: lib/ClustersPage.php +msgid "Token File on the Poller" +msgstr "ملف الرمز على المُستطلِع" + +#: lib/ClustersPage.php +msgid "Client commands use the binaries set under Settings > HPC Scheduler and the poller user's own Slurm authentication; the optional slurm.conf path selects a cluster. slurmrestd fields are used only with that transport. The token file must be readable by the poller user only; the plugin reads it at each run and never stores the token." +msgstr "تستخدم أوامر العميل الملفات التنفيذية المحددة في الإعدادات > HPC Scheduler ومصادقة Slurm الخاصة بمستخدم المُستطلِع؛ يحدد مسار slurm.conf الاختياري العنقود. لا تُستخدم حقول slurmrestd إلا مع وسيلة النقل تلك. يجب ألا يقرأ ملف الرمز إلا مستخدم المُستطلِع؛ تقرؤه الإضافة في كل تشغيل ولا تخزّن الرمز مطلقًا." + +#: lib/ClustersPage.php +msgid "Save" +msgstr "حفظ" + +#: lib/ClustersPage.php +#, php-format +msgid "Device for Cluster: %s" +msgstr "جهاز العنقود: %s" + +#: lib/ClustersPage.php +#, php-format +msgid "Mapped to device %s (id %d). Its graphs follow Cacti's device and graph permissions." +msgstr "مرتبط بالجهاز %s (المعرّف %d). تتبع رسومه أذونات الأجهزة والرسوم في Cacti." + +#: lib/ClustersPage.php +msgid "Adding the missing graphs adds:" +msgstr "تؤدي إضافة الرسوم المفقودة إلى إضافة:" + +#: lib/ClustersPage.php +msgid "Add Missing Graphs" +msgstr "إضافة الرسوم المفقودة" + +#: lib/ClustersPage.php +msgid "Reindex Partitions" +msgstr "إعادة فهرسة الأقسام" + +#: lib/ClustersPage.php +msgid "Unmap" +msgstr "فك الربط" + +#: lib/ClustersPage.php +msgid "Unmapping keeps the device, its graphs, and their history." +msgstr "يحتفظ فك الربط بالجهاز ورسومه وسجلها." + +#: lib/ClustersPage.php +#, php-format +msgid "The cluster is still mapped to device %d, which no longer exists. Creating or mapping a device replaces that mapping." +msgstr "لا يزال العنقود مرتبطًا بالجهاز %d الذي لم يعد موجودًا. يؤدي إنشاء جهاز أو ربطه إلى استبدال ذلك الربط." + +#: lib/ClustersPage.php +msgid "Creating a device adds:" +msgstr "يؤدي إنشاء جهاز إلى إضافة:" + +#: lib/ClustersPage.php +msgid "Without partition graphs, only the cluster graphs are created, and the data sources and calls for the partitions above are left out." +msgstr "دون رسوم الأقسام، لا تُنشأ إلا رسوم العنقود، وتُستبعد مصادر البيانات والاستدعاءات للأقسام المذكورة أعلاه." + +#: lib/ClustersPage.php +msgid "Also create the partition graphs" +msgstr "إنشاء رسوم الأقسام أيضًا" + +#: lib/ClustersPage.php +msgid "Create Device" +msgstr "إنشاء جهاز" + +#: lib/ClustersPage.php +msgid "Or map an existing device" +msgstr "أو ربط جهاز موجود" + +#: lib/ClustersPage.php +msgid "Map Device" +msgstr "ربط جهاز" + +#: lib/DeviceProvisioner.php +msgid "The HPC Scheduler templates are not installed. Install them from the health page." +msgstr "قوالب HPC Scheduler غير مثبّتة. ثبّتها من صفحة الحالة الصحية." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "A device \"%s\" from the %s device template, polled by poller %d, with availability checks off." +msgstr "جهاز «%s» من قالب الأجهزة %s، يستطلعه المُستطلِع %d، مع تعطيل فحوص التوافر." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "The data query \"%s\", indexing the %d partitions known now." +msgstr "استعلام البيانات «%s» الذي يفهرس الأقسام المعروفة حاليًا وعددها %d." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "%d cluster graphs, each with its own \"%s\" data source." +msgstr "%d رسوم للعنقود، لكل منها مصدر بيانات «%s» خاص به." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "%d partition graphs, %d for each partition, each with its own data source." +msgstr "%d رسوم للأقسام، بمعدل %d لكل قسم، ولكل رسم مصدر بيانات خاص به." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "In all: %d data sources and %d RRD files, and %d script server calls per poll. Partitions added later get graphs from the New Graphs page." +msgstr "الإجمالي: %d مصادر بيانات و%d ملفات RRD، و%d استدعاءات لخادم البرامج النصية لكل استطلاع. تحصل الأقسام المضافة لاحقًا على رسوم من صفحة الرسوم الجديدة." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "Created by the HPC Scheduler plugin for cluster %s. Its values come from the plugin snapshot; the host name is a reserved name that is never contacted." +msgstr "أنشأته إضافة HPC Scheduler للعنقود %s. تأتي قيمه من لقطة الإضافة؛ اسم المضيف محجوز ولا يُتصل به مطلقًا." + +#: lib/ErrorClass.php +msgid "configuration: a path, URL, or setting is missing or not allowed" +msgstr "الإعدادات: مسار أو عنوان URL أو إعداد مفقود أو غير مسموح به" + +#: lib/ErrorClass.php +msgid "the scheduler could not be reached" +msgstr "تعذّر الوصول إلى المُجدول" + +#: lib/ErrorClass.php +msgid "the call took longer than allowed and was stopped" +msgstr "تجاوز الاستدعاء الوقت المسموح وأُوقف" + +#: lib/ErrorClass.php +msgid "the answer was larger than allowed and was discarded" +msgstr "تجاوز الرد الحجم المسموح وأُهمل" + +#: lib/ErrorClass.php +msgid "the answer could not be parsed with the pinned data parser" +msgstr "تعذّر تحليل الرد بمحلّل البيانات المثبّت الإصدار" + +#: lib/ErrorClass.php +msgid "the scheduler refused the credential" +msgstr "رفض المُجدول بيانات الاعتماد" + +#: lib/ErrorClass.php +msgid "the scheduler account may not see this data (PrivateData or permissions)" +msgstr "لا يُسمح لحساب المُجدول برؤية هذه البيانات (PrivateData أو الأذونات)" + +#: lib/ErrorClass.php +msgid "the controller asked clients to back off (rate limit)" +msgstr "طلب المتحكم من العملاء التراجع مؤقتًا (حد المعدل)" + +#: lib/ErrorClass.php +msgid "the server answered 304 to a request that was not conditional; previous data kept" +msgstr "أجاب الخادم بالرمز 304 عن طلب غير مشروط؛ احتُفظ بالبيانات السابقة" + +#: lib/ErrorClass.php +msgid "the plugin refused a call outside its allowlist" +msgstr "رفضت الإضافة استدعاءً خارج قائمة السماح" + +#: lib/ErrorClass.php +msgid "the call failed" +msgstr "فشل الاستدعاء" + +#: lib/ErrorClass.php +msgid "the reader ran out of memory; lower Maximum Answer Size or raise Collection Memory in Settings" +msgstr "نفدت ذاكرة القارئ؛ خفّض الحجم الأقصى للرد أو ارفع ذاكرة الجمع في الإعدادات" + +#: lib/Format.php lib/OperatorPage.php lib/OverviewPage.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/Freshness.php +msgid "Current" +msgstr "حديث" + +#: lib/Freshness.php +msgid "Delayed" +msgstr "متأخر" + +#: lib/Freshness.php +msgid "Stale" +msgstr "متقادم" + +#: lib/Freshness.php +msgid "Never collected" +msgstr "لم يُجمع قط" + +#: lib/HealthPage.php +msgid "Clusters" +msgstr "العناقيد" + +#: lib/HealthPage.php +msgid "Calls" +msgstr "الاستدعاءات" + +#: lib/HealthPage.php lib/OverviewPage.php +msgid "Cluster" +msgstr "العنقود" + +#: lib/HealthPage.php +msgid "Duration" +msgstr "المدة" + +#: lib/HealthPage.php lib/OverviewPage.php +msgid "Freshness" +msgstr "الحداثة" + +#: lib/HealthPage.php +msgid "Last Run" +msgstr "آخر تشغيل" + +#: lib/HealthPage.php +msgid "Last Success" +msgstr "آخر نجاح" + +#: lib/HealthPage.php +msgid "Outcome" +msgstr "النتيجة" + +#: lib/HealthPage.php +msgid "Parser" +msgstr "المحلّل" + +#: lib/HealthPage.php +msgid "Slurm" +msgstr "Slurm" + +#: lib/HealthPage.php +msgid "All clusters" +msgstr "كل العناقيد" + +#: lib/HealthPage.php +msgid "Warnings" +msgstr "التحذيرات" + +#: lib/HealthPage.php +msgid "Warning" +msgstr "تحذير" + +#: lib/HealthPage.php +msgid "No warnings." +msgstr "لا توجد تحذيرات." + +#: lib/HealthPage.php +msgid "Templates" +msgstr "القوالب" + +#: lib/HealthPage.php +msgid "The device, data, and graph templates and the partition data query are installed." +msgstr "قوالب الأجهزة والبيانات والرسوم واستعلام بيانات الأقسام مثبّتة." + +#: lib/HealthPage.php +msgid "The templates are not installed or not current, so cluster devices cannot be created. See the warnings above." +msgstr "القوالب غير مثبّتة أو غير محدّثة، لذا لا يمكن إنشاء أجهزة العناقيد. راجع التحذيرات أعلاه." + +#: lib/HealthPage.php +msgid "Install Templates" +msgstr "تثبيت القوالب" + +#: lib/HealthPage.php +msgid "Snapshot Sections" +msgstr "أقسام اللقطة" + +#: lib/HealthPage.php +msgid "Data Age" +msgstr "عمر البيانات" + +#: lib/HealthPage.php +msgid "Error" +msgstr "الخطأ" + +#: lib/HealthPage.php +msgid "Last Attempt" +msgstr "آخر محاولة" + +#: lib/HealthPage.php +msgid "Records" +msgstr "السجلات" + +#: lib/HealthPage.php +msgid "Section" +msgstr "القسم" + +#: lib/HealthPage.php +#, php-format +msgid "The last template install failed: %s" +msgstr "فشل آخر تثبيت للقوالب: %s" + +#: lib/HealthPage.php +msgid "Some HPC Scheduler templates are missing from Cacti. Install them below." +msgstr "بعض قوالب HPC Scheduler مفقودة من Cacti. ثبّتها أدناه." + +#: lib/HealthPage.php +#, php-format +msgid "%s, discovered" +msgstr "%s، مكتشف" + +#: lib/HealthWarnings.php +#, php-format +msgid "Maximum Answer Size is %d MiB, but a decoded answer of that size does not fit in the Collection Memory of %d MiB; the reader allows %d MiB. Raise Collection Memory or lower Maximum Answer Size in Settings." +msgstr "الحجم الأقصى للرد %d MiB، لكن الرد بعد فك ترميزه لا يتسع في ذاكرة الجمع البالغة %d MiB؛ يسمح القارئ بـ %d MiB. ارفع ذاكرة الجمع أو خفّض الحجم الأقصى للرد في الإعدادات." + +#: lib/HealthWarnings.php +#, php-format +msgid "Assigned to poller %d, a remote data collector. This release collects only on the main poller, so the cluster is not collected; remote collection is planned for phase 3. Assign it to the main poller." +msgstr "أُسند إلى المُستطلِع %d، وهو جامع بيانات بعيد. يجمع هذا الإصدار على المُستطلِع الرئيسي فقط، لذلك لا يُجمع هذا العنقود؛ الجمع البعيد مخطط للمرحلة 3. أسنده إلى المُستطلِع الرئيسي." + +#: lib/HealthWarnings.php +#, php-format +msgid "The collection interval is below the %d second floor." +msgstr "فاصل الجمع أقل من الحد الأدنى البالغ %d ثانية." + +#: lib/HealthWarnings.php +#, php-format +msgid "The collection interval of %d seconds is shorter than the poller interval of %d seconds; data is collected every %d seconds." +msgstr "فاصل الجمع البالغ %d ثانية أقصر من فاصل المُستطلِع البالغ %d ثانية؛ تُجمع البيانات كل %d ثانية." + +#: lib/HealthWarnings.php +msgid "slurmrestd is reached over plain HTTP on the loopback address; the token crosses the local network stack unencrypted." +msgstr "يُوصل إلى slurmrestd عبر HTTP غير مشفّر على عنوان الاسترجاع المحلي؛ يعبر الرمز مكدس الشبكة المحلي دون تشفير." + +#: lib/HealthWarnings.php +msgid "No reader run has finished for this cluster yet." +msgstr "لم يكتمل أي تشغيل للقارئ لهذا العنقود بعد." + +#: lib/HealthWarnings.php +#, php-format +msgid "Token file: %s." +msgstr "ملف الرمز: %s." + +#: lib/HealthWarnings.php +#, php-format +msgid "The token expired %s." +msgstr "انتهت صلاحية الرمز %s." + +#: lib/HealthWarnings.php +#, php-format +msgid "The token expires in %d minutes." +msgstr "تنتهي صلاحية الرمز خلال %d دقيقة." + +#: lib/HealthWarnings.php +#, php-format +msgid "The last run used its whole time budget of %d seconds; some sections were not collected." +msgstr "استنفد آخر تشغيل وقته المخصص البالغ %d ثانية؛ لم تُجمع بعض الأقسام." + +#: lib/HealthWarnings.php +#, php-format +msgid "The scheduler reports Slurm %s, which is not a supported release (%s)." +msgstr "يبلغ المُجدول عن Slurm %s، وهو إصدار غير مدعوم (%s)." + +#: lib/HealthWarnings.php +#, php-format +msgid "The scheduler reports Slurm %s, which does not ship the data parser %s chosen in Settings." +msgstr "يبلغ المُجدول عن Slurm %s، الذي لا يتضمن محلّل البيانات %s المحدد في الإعدادات." + +#: lib/HealthWarnings.php +msgid "Client commands ran without a memory limit; set the prlimit path in Settings." +msgstr "نُفّذت أوامر العميل دون حد للذاكرة؛ عيّن مسار prlimit في الإعدادات." + +#: lib/HealthWarnings.php +#, php-format +msgid "Last error: %s." +msgstr "آخر خطأ: %s." + +#: lib/HealthWarnings.php +#, php-format +msgid "Collection is paused for %d seconds after a rate limit." +msgstr "يتوقف الجمع مؤقتًا لمدة %d ثانية بعد بلوغ حد المعدل." + +#: lib/HealthWarnings.php +msgid "Data is stale; graphs and alerts read it as unknown." +msgstr "البيانات متقادمة؛ تقرؤها الرسوم والتنبيهات كقيم غير معروفة." + +#: lib/JobState.php lib/OverviewPage.php +msgid "Pending" +msgstr "قيد الانتظار" + +#: lib/JobState.php lib/OverviewPage.php lib/ReasonFamily.php +msgid "Held" +msgstr "معلّق" + +#: lib/JobState.php lib/OverviewPage.php +msgid "Running" +msgstr "قيد التشغيل" + +#: lib/JobState.php +msgid "Completing" +msgstr "قيد الإكمال" + +#: lib/JobState.php lib/NodeState.php lib/ReasonFamily.php +msgid "Other" +msgstr "آخر" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Idle" +msgstr "خامل" + +#: lib/NodeState.php +msgid "Allocated" +msgstr "مخصّص" + +#: lib/NodeState.php +msgid "Mixed" +msgstr "مختلط" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Drained" +msgstr "مُفرَّغ" + +#: lib/NodeState.php +msgid "Draining" +msgstr "قيد التفريغ" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Down" +msgstr "غير متصل" + +#: lib/NodeState.php +msgid "Maintenance" +msgstr "الصيانة" + +#: lib/NodeState.php +msgid "Reserved" +msgstr "محجوز" + +#: lib/NodeState.php +msgid "Powered down" +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 "HPC Scheduler Operations" +msgstr "عمليات HPC Scheduler" + +#: 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/OverviewPage.php lib/Pages.php setup.php +msgid "HPC Scheduler" +msgstr "HPC Scheduler" + +#: lib/OverviewPage.php +msgid "Collected" +msgstr "مجموع" + +#: lib/OverviewPage.php +msgid "Details" +msgstr "التفاصيل" + +#: lib/OverviewPage.php lib/Section.php +msgid "Nodes" +msgstr "العقد" + +#: lib/OverviewPage.php +msgid "No clusters are collected yet." +msgstr "لم تُجمع بيانات أي عنقود بعد." + +#: lib/OverviewPage.php +msgid "Pending reasons" +msgstr "أسباب الانتظار" + +#: lib/OverviewPage.php +msgid "Graphs" +msgstr "الرسوم" + +#: lib/OverviewPage.php +msgid "A dash means the plugin has no current data for that value: the section failed, is stale, or was never collected. Pending excludes held jobs. Drained counts every node with the drain flag, including nodes that are also down." +msgstr "تعني الشرطة أن الإضافة لا تملك بيانات حديثة للقيمة: فشل القسم أو تقادم أو لم يُجمع قط. تستثني المهام المنتظرة المهام المعلّقة. يشمل عدد العقد المفرّغة كل عقدة تحمل علامة drain، بما فيها العقد المتوقفة أيضًا." + +#: lib/OverviewPage.php +#, php-format +msgid "Pending Reasons: %s" +msgstr "أسباب الانتظار: %s" + +#: lib/OverviewPage.php +msgid "Family" +msgstr "الفئة" + +#: lib/OverviewPage.php lib/Section.php +msgid "Jobs" +msgstr "المهام" + +#: lib/OverviewPage.php lib/Section.php +msgid "Partitions" +msgstr "الأقسام" + +#: lib/OverviewPage.php +msgid "Reason" +msgstr "السبب" + +#: lib/OverviewPage.php +msgid "No pending jobs." +msgstr "لا توجد مهام منتظرة." + +#: lib/OverviewPage.php +#, php-format +msgid "Only the %d reasons with the most jobs are listed." +msgstr "لا تُعرض إلا الأسباب ذات أكبر عدد من المهام، وعددها %d." + +#: lib/OverviewPage.php +msgid "Each job counts under the last reason the scheduler examined for it, which need not be the only thing holding it back. A job in several partitions counts once here and once in each partition it names. Held jobs are listed with their hold reason." +msgstr "تُحسب كل مهمة تحت آخر سبب فحصه المُجدول لها، وليس بالضرورة السبب الوحيد الذي يمنعها. تُحسب المهمة الموجودة في عدة أقسام مرة هنا ومرة في كل قسم تسميه. تُعرض المهام المعلّقة مع سبب تعليقها." + +#: lib/OverviewPage.php +msgid "Nodes in Unknown States" +msgstr "عقد بحالات غير معروفة" + +#: lib/OverviewPage.php +msgid "Names" +msgstr "الأسماء" + +#: lib/OverviewPage.php +msgid "Slurm State" +msgstr "حالة Slurm" + +#: lib/OverviewPage.php +msgid "None. Every node maps to a known state." +msgstr "لا توجد. تقابل كل عقدة حالة معروفة." + +#: lib/OverviewPage.php +msgid "No jobs snapshot has been collected yet." +msgstr "لم تُجمع لقطة للمهام بعد." + +#: lib/OverviewPage.php +msgid "No nodes snapshot has been collected yet, so the node states are unknown." +msgstr "لم تُجمع لقطة للعقد بعد، لذا حالات العقد غير معروفة." + +#: lib/OverviewPage.php +#, php-format +msgid "Jobs snapshot taken %s (%s), current." +msgstr "أُخذت لقطة المهام %s (%s)، وهي حديثة." + +#: lib/OverviewPage.php +#, php-format +msgid "Nodes snapshot taken %s (%s), current." +msgstr "أُخذت لقطة العقد %s (%s)، وهي حديثة." + +#: lib/OverviewPage.php +#, php-format +msgid "Jobs snapshot taken %s (%s), not current: it is stale or the last collection failed, and the counts below are the last ones collected." +msgstr "أُخذت لقطة المهام %s (%s)، وهي غير حديثة: تقادمت أو فشل آخر جمع، والأعداد أدناه هي آخر ما جُمع." + +#: lib/OverviewPage.php +#, php-format +msgid "Nodes snapshot taken %s (%s), not current: it is stale or the last collection failed, and the nodes below are the last ones collected." +msgstr "أُخذت لقطة العقد %s (%s)، وهي غير حديثة: تقادمت أو فشل آخر جمع، والعقد أدناه هي آخر ما جُمع." + +#: lib/Pages.php +msgid "HPC Scheduler Operator" +msgstr "مشغّل HPC Scheduler" + +#: lib/Pages.php +msgid "HPC Scheduler View" +msgstr "عرض HPC Scheduler" + +#: lib/Pages.php +msgid "HPC Scheduler Admin" +msgstr "إدارة HPC Scheduler" + +#: lib/Pages.php +msgid "HPC Scheduler Health" +msgstr "حالة HPC Scheduler الصحية" + +#: lib/ReasonFamily.php +msgid "Priority" +msgstr "الأولوية" + +#: lib/ReasonFamily.php +msgid "Resources" +msgstr "الموارد" + +#: lib/ReasonFamily.php +msgid "Dependency" +msgstr "الاعتماد" + +#: lib/ReasonFamily.php +msgid "Begin time" +msgstr "وقت البدء" + +#: lib/ReasonFamily.php +msgid "Reservation" +msgstr "الحجز" + +#: lib/ReasonFamily.php +msgid "Association limits" +msgstr "حدود الارتباط" + +#: lib/ReasonFamily.php +msgid "QOS limits" +msgstr "حدود QOS" + +#: lib/ReasonFamily.php +msgid "Partition limits" +msgstr "حدود القسم" + +#: lib/ReasonFamily.php +msgid "Node availability" +msgstr "توافر العقد" + +#: lib/Section.php +msgid "Reservations" +msgstr "الحجوزات" + +#: lib/Section.php +msgid "Fair-share" +msgstr "الحصة العادلة" + +#: lib/Settings.php +msgid "Slurm Client Commands" +msgstr "أوامر عميل Slurm" + +#: lib/Settings.php +msgid "Data Parser" +msgstr "محلّل البيانات" + +#: lib/Settings.php +msgid "Slurm data parser for the client commands. Choose one that the release of every cluster read through client commands ships: v0.0.43 is in 25.05, 25.11, and 26.05 and is removed in 27.05; v0.0.44 needs 25.11 or later; v0.0.45 needs 26.05 or later. The health page warns when a cluster reports a release without it. Clusters read through slurmrestd ignore this setting: they use the newest of these the daemon serves, and the health page shows which." +msgstr "محلّل بيانات Slurm لأوامر العميل. اختر محلّلًا يتضمنه إصدار كل عنقود يُقرأ بأوامر العميل: يتوفر v0.0.43 في 25.05 و25.11 و26.05 ويُزال في 27.05؛ يتطلب v0.0.44 الإصدار 25.11 أو أحدث؛ ويتطلب v0.0.45 الإصدار 26.05 أو أحدث. تحذّر صفحة الحالة الصحية إذا أبلغ عنقود عن إصدار لا يتضمنه. تتجاهل العناقيد المقروءة عبر slurmrestd هذا الإعداد، وتستخدم أحدث هذه المحلّلات الذي توفره الخدمة، وتعرض صفحة الحالة الصحية أيّها يُستخدم." + +#: lib/Settings.php +msgid "Absolute path to squeue on each poller that reads a cluster through client commands. The plugin runs it only as squeue --all --json with the data parser above." +msgstr "المسار المطلق لـ squeue على كل مُستطلِع يقرأ عنقودًا بأوامر العميل. لا تشغّله الإضافة إلا بصيغة squeue --all --json مع محلّل البيانات أعلاه." + +#: lib/Settings.php +msgid "squeue" +msgstr "squeue" + +#: lib/Settings.php +msgid "Absolute path to scontrol. The plugin runs only scontrol --json show node, show partition, and show reservation; never update, reconfigure, or token." +msgstr "المسار المطلق لـ scontrol. لا تشغّل الإضافة إلا scontrol --json show node وshow partition وshow reservation؛ ولا تشغّل update أو reconfigure أو token مطلقًا." + +#: lib/Settings.php +msgid "scontrol" +msgstr "scontrol" + +#: lib/Settings.php +msgid "Absolute path to sshare, used only for clusters that collect fair-share." +msgstr "المسار المطلق لـ sshare، ويُستخدم فقط للعناقيد التي تجمع الحصة العادلة." + +#: lib/Settings.php +msgid "sshare" +msgstr "sshare" + +#: lib/Settings.php +msgid "Limits" +msgstr "الحدود" + +#: lib/Settings.php +msgid "Call Timeout" +msgstr "مهلة الاستدعاء" + +#: lib/Settings.php +msgid "Seconds one scheduler call may take before it is stopped and its section recorded as failed. A call never runs past the reader time budget either." +msgstr "عدد الثواني المسموح بها لاستدعاء المُجدول قبل إيقافه وتسجيل فشل قسمه. ولا يتجاوز الاستدعاء الوقت المخصص للقارئ أيضًا." + +#: lib/Settings.php +msgid "Maximum Answer Size" +msgstr "الحجم الأقصى للرد" + +#: lib/Settings.php +msgid "MiB one scheduler call may return. A larger answer is discarded and its section recorded as failed. Decoding needs about 12 times the answer size, so the reader uses at most (Collection Memory - 64) / 12 MiB and the health page warns when this value is larger." +msgstr "حجم الرد المسموح لكل استدعاء بوحدة MiB. يُهمَل الرد الأكبر ويُسجّل فشل قسمه. يتطلب فك الترميز نحو 12 ضعف حجم الرد، لذا يسمح القارئ بحد أقصى (ذاكرة الجمع - 64) / 12 MiB، وتحذّر صفحة الحالة الصحية عند تجاوز هذه القيمة." + +#: lib/Settings.php +msgid "Collection Memory" +msgstr "ذاكرة الجمع" + +#: lib/Settings.php +msgid "MiB of PHP memory each collection run raises its limit to (it never lowers one). The default of 1024 fits answers up to 80 MiB." +msgstr "عدد MiB الذي ترفع إليه كل عملية جمع حد ذاكرة PHP (ولا تخفضه أبدًا). تستوعب القيمة الافتراضية 1024 ردودًا حتى 80 MiB." + +#: lib/Settings.php +msgid "Absolute path to prlimit (util-linux), used to cap the address space of each client command. Leave empty to run commands without a memory limit; the health page then warns." +msgstr "المسار المطلق لـ prlimit (util-linux)، ويُستخدم لتقييد فضاء عناوين كل أمر عميل. اتركه فارغًا لتشغيل الأوامر دون حد للذاكرة؛ عندها تحذّر صفحة الحالة الصحية." + +#: lib/Settings.php +msgid "prlimit" +msgstr "prlimit" + +#: lib/Settings.php +msgid "Command Memory Limit" +msgstr "حد ذاكرة الأمر" + +#: lib/Settings.php +msgid "MiB of address space each client command may use, through prlimit." +msgstr "فضاء العناوين بوحدة MiB المسموح به لكل أمر عميل عبر prlimit." + +#: lib/Settings.php +msgid "slurmrestd Credentials" +msgstr "بيانات اعتماد slurmrestd" + +#: lib/Settings.php +msgid "Token File Directories" +msgstr "أدلة ملفات الرموز" + +#: lib/Settings.php +msgid "Absolute directories on the pollers that may hold slurmrestd token files, separated by commas or spaces. A cluster can name only a token file inside one of them, owned by the poller user and reached without a symbolic link. Keep each directory writable only by root and the poller user. Empty means no cluster can use slurmrestd." +msgstr "الأدلة المطلقة على المُستطلِعات المسموح لها باحتواء ملفات رموز slurmrestd، مفصولة بفواصل أو مسافات. لا يجوز للعنقود تحديد إلا ملف رمز داخل أحدها، يملكه مستخدم المُستطلِع ويُوصل إليه دون رابط رمزي. اجعل الكتابة إلى كل دليل مقتصرة على root ومستخدم المُستطلِع. يعني الفراغ أن أي عنقود لا يمكنه استخدام slurmrestd." + +#: lib/Settings.php +msgid "slurmrestd Hosts" +msgstr "مضيفو slurmrestd" + +#: lib/Settings.php +msgid "Optional. The slurmrestd hosts a cluster may name, as host or host:port, separated by commas or spaces. An entry without a port allows any port on that host. Empty allows any host." +msgstr "اختياري. مضيفو slurmrestd الذين يجوز للعنقود تسميتهم، بصيغة host أو host:port، مفصولين بفواصل أو مسافات. يسمح الإدخال دون منفذ بأي منفذ على ذلك المضيف. يسمح الفراغ بأي مضيف." + +#: lib/Settings.php +msgid "Seconds before a token expires when the health page starts to warn, if the token carries an expiry time." +msgstr "عدد الثواني قبل انتهاء صلاحية الرمز التي تبدأ عندها صفحة الحالة الصحية التحذير، إذا كان الرمز يتضمن وقت انتهاء." + +#: lib/Settings.php +msgid "Token Expiry Warning" +msgstr "تحذير انتهاء صلاحية الرمز" + +#: 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 clusters and snapshots. Clear it to have the uninstall drop them; export the clusters first from HPC Clusters. The plugin creates no Cacti devices or Maint schedules in this release, and the scheduler is never contacted either way." +msgstr "عند التحديد، يحتفظ إلغاء التثبيت بالعناقيد واللقطات. ألغِ التحديد لحذفها؛ صدّر العناقيد أولًا من عناقيد HPC. لا تنشئ الإضافة أجهزة Cacti أو جداول Maint في هذا الإصدار، ولا يُتصل بالمُجدول في الحالتين." + +#: lib/TemplateInstaller.php +#, php-format +msgid "The data query file %s is not installed in Cacti's resource/script_server directory." +msgstr "ملف استعلام البيانات %s غير مثبّت في دليل resource/script_server في Cacti." + +#: lib/TemplateInstaller.php +#, php-format +msgid "The data query file %s in Cacti's resource/script_server directory differs from the one the plugin ships." +msgstr "يختلف ملف استعلام البيانات %s في دليل resource/script_server في Cacti عن الملف الذي توفره الإضافة." + +#: lib/TokenState.php +msgid "readable only by the poller user" +msgstr "لا يقرؤه إلا مستخدم المُستطلِع" + +#: lib/TokenState.php +msgid "readable by the file group; restrict it to the poller user (chmod 600)" +msgstr "تقرؤه مجموعة الملف؛ احصر الوصول في مستخدم المُستطلِع (chmod 600)" + +#: lib/TokenState.php +msgid "readable by every user on the poller; restrict it to the poller user (chmod 600)" +msgstr "يقرؤه كل مستخدم على المُستطلِع؛ احصر الوصول في مستخدم المُستطلِع (chmod 600)" + +#: lib/TokenState.php +msgid "refused: owned by a user other than the poller user (chown it to the poller user)" +msgstr "مرفوض: يملكه مستخدم غير مستخدم المُستطلِع (غيّر الملكية إليه باستخدام chown)" + +#: lib/TokenState.php +msgid "missing or not readable by the poller user" +msgstr "مفقود أو لا يستطيع مستخدم المُستطلِع قراءته" + +#: lib/TokenState.php +msgid "refused: outside the token file directories set in Settings, reached through a symbolic link, not a regular file, writable by others, or too large; the log names the reason" +msgstr "مرفوض: خارج أدلة ملفات الرموز المحددة في الإعدادات، أو يُوصل إليه عبر رابط رمزي، أو ليس ملفًا عاديًا، أو قابل للكتابة من الآخرين، أو كبير جدًا؛ يذكر السجل السبب" + +#: lib/TokenState.php +msgid "empty" +msgstr "فارغ" + +#: lib/Transport.php +msgid "Slurm client commands" +msgstr "أوامر عميل Slurm" + +#: lib/Transport.php +msgid "slurmrestd" +msgstr "slurmrestd" + +#: setup.php +#, php-format +msgid "The HPC Scheduler plugin requires PHP %s or later. This server runs PHP %s, so the plugin was not installed or enabled." +msgstr "تتطلب إضافة HPC Scheduler الإصدار PHP %s أو أحدث. يشغّل هذا الخادم PHP %s، لذا لم تُثبَّت الإضافة أو تُفعَّل." + +#: setup.php +msgid "The HPC Scheduler plugin is not enabled." +msgstr "إضافة HPC Scheduler غير مفعّلة." + +#: setup.php +#, php-format +msgid "The HPC Scheduler plugin requires PHP %s or later." +msgstr "تتطلب إضافة HPC Scheduler الإصدار PHP %s أو أحدث." + +#: setup.php +msgid "Management" +msgstr "الإدارة" diff --git a/locales/po/cacti.pot b/locales/po/cacti.pot index 34b9418..b4f3229 100644 --- a/locales/po/cacti.pot +++ b/locales/po/cacti.pot @@ -77,6 +77,18 @@ msgstr "" msgid "The templates were not installed: %s" msgstr "" +#: hpcsched_operator.php +msgid "Monitoring view" +msgstr "" + +#: hpcsched_operator.php +msgid "Observations could not be read. Ask an administrator to check the plugin log." +msgstr "" + +#: include/operator.php +msgid "Inspect pending reason families and snapshot freshness on the overview. Escalate credentials, cluster mappings and maintenance policy to an administrator." +msgstr "" + #: lib/ClusterInput.php msgid "Name: use 1 to 64 letters, digits, dots, dashes, or underscores, starting with a letter or digit." msgstr "" @@ -127,7 +139,7 @@ msgstr "" msgid "HPC Clusters" msgstr "" -#: lib/ClustersPage.php +#: lib/ClustersPage.php lib/OperatorPage.php msgid "Actions" msgstr "" @@ -151,7 +163,7 @@ msgstr "" msgid "Sections" msgstr "" -#: lib/ClustersPage.php lib/HealthPage.php +#: lib/ClustersPage.php lib/HealthPage.php lib/OperatorPage.php msgid "State" msgstr "" @@ -387,7 +399,7 @@ msgstr "" msgid "the reader ran out of memory; lower Maximum Answer Size or raise Collection Memory in Settings" msgstr "" -#: lib/Format.php lib/OverviewPage.php +#: lib/Format.php lib/OperatorPage.php lib/OverviewPage.php msgid "Never" msgstr "" @@ -669,6 +681,42 @@ msgstr "" msgid "Powered down" 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 "HPC Scheduler 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/OverviewPage.php lib/Pages.php setup.php msgid "HPC Scheduler" msgstr "" @@ -779,6 +827,10 @@ msgstr "" msgid "Nodes snapshot taken %s (%s), not current: it is stale or the last collection failed, and the nodes below are the last ones collected." msgstr "" +#: lib/Pages.php +msgid "HPC Scheduler Operator" +msgstr "" + #: lib/Pages.php msgid "HPC Scheduler View" msgstr "" diff --git a/locales/po/es-419.po b/locales/po/es-419.po new file mode 100644 index 0000000..d889b8b --- /dev/null +++ b/locales/po/es-419.po @@ -0,0 +1,1070 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# +msgid "" +msgstr "" +"Project-Id-Version: hpcsched 0.1.0-dev\n" +"Report-Msgid-Bugs-To: https://github.com/somethingwithproof/plugin_hpcsched/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" + +#: hpcsched_clusters.php +msgid "You do not have permission for the device of that cluster." +msgstr "No tiene permiso para acceder al dispositivo de ese clúster." + +#: hpcsched_clusters.php +msgid "Name: another cluster already uses this name." +msgstr "Nombre: otro clúster ya utiliza este nombre." + +#: hpcsched_clusters.php +msgid "The cluster was not saved: it was changed by someone else since the form was opened, or the write failed. Open it again and repeat the change." +msgstr "No se ha guardado el clúster: alguien lo modificó después de abrir el formulario o falló la escritura. Ábralo de nuevo y repita el cambio." + +#: hpcsched_clusters.php +msgid "The cluster was saved." +msgstr "Se ha guardado el clúster." + +#: hpcsched_clusters.php +msgid "The cluster and its cached snapshot were deleted. Its device and graphs were kept. The scheduler was not contacted." +msgstr "Se han eliminado el clúster y su instantánea en caché. Se han conservado su dispositivo y sus gráficos. No se contactó con el planificador." + +#: hpcsched_clusters.php +msgid "The device and its graphs were created." +msgstr "Se han creado el dispositivo y sus gráficos." + +#: hpcsched_clusters.php +msgid "The device was not created: the cluster already has a device, it was changed by someone else since the page was opened, or Cacti refused it. See the Cacti log." +msgstr "No se ha creado el dispositivo: el clúster ya tiene uno, alguien lo modificó después de abrir la página o Cacti lo rechazó. Consulte el registro de Cacti." + +#: hpcsched_clusters.php +msgid "The cluster was mapped to the device." +msgstr "Se ha asociado el clúster al dispositivo." + +#: hpcsched_clusters.php +msgid "The cluster was not mapped: the device does not exist, is not allowed to you, already carries another cluster, or the cluster was changed by someone else since the page was opened." +msgstr "No se ha asociado el clúster: el dispositivo no existe, no está autorizado, ya contiene otro clúster o alguien modificó el clúster después de abrir la página." + +#: hpcsched_clusters.php +msgid "Missing graphs were added." +msgstr "Se han añadido los gráficos que faltaban." + +#: hpcsched_clusters.php +msgid "The cluster was not unmapped: it was changed by someone else since the page was opened." +msgstr "No se ha desvinculado el clúster: alguien lo modificó después de abrir la página." + +#: hpcsched_clusters.php +msgid "The cluster was unmapped. The device and its graphs were kept." +msgstr "Se ha desvinculado el clúster. Se han conservado el dispositivo y sus gráficos." + +#: hpcsched_clusters.php +msgid "The partitions were reindexed from the snapshot." +msgstr "Se han reindexado las particiones a partir de la instantánea." + +#: hpcsched_health.php +msgid "The HPC Scheduler templates are installed." +msgstr "Las plantillas de HPC Scheduler están instaladas." + +#: hpcsched_health.php +#, php-format +msgid "The templates were not installed: %s" +msgstr "No se han instalado las plantillas: %s" + +#: hpcsched_operator.php +msgid "Monitoring view" +msgstr "Vista de supervisión" + +#: hpcsched_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 pending reason families and snapshot freshness on the overview. Escalate credentials, cluster mappings and maintenance policy to an administrator." +msgstr "Revise las familias de motivos de espera y la vigencia de las instantáneas en el resumen. Solicite a un administrador los cambios de credenciales, asociaciones de clústeres y política de mantenimiento." + +#: lib/ClusterInput.php +msgid "Name: use 1 to 64 letters, digits, dots, dashes, or underscores, starting with a letter or digit." +msgstr "Nombre: utilice entre 1 y 64 letras, dígitos, puntos, guiones o guiones bajos, comenzando por una letra o un dígito." + +#: lib/ClusterInput.php +msgid "Poller: choose one of the listed pollers." +msgstr "Sondeador: elija uno de los sondeadores de la lista." + +#: lib/ClusterInput.php +#, php-format +msgid "Collection Interval: enter whole seconds from %d to %d." +msgstr "Intervalo de recopilación: introduzca un número entero de segundos entre %d y %d." + +#: lib/ClusterInput.php +msgid "Transport: choose one of the listed transports." +msgstr "Transporte: elija uno de los transportes de la lista." + +#: lib/ClusterInput.php +msgid "slurm.conf: enter an absolute path, or leave it empty to use the poller default." +msgstr "slurm.conf: introduzca una ruta absoluta o déjelo vacío para usar el valor predeterminado del sondeador." + +#: lib/ClusterInput.php +msgid "slurmrestd URL: this host and port are not on the slurmrestd host list in Settings." +msgstr "URL de slurmrestd: este host y puerto no están en la lista de hosts slurmrestd de Ajustes." + +#: lib/ClusterInput.php +msgid "slurmrestd URL: enter an https:// URL without user name, query, or fragment; plain http:// is accepted only for a loopback address." +msgstr "URL de slurmrestd: introduzca una URL https:// sin nombre de usuario, consulta ni fragmento; http:// sin cifrar solo se admite para una dirección de bucle local." + +#: lib/ClusterInput.php +msgid "slurmrestd User: use at most 64 letters, digits, dots, dashes, or underscores, or leave it empty for a user token." +msgstr "Usuario de slurmrestd: use como máximo 64 letras, dígitos, puntos, guiones o guiones bajos, o déjelo vacío para un token de usuario." + +#: lib/ClusterInput.php +msgid "Token File: enter the absolute path of the token file on the poller. The token itself is never entered here." +msgstr "Archivo de token: introduzca su ruta absoluta en el sondeador. El token nunca se introduce aquí." + +#: lib/ClusterInput.php +msgid "Token File: no token file directories are set yet. Ask a Cacti administrator to set them under Settings, HPC Scheduler." +msgstr "Archivo de token: todavía no hay directorios de tokens configurados. Pida a un administrador de Cacti que los configure en Ajustes, HPC Scheduler." + +#: lib/ClusterInput.php +#, php-format +msgid "Token File: the file must be inside one of the token file directories set in Settings (%s)." +msgstr "Archivo de token: debe estar dentro de uno de los directorios configurados en Ajustes (%s)." + +#: lib/ClustersPage.php lib/Pages.php +msgid "HPC Clusters" +msgstr "Clústeres HPC" + +#: lib/ClustersPage.php lib/OperatorPage.php +msgid "Actions" +msgstr "Acciones" + +#: lib/ClustersPage.php +msgid "Device" +msgstr "Dispositivo" + +#: lib/ClustersPage.php +msgid "Interval" +msgstr "Intervalo" + +#: lib/ClustersPage.php +msgid "Name" +msgstr "Nombre" + +#: lib/ClustersPage.php +msgid "Poller" +msgstr "Sondeador" + +#: lib/ClustersPage.php +msgid "Sections" +msgstr "Secciones" + +#: lib/ClustersPage.php lib/HealthPage.php lib/OperatorPage.php +msgid "State" +msgstr "Estado" + +#: lib/ClustersPage.php lib/HealthPage.php +msgid "Transport" +msgstr "Transporte" + +#: lib/ClustersPage.php lib/HealthPage.php +msgid "No clusters configured yet." +msgstr "Todavía no hay clústeres configurados." + +#: lib/ClustersPage.php +msgid "Disable" +msgstr "Deshabilitar" + +#: lib/ClustersPage.php +msgid "Enable" +msgstr "Habilitar" + +#: lib/ClustersPage.php +#, php-format +msgid "Deleted poller %d" +msgstr "Sondeador eliminado %d" + +#: lib/ClustersPage.php +#, php-format +msgid "%d seconds" +msgstr "%d segundos" + +#: lib/ClustersPage.php +msgid "None" +msgstr "Ninguno" + +#: lib/ClustersPage.php +msgid "Delete" +msgstr "Eliminar" + +#: lib/ClustersPage.php +msgid "Export" +msgstr "Exportar" + +#: lib/ClustersPage.php +msgid "Download the cluster configuration as JSON before an uninstall that drops the plugin tables. It holds token file paths, never a token." +msgstr "Antes de desinstalar y eliminar las tablas del complemento, descargue la configuración de los clústeres en JSON. Contiene rutas de archivos de tokens, nunca tokens." + +#: lib/ClustersPage.php +#, php-format +msgid "Cluster: %s" +msgstr "Clúster: %s" + +#: lib/ClustersPage.php +msgid "New Cluster" +msgstr "Nuevo clúster" + +#: lib/ClustersPage.php +msgid "Collection Interval (seconds)" +msgstr "Intervalo de recopilación (segundos)" + +#: lib/ClustersPage.php +msgid "Enabled" +msgstr "Habilitado" + +#: lib/ClustersPage.php +msgid "Collect Reservations" +msgstr "Recopilar reservas" + +#: lib/ClustersPage.php +msgid "Collect Fair-share (accounts only)" +msgstr "Recopilar reparto equitativo (solo cuentas)" + +#: lib/ClustersPage.php +msgid "slurm.conf Path (optional)" +msgstr "Ruta de slurm.conf (opcional)" + +#: lib/ClustersPage.php +msgid "slurmrestd URL" +msgstr "URL de slurmrestd" + +#: lib/ClustersPage.php +msgid "slurmrestd User (optional)" +msgstr "Usuario de slurmrestd (opcional)" + +#: lib/ClustersPage.php +msgid "Token File on the Poller" +msgstr "Archivo de token en el sondeador" + +#: lib/ClustersPage.php +msgid "Client commands use the binaries set under Settings > HPC Scheduler and the poller user's own Slurm authentication; the optional slurm.conf path selects a cluster. slurmrestd fields are used only with that transport. The token file must be readable by the poller user only; the plugin reads it at each run and never stores the token." +msgstr "Los comandos cliente utilizan los binarios definidos en Ajustes > HPC Scheduler y la autenticación Slurm del usuario del sondeador; la ruta opcional de slurm.conf selecciona un clúster. Los campos slurmrestd solo se usan con ese transporte. Solo el usuario del sondeador debe poder leer el archivo de token; el complemento lo lee en cada ejecución y nunca almacena el token." + +#: lib/ClustersPage.php +msgid "Save" +msgstr "Guardar" + +#: lib/ClustersPage.php +#, php-format +msgid "Device for Cluster: %s" +msgstr "Dispositivo del clúster: %s" + +#: lib/ClustersPage.php +#, php-format +msgid "Mapped to device %s (id %d). Its graphs follow Cacti's device and graph permissions." +msgstr "Asociado al dispositivo %s (ID %d). Sus gráficos respetan los permisos de dispositivos y gráficos de Cacti." + +#: lib/ClustersPage.php +msgid "Adding the missing graphs adds:" +msgstr "Al añadir los gráficos que faltan se añade:" + +#: lib/ClustersPage.php +msgid "Add Missing Graphs" +msgstr "Añadir gráficos que faltan" + +#: lib/ClustersPage.php +msgid "Reindex Partitions" +msgstr "Reindexar particiones" + +#: lib/ClustersPage.php +msgid "Unmap" +msgstr "Desvincular" + +#: lib/ClustersPage.php +msgid "Unmapping keeps the device, its graphs, and their history." +msgstr "Al desvincular se conservan el dispositivo, sus gráficos y su historial." + +#: lib/ClustersPage.php +#, php-format +msgid "The cluster is still mapped to device %d, which no longer exists. Creating or mapping a device replaces that mapping." +msgstr "El clúster sigue asociado al dispositivo %d, que ya no existe. Crear o asociar un dispositivo sustituye esa asociación." + +#: lib/ClustersPage.php +msgid "Creating a device adds:" +msgstr "Al crear un dispositivo se añade:" + +#: lib/ClustersPage.php +msgid "Without partition graphs, only the cluster graphs are created, and the data sources and calls for the partitions above are left out." +msgstr "Sin gráficos de particiones solo se crean los gráficos del clúster, y se omiten las fuentes de datos y llamadas de las particiones anteriores." + +#: lib/ClustersPage.php +msgid "Also create the partition graphs" +msgstr "Crear también los gráficos de las particiones" + +#: lib/ClustersPage.php +msgid "Create Device" +msgstr "Crear dispositivo" + +#: lib/ClustersPage.php +msgid "Or map an existing device" +msgstr "O asociar un dispositivo existente" + +#: lib/ClustersPage.php +msgid "Map Device" +msgstr "Asociar dispositivo" + +#: lib/DeviceProvisioner.php +msgid "The HPC Scheduler templates are not installed. Install them from the health page." +msgstr "Las plantillas de HPC Scheduler no están instaladas. Instálelas desde la página de estado." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "A device \"%s\" from the %s device template, polled by poller %d, with availability checks off." +msgstr "Un dispositivo «%s» de la plantilla %s, sondeado por el sondeador %d, con las comprobaciones de disponibilidad desactivadas." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "The data query \"%s\", indexing the %d partitions known now." +msgstr "La consulta de datos «%s», que indexa las %d particiones conocidas actualmente." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "%d cluster graphs, each with its own \"%s\" data source." +msgstr "%d gráficos del clúster, cada uno con su propia fuente de datos «%s»." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "%d partition graphs, %d for each partition, each with its own data source." +msgstr "%d gráficos de particiones, %d por partición, cada uno con su propia fuente de datos." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "In all: %d data sources and %d RRD files, and %d script server calls per poll. Partitions added later get graphs from the New Graphs page." +msgstr "En total: %d fuentes de datos y %d archivos RRD, y %d llamadas al servidor de scripts por sondeo. Las particiones añadidas después obtienen sus gráficos desde Nuevos gráficos." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "Created by the HPC Scheduler plugin for cluster %s. Its values come from the plugin snapshot; the host name is a reserved name that is never contacted." +msgstr "Creado por el complemento HPC Scheduler para el clúster %s. Sus valores proceden de la instantánea del complemento; el nombre de host está reservado y nunca se contacta con él." + +#: lib/ErrorClass.php +msgid "configuration: a path, URL, or setting is missing or not allowed" +msgstr "configuración: falta una ruta, URL o ajuste, o no está permitido" + +#: lib/ErrorClass.php +msgid "the scheduler could not be reached" +msgstr "no se pudo contactar con el planificador" + +#: lib/ErrorClass.php +msgid "the call took longer than allowed and was stopped" +msgstr "la llamada superó el tiempo permitido y se detuvo" + +#: lib/ErrorClass.php +msgid "the answer was larger than allowed and was discarded" +msgstr "la respuesta superó el tamaño permitido y se descartó" + +#: lib/ErrorClass.php +msgid "the answer could not be parsed with the pinned data parser" +msgstr "no se pudo interpretar la respuesta con el analizador de datos fijado" + +#: lib/ErrorClass.php +msgid "the scheduler refused the credential" +msgstr "el planificador rechazó la credencial" + +#: lib/ErrorClass.php +msgid "the scheduler account may not see this data (PrivateData or permissions)" +msgstr "la cuenta del planificador no puede ver estos datos (PrivateData o permisos)" + +#: lib/ErrorClass.php +msgid "the controller asked clients to back off (rate limit)" +msgstr "el controlador pidió a los clientes que esperasen (límite de frecuencia)" + +#: lib/ErrorClass.php +msgid "the server answered 304 to a request that was not conditional; previous data kept" +msgstr "el servidor respondió 304 a una petición no condicional; se conservaron los datos anteriores" + +#: lib/ErrorClass.php +msgid "the plugin refused a call outside its allowlist" +msgstr "el complemento rechazó una llamada fuera de su lista permitida" + +#: lib/ErrorClass.php +msgid "the call failed" +msgstr "la llamada falló" + +#: lib/ErrorClass.php +msgid "the reader ran out of memory; lower Maximum Answer Size or raise Collection Memory in Settings" +msgstr "el lector se quedó sin memoria; reduzca Tamaño máximo de respuesta o aumente Memoria de recopilación en Ajustes" + +#: lib/Format.php lib/OperatorPage.php lib/OverviewPage.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/Freshness.php +msgid "Current" +msgstr "Actual" + +#: lib/Freshness.php +msgid "Delayed" +msgstr "Retrasado" + +#: lib/Freshness.php +msgid "Stale" +msgstr "Obsoleto" + +#: lib/Freshness.php +msgid "Never collected" +msgstr "Nunca recopilado" + +#: lib/HealthPage.php +msgid "Clusters" +msgstr "Clústeres" + +#: lib/HealthPage.php +msgid "Calls" +msgstr "Llamadas" + +#: lib/HealthPage.php lib/OverviewPage.php +msgid "Cluster" +msgstr "Clúster" + +#: lib/HealthPage.php +msgid "Duration" +msgstr "Duración" + +#: lib/HealthPage.php lib/OverviewPage.php +msgid "Freshness" +msgstr "Vigencia" + +#: lib/HealthPage.php +msgid "Last Run" +msgstr "Última ejecución" + +#: lib/HealthPage.php +msgid "Last Success" +msgstr "Último éxito" + +#: lib/HealthPage.php +msgid "Outcome" +msgstr "Resultado" + +#: lib/HealthPage.php +msgid "Parser" +msgstr "Analizador" + +#: lib/HealthPage.php +msgid "Slurm" +msgstr "Slurm" + +#: lib/HealthPage.php +msgid "All clusters" +msgstr "Todos los clústeres" + +#: lib/HealthPage.php +msgid "Warnings" +msgstr "Advertencias" + +#: lib/HealthPage.php +msgid "Warning" +msgstr "Advertencia" + +#: lib/HealthPage.php +msgid "No warnings." +msgstr "No hay advertencias." + +#: lib/HealthPage.php +msgid "Templates" +msgstr "Plantillas" + +#: lib/HealthPage.php +msgid "The device, data, and graph templates and the partition data query are installed." +msgstr "Están instaladas las plantillas de dispositivos, datos y gráficos, así como la consulta de datos de particiones." + +#: lib/HealthPage.php +msgid "The templates are not installed or not current, so cluster devices cannot be created. See the warnings above." +msgstr "Las plantillas no están instaladas o no están actualizadas, por lo que no se pueden crear dispositivos de clúster. Consulte las advertencias anteriores." + +#: lib/HealthPage.php +msgid "Install Templates" +msgstr "Instalar plantillas" + +#: lib/HealthPage.php +msgid "Snapshot Sections" +msgstr "Secciones de la instantánea" + +#: lib/HealthPage.php +msgid "Data Age" +msgstr "Antigüedad de los datos" + +#: lib/HealthPage.php +msgid "Error" +msgstr "Error" + +#: lib/HealthPage.php +msgid "Last Attempt" +msgstr "Último intento" + +#: lib/HealthPage.php +msgid "Records" +msgstr "Registros" + +#: lib/HealthPage.php +msgid "Section" +msgstr "Sección" + +#: lib/HealthPage.php +#, php-format +msgid "The last template install failed: %s" +msgstr "La última instalación de plantillas falló: %s" + +#: lib/HealthPage.php +msgid "Some HPC Scheduler templates are missing from Cacti. Install them below." +msgstr "Faltan algunas plantillas de HPC Scheduler en Cacti. Instálelas a continuación." + +#: lib/HealthPage.php +#, php-format +msgid "%s, discovered" +msgstr "%s, descubierto" + +#: lib/HealthWarnings.php +#, php-format +msgid "Maximum Answer Size is %d MiB, but a decoded answer of that size does not fit in the Collection Memory of %d MiB; the reader allows %d MiB. Raise Collection Memory or lower Maximum Answer Size in Settings." +msgstr "El tamaño máximo de respuesta es %d MiB, pero una respuesta decodificada de ese tamaño no cabe en los %d MiB de memoria de recopilación; el lector admite %d MiB. Aumente la memoria o reduzca el tamaño máximo en Ajustes." + +#: lib/HealthWarnings.php +#, php-format +msgid "Assigned to poller %d, a remote data collector. This release collects only on the main poller, so the cluster is not collected; remote collection is planned for phase 3. Assign it to the main poller." +msgstr "Asignado al sondeador %d, un recolector remoto. Esta versión solo recopila en el principal, por lo que no se recopila este clúster; la recopilación remota está prevista para la fase 3. Asígnelo al sondeador principal." + +#: lib/HealthWarnings.php +#, php-format +msgid "The collection interval is below the %d second floor." +msgstr "El intervalo de recopilación es inferior al mínimo de %d segundos." + +#: lib/HealthWarnings.php +#, php-format +msgid "The collection interval of %d seconds is shorter than the poller interval of %d seconds; data is collected every %d seconds." +msgstr "El intervalo de recopilación de %d segundos es menor que el del sondeador, de %d segundos; los datos se recopilan cada %d segundos." + +#: lib/HealthWarnings.php +msgid "slurmrestd is reached over plain HTTP on the loopback address; the token crosses the local network stack unencrypted." +msgstr "Se accede a slurmrestd mediante HTTP sin cifrar en la dirección de bucle local; el token atraviesa la pila de red local sin cifrado." + +#: lib/HealthWarnings.php +msgid "No reader run has finished for this cluster yet." +msgstr "Todavía no ha finalizado ninguna ejecución del lector para este clúster." + +#: lib/HealthWarnings.php +#, php-format +msgid "Token file: %s." +msgstr "Archivo de token: %s." + +#: lib/HealthWarnings.php +#, php-format +msgid "The token expired %s." +msgstr "El token caducó %s." + +#: lib/HealthWarnings.php +#, php-format +msgid "The token expires in %d minutes." +msgstr "El token caduca en %d minutos." + +#: lib/HealthWarnings.php +#, php-format +msgid "The last run used its whole time budget of %d seconds; some sections were not collected." +msgstr "La última ejecución agotó su presupuesto de %d segundos; algunas secciones no se recopilaron." + +#: lib/HealthWarnings.php +#, php-format +msgid "The scheduler reports Slurm %s, which is not a supported release (%s)." +msgstr "El planificador informa de Slurm %s, que no es una versión admitida (%s)." + +#: lib/HealthWarnings.php +#, php-format +msgid "The scheduler reports Slurm %s, which does not ship the data parser %s chosen in Settings." +msgstr "El planificador informa de Slurm %s, que no incluye el analizador de datos %s seleccionado en Ajustes." + +#: lib/HealthWarnings.php +msgid "Client commands ran without a memory limit; set the prlimit path in Settings." +msgstr "Los comandos cliente se ejecutaron sin límite de memoria; configure la ruta de prlimit en Ajustes." + +#: lib/HealthWarnings.php +#, php-format +msgid "Last error: %s." +msgstr "Último error: %s." + +#: lib/HealthWarnings.php +#, php-format +msgid "Collection is paused for %d seconds after a rate limit." +msgstr "La recopilación se pausa durante %d segundos tras un límite de frecuencia." + +#: lib/HealthWarnings.php +msgid "Data is stale; graphs and alerts read it as unknown." +msgstr "Los datos están obsoletos; los gráficos y las alertas los leen como desconocidos." + +#: lib/JobState.php lib/OverviewPage.php +msgid "Pending" +msgstr "Pendiente" + +#: lib/JobState.php lib/OverviewPage.php lib/ReasonFamily.php +msgid "Held" +msgstr "Retenido" + +#: lib/JobState.php lib/OverviewPage.php +msgid "Running" +msgstr "En ejecución" + +#: lib/JobState.php +msgid "Completing" +msgstr "Finalizando" + +#: lib/JobState.php lib/NodeState.php lib/ReasonFamily.php +msgid "Other" +msgstr "Otro" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Idle" +msgstr "Inactivo" + +#: lib/NodeState.php +msgid "Allocated" +msgstr "Asignado" + +#: lib/NodeState.php +msgid "Mixed" +msgstr "Mixto" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Drained" +msgstr "Drenado" + +#: lib/NodeState.php +msgid "Draining" +msgstr "Drenando" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Down" +msgstr "Caído" + +#: lib/NodeState.php +msgid "Maintenance" +msgstr "Mantenimiento" + +#: lib/NodeState.php +msgid "Reserved" +msgstr "Reservado" + +#: lib/NodeState.php +msgid "Powered down" +msgstr "Apagado" + +#: 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 "HPC Scheduler Operations" +msgstr "Operaciones de HPC Scheduler" + +#: 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/OverviewPage.php lib/Pages.php setup.php +msgid "HPC Scheduler" +msgstr "HPC Scheduler" + +#: lib/OverviewPage.php +msgid "Collected" +msgstr "Recopilado" + +#: lib/OverviewPage.php +msgid "Details" +msgstr "Detalles" + +#: lib/OverviewPage.php lib/Section.php +msgid "Nodes" +msgstr "Nodos" + +#: lib/OverviewPage.php +msgid "No clusters are collected yet." +msgstr "Todavía no se recopila ningún clúster." + +#: lib/OverviewPage.php +msgid "Pending reasons" +msgstr "Motivos de espera" + +#: lib/OverviewPage.php +msgid "Graphs" +msgstr "Gráficos" + +#: lib/OverviewPage.php +msgid "A dash means the plugin has no current data for that value: the section failed, is stale, or was never collected. Pending excludes held jobs. Drained counts every node with the drain flag, including nodes that are also down." +msgstr "Un guion indica que no hay datos actuales para ese valor: la sección falló, está obsoleta o nunca se recopiló. Pendientes excluye los trabajos retenidos. Drenados cuenta todos los nodos con la marca drain, incluidos los que también están caídos." + +#: lib/OverviewPage.php +#, php-format +msgid "Pending Reasons: %s" +msgstr "Motivos de espera: %s" + +#: lib/OverviewPage.php +msgid "Family" +msgstr "Familia" + +#: lib/OverviewPage.php lib/Section.php +msgid "Jobs" +msgstr "Trabajos" + +#: lib/OverviewPage.php lib/Section.php +msgid "Partitions" +msgstr "Particiones" + +#: lib/OverviewPage.php +msgid "Reason" +msgstr "Motivo" + +#: lib/OverviewPage.php +msgid "No pending jobs." +msgstr "No hay trabajos pendientes." + +#: lib/OverviewPage.php +#, php-format +msgid "Only the %d reasons with the most jobs are listed." +msgstr "Solo se muestran los %d motivos con más trabajos." + +#: lib/OverviewPage.php +msgid "Each job counts under the last reason the scheduler examined for it, which need not be the only thing holding it back. A job in several partitions counts once here and once in each partition it names. Held jobs are listed with their hold reason." +msgstr "Cada trabajo se cuenta bajo el último motivo que examinó el planificador, que no tiene por qué ser el único que lo retiene. Un trabajo en varias particiones cuenta una vez aquí y una vez en cada partición que indique. Los trabajos retenidos se muestran con su motivo de retención." + +#: lib/OverviewPage.php +msgid "Nodes in Unknown States" +msgstr "Nodos en estados desconocidos" + +#: lib/OverviewPage.php +msgid "Names" +msgstr "Nombres" + +#: lib/OverviewPage.php +msgid "Slurm State" +msgstr "Estado de Slurm" + +#: lib/OverviewPage.php +msgid "None. Every node maps to a known state." +msgstr "Ninguno. Todos los nodos corresponden a un estado conocido." + +#: lib/OverviewPage.php +msgid "No jobs snapshot has been collected yet." +msgstr "Todavía no se ha recopilado ninguna instantánea de trabajos." + +#: lib/OverviewPage.php +msgid "No nodes snapshot has been collected yet, so the node states are unknown." +msgstr "Todavía no se ha recopilado ninguna instantánea de nodos, por lo que sus estados son desconocidos." + +#: lib/OverviewPage.php +#, php-format +msgid "Jobs snapshot taken %s (%s), current." +msgstr "Instantánea de trabajos tomada %s (%s), vigente." + +#: lib/OverviewPage.php +#, php-format +msgid "Nodes snapshot taken %s (%s), current." +msgstr "Instantánea de nodos tomada %s (%s), vigente." + +#: lib/OverviewPage.php +#, php-format +msgid "Jobs snapshot taken %s (%s), not current: it is stale or the last collection failed, and the counts below are the last ones collected." +msgstr "Instantánea de trabajos tomada %s (%s), no vigente: está obsoleta o falló la última recopilación; los recuentos siguientes son los últimos recopilados." + +#: lib/OverviewPage.php +#, php-format +msgid "Nodes snapshot taken %s (%s), not current: it is stale or the last collection failed, and the nodes below are the last ones collected." +msgstr "Instantánea de nodos tomada %s (%s), no vigente: está obsoleta o falló la última recopilación; los nodos siguientes son los últimos recopilados." + +#: lib/Pages.php +msgid "HPC Scheduler Operator" +msgstr "Operador de HPC Scheduler" + +#: lib/Pages.php +msgid "HPC Scheduler View" +msgstr "Vista de HPC Scheduler" + +#: lib/Pages.php +msgid "HPC Scheduler Admin" +msgstr "Administración de HPC Scheduler" + +#: lib/Pages.php +msgid "HPC Scheduler Health" +msgstr "Estado de HPC Scheduler" + +#: lib/ReasonFamily.php +msgid "Priority" +msgstr "Prioridad" + +#: lib/ReasonFamily.php +msgid "Resources" +msgstr "Recursos" + +#: lib/ReasonFamily.php +msgid "Dependency" +msgstr "Dependencia" + +#: lib/ReasonFamily.php +msgid "Begin time" +msgstr "Hora de inicio" + +#: lib/ReasonFamily.php +msgid "Reservation" +msgstr "Reserva" + +#: lib/ReasonFamily.php +msgid "Association limits" +msgstr "Límites de asociación" + +#: lib/ReasonFamily.php +msgid "QOS limits" +msgstr "Límites de QOS" + +#: lib/ReasonFamily.php +msgid "Partition limits" +msgstr "Límites de partición" + +#: lib/ReasonFamily.php +msgid "Node availability" +msgstr "Disponibilidad de nodos" + +#: lib/Section.php +msgid "Reservations" +msgstr "Reservas" + +#: lib/Section.php +msgid "Fair-share" +msgstr "Reparto equitativo" + +#: lib/Settings.php +msgid "Slurm Client Commands" +msgstr "Comandos cliente de Slurm" + +#: lib/Settings.php +msgid "Data Parser" +msgstr "Analizador de datos" + +#: lib/Settings.php +msgid "Slurm data parser for the client commands. Choose one that the release of every cluster read through client commands ships: v0.0.43 is in 25.05, 25.11, and 26.05 and is removed in 27.05; v0.0.44 needs 25.11 or later; v0.0.45 needs 26.05 or later. The health page warns when a cluster reports a release without it. Clusters read through slurmrestd ignore this setting: they use the newest of these the daemon serves, and the health page shows which." +msgstr "Analizador de datos Slurm para los comandos cliente. Elija uno incluido en la versión de todos los clústeres leídos por comandos: v0.0.43 está en 25.05, 25.11 y 26.05 y se elimina en 27.05; v0.0.44 requiere 25.11 o posterior; v0.0.45 requiere 26.05 o posterior. La página de estado avisa si un clúster informa de una versión que no lo incluye. Los clústeres leídos por slurmrestd ignoran este ajuste: usan el más reciente de estos que ofrezca el servicio, y la página de estado indica cuál." + +#: lib/Settings.php +msgid "Absolute path to squeue on each poller that reads a cluster through client commands. The plugin runs it only as squeue --all --json with the data parser above." +msgstr "Ruta absoluta de squeue en cada sondeador que lea un clúster mediante comandos cliente. El complemento solo lo ejecuta como squeue --all --json con el analizador anterior." + +#: lib/Settings.php +msgid "squeue" +msgstr "squeue" + +#: lib/Settings.php +msgid "Absolute path to scontrol. The plugin runs only scontrol --json show node, show partition, and show reservation; never update, reconfigure, or token." +msgstr "Ruta absoluta de scontrol. El complemento solo ejecuta scontrol --json show node, show partition y show reservation; nunca update, reconfigure ni token." + +#: lib/Settings.php +msgid "scontrol" +msgstr "scontrol" + +#: lib/Settings.php +msgid "Absolute path to sshare, used only for clusters that collect fair-share." +msgstr "Ruta absoluta de sshare; solo se utiliza en los clústeres que recopilan reparto equitativo." + +#: lib/Settings.php +msgid "sshare" +msgstr "sshare" + +#: lib/Settings.php +msgid "Limits" +msgstr "Límites" + +#: lib/Settings.php +msgid "Call Timeout" +msgstr "Tiempo de espera de la llamada" + +#: lib/Settings.php +msgid "Seconds one scheduler call may take before it is stopped and its section recorded as failed. A call never runs past the reader time budget either." +msgstr "Segundos permitidos para una llamada antes de detenerla y registrar su sección como fallida. Ninguna llamada supera tampoco el presupuesto de tiempo del lector." + +#: lib/Settings.php +msgid "Maximum Answer Size" +msgstr "Tamaño máximo de respuesta" + +#: lib/Settings.php +msgid "MiB one scheduler call may return. A larger answer is discarded and its section recorded as failed. Decoding needs about 12 times the answer size, so the reader uses at most (Collection Memory - 64) / 12 MiB and the health page warns when this value is larger." +msgstr "MiB que puede devolver una llamada. Las respuestas mayores se descartan y su sección se registra como fallida. Decodificar requiere unas 12 veces el tamaño de la respuesta, por lo que el lector admite como máximo (Memoria de recopilación - 64) / 12 MiB; la página de estado avisa si este valor es mayor." + +#: lib/Settings.php +msgid "Collection Memory" +msgstr "Memoria de recopilación" + +#: lib/Settings.php +msgid "MiB of PHP memory each collection run raises its limit to (it never lowers one). The default of 1024 fits answers up to 80 MiB." +msgstr "MiB a los que cada ejecución eleva el límite de memoria PHP (nunca lo reduce). El valor predeterminado, 1024, admite respuestas de hasta 80 MiB." + +#: lib/Settings.php +msgid "Absolute path to prlimit (util-linux), used to cap the address space of each client command. Leave empty to run commands without a memory limit; the health page then warns." +msgstr "Ruta absoluta de prlimit (util-linux), utilizado para limitar el espacio de direcciones de cada comando cliente. Déjela vacía para ejecutarlos sin límite de memoria; la página de estado lo advertirá." + +#: lib/Settings.php +msgid "prlimit" +msgstr "prlimit" + +#: lib/Settings.php +msgid "Command Memory Limit" +msgstr "Límite de memoria del comando" + +#: lib/Settings.php +msgid "MiB of address space each client command may use, through prlimit." +msgstr "MiB de espacio de direcciones que puede usar cada comando cliente mediante prlimit." + +#: lib/Settings.php +msgid "slurmrestd Credentials" +msgstr "Credenciales de slurmrestd" + +#: lib/Settings.php +msgid "Token File Directories" +msgstr "Directorios de archivos de tokens" + +#: lib/Settings.php +msgid "Absolute directories on the pollers that may hold slurmrestd token files, separated by commas or spaces. A cluster can name only a token file inside one of them, owned by the poller user and reached without a symbolic link. Keep each directory writable only by root and the poller user. Empty means no cluster can use slurmrestd." +msgstr "Directorios absolutos permitidos para archivos de tokens slurmrestd en los sondeadores, separados por comas o espacios. Un clúster solo puede indicar un archivo dentro de ellos, propiedad del usuario del sondeador y accesible sin enlaces simbólicos. Solo root y ese usuario deben poder escribir en cada directorio. Vacío impide usar slurmrestd a todos los clústeres." + +#: lib/Settings.php +msgid "slurmrestd Hosts" +msgstr "Hosts de slurmrestd" + +#: lib/Settings.php +msgid "Optional. The slurmrestd hosts a cluster may name, as host or host:port, separated by commas or spaces. An entry without a port allows any port on that host. Empty allows any host." +msgstr "Opcional. Hosts slurmrestd permitidos para los clústeres, como host o host:puerto, separados por comas o espacios. Una entrada sin puerto permite cualquier puerto de ese host. Vacío permite cualquier host." + +#: lib/Settings.php +msgid "Seconds before a token expires when the health page starts to warn, if the token carries an expiry time." +msgstr "Segundos antes de que caduque un token a partir de los que avisa la página de estado, si el token incluye una fecha de caducidad." + +#: lib/Settings.php +msgid "Token Expiry Warning" +msgstr "Aviso de caducidad del token" + +#: 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 clusters and snapshots. Clear it to have the uninstall drop them; export the clusters first from HPC Clusters. The plugin creates no Cacti devices or Maint schedules in this release, and the scheduler is never contacted either way." +msgstr "Si se marca, al desinstalar se conservan los clústeres y las instantáneas. Desmárquelo para eliminarlos; exporte antes los clústeres desde Clústeres HPC. En esta versión el complemento no crea dispositivos Cacti ni programaciones Maint, y en ningún caso contacta con el planificador." + +#: lib/TemplateInstaller.php +#, php-format +msgid "The data query file %s is not installed in Cacti's resource/script_server directory." +msgstr "El archivo de consulta de datos %s no está instalado en el directorio resource/script_server de Cacti." + +#: lib/TemplateInstaller.php +#, php-format +msgid "The data query file %s in Cacti's resource/script_server directory differs from the one the plugin ships." +msgstr "El archivo de consulta de datos %s del directorio resource/script_server de Cacti difiere del incluido en el complemento." + +#: lib/TokenState.php +msgid "readable only by the poller user" +msgstr "legible solo por el usuario del sondeador" + +#: lib/TokenState.php +msgid "readable by the file group; restrict it to the poller user (chmod 600)" +msgstr "legible por el grupo del archivo; restrínjalo al usuario del sondeador (chmod 600)" + +#: lib/TokenState.php +msgid "readable by every user on the poller; restrict it to the poller user (chmod 600)" +msgstr "legible por cualquier usuario del sondeador; restrínjalo al usuario del sondeador (chmod 600)" + +#: lib/TokenState.php +msgid "refused: owned by a user other than the poller user (chown it to the poller user)" +msgstr "rechazado: pertenece a otro usuario (cambie el propietario al usuario del sondeador con chown)" + +#: lib/TokenState.php +msgid "missing or not readable by the poller user" +msgstr "ausente o no legible por el usuario del sondeador" + +#: lib/TokenState.php +msgid "refused: outside the token file directories set in Settings, reached through a symbolic link, not a regular file, writable by others, or too large; the log names the reason" +msgstr "rechazado: está fuera de los directorios de tokens configurados, se accede mediante un enlace simbólico, no es un archivo normal, permite escritura a otros o es demasiado grande; el registro indica el motivo" + +#: lib/TokenState.php +msgid "empty" +msgstr "vacío" + +#: lib/Transport.php +msgid "Slurm client commands" +msgstr "Comandos cliente de Slurm" + +#: lib/Transport.php +msgid "slurmrestd" +msgstr "slurmrestd" + +#: setup.php +#, php-format +msgid "The HPC Scheduler plugin requires PHP %s or later. This server runs PHP %s, so the plugin was not installed or enabled." +msgstr "El complemento HPC Scheduler 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 HPC Scheduler plugin is not enabled." +msgstr "El complemento HPC Scheduler no está habilitado." + +#: setup.php +#, php-format +msgid "The HPC Scheduler plugin requires PHP %s or later." +msgstr "El complemento HPC Scheduler requiere PHP %s o posterior." + +#: setup.php +msgid "Management" +msgstr "Gestión" diff --git a/locales/po/es-ES.po b/locales/po/es-ES.po new file mode 100644 index 0000000..d7d9ef7 --- /dev/null +++ b/locales/po/es-ES.po @@ -0,0 +1,1070 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# +msgid "" +msgstr "" +"Project-Id-Version: hpcsched 0.1.0-dev\n" +"Report-Msgid-Bugs-To: https://github.com/somethingwithproof/plugin_hpcsched/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" + +#: hpcsched_clusters.php +msgid "You do not have permission for the device of that cluster." +msgstr "No tiene permiso para acceder al dispositivo de ese clúster." + +#: hpcsched_clusters.php +msgid "Name: another cluster already uses this name." +msgstr "Nombre: otro clúster ya utiliza este nombre." + +#: hpcsched_clusters.php +msgid "The cluster was not saved: it was changed by someone else since the form was opened, or the write failed. Open it again and repeat the change." +msgstr "No se ha guardado el clúster: alguien lo modificó después de abrir el formulario o falló la escritura. Ábralo de nuevo y repita el cambio." + +#: hpcsched_clusters.php +msgid "The cluster was saved." +msgstr "Se ha guardado el clúster." + +#: hpcsched_clusters.php +msgid "The cluster and its cached snapshot were deleted. Its device and graphs were kept. The scheduler was not contacted." +msgstr "Se han eliminado el clúster y su instantánea en caché. Se han conservado su dispositivo y sus gráficos. No se contactó con el planificador." + +#: hpcsched_clusters.php +msgid "The device and its graphs were created." +msgstr "Se han creado el dispositivo y sus gráficos." + +#: hpcsched_clusters.php +msgid "The device was not created: the cluster already has a device, it was changed by someone else since the page was opened, or Cacti refused it. See the Cacti log." +msgstr "No se ha creado el dispositivo: el clúster ya tiene uno, alguien lo modificó después de abrir la página o Cacti lo rechazó. Consulte el registro de Cacti." + +#: hpcsched_clusters.php +msgid "The cluster was mapped to the device." +msgstr "Se ha asociado el clúster al dispositivo." + +#: hpcsched_clusters.php +msgid "The cluster was not mapped: the device does not exist, is not allowed to you, already carries another cluster, or the cluster was changed by someone else since the page was opened." +msgstr "No se ha asociado el clúster: el dispositivo no existe, no está autorizado, ya contiene otro clúster o alguien modificó el clúster después de abrir la página." + +#: hpcsched_clusters.php +msgid "Missing graphs were added." +msgstr "Se han añadido los gráficos que faltaban." + +#: hpcsched_clusters.php +msgid "The cluster was not unmapped: it was changed by someone else since the page was opened." +msgstr "No se ha desvinculado el clúster: alguien lo modificó después de abrir la página." + +#: hpcsched_clusters.php +msgid "The cluster was unmapped. The device and its graphs were kept." +msgstr "Se ha desvinculado el clúster. Se han conservado el dispositivo y sus gráficos." + +#: hpcsched_clusters.php +msgid "The partitions were reindexed from the snapshot." +msgstr "Se han reindexado las particiones a partir de la instantánea." + +#: hpcsched_health.php +msgid "The HPC Scheduler templates are installed." +msgstr "Las plantillas de HPC Scheduler están instaladas." + +#: hpcsched_health.php +#, php-format +msgid "The templates were not installed: %s" +msgstr "No se han instalado las plantillas: %s" + +#: hpcsched_operator.php +msgid "Monitoring view" +msgstr "Vista de supervisión" + +#: hpcsched_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 pending reason families and snapshot freshness on the overview. Escalate credentials, cluster mappings and maintenance policy to an administrator." +msgstr "Revise las familias de motivos de espera y la vigencia de las instantáneas en el resumen. Solicite a un administrador los cambios de credenciales, asociaciones de clústeres y política de mantenimiento." + +#: lib/ClusterInput.php +msgid "Name: use 1 to 64 letters, digits, dots, dashes, or underscores, starting with a letter or digit." +msgstr "Nombre: utilice entre 1 y 64 letras, dígitos, puntos, guiones o guiones bajos, comenzando por una letra o un dígito." + +#: lib/ClusterInput.php +msgid "Poller: choose one of the listed pollers." +msgstr "Sondeador: elija uno de los sondeadores de la lista." + +#: lib/ClusterInput.php +#, php-format +msgid "Collection Interval: enter whole seconds from %d to %d." +msgstr "Intervalo de recopilación: introduzca un número entero de segundos entre %d y %d." + +#: lib/ClusterInput.php +msgid "Transport: choose one of the listed transports." +msgstr "Transporte: elija uno de los transportes de la lista." + +#: lib/ClusterInput.php +msgid "slurm.conf: enter an absolute path, or leave it empty to use the poller default." +msgstr "slurm.conf: introduzca una ruta absoluta o déjelo vacío para usar el valor predeterminado del sondeador." + +#: lib/ClusterInput.php +msgid "slurmrestd URL: this host and port are not on the slurmrestd host list in Settings." +msgstr "URL de slurmrestd: este host y puerto no están en la lista de hosts slurmrestd de Ajustes." + +#: lib/ClusterInput.php +msgid "slurmrestd URL: enter an https:// URL without user name, query, or fragment; plain http:// is accepted only for a loopback address." +msgstr "URL de slurmrestd: introduzca una URL https:// sin nombre de usuario, consulta ni fragmento; http:// sin cifrar solo se admite para una dirección de bucle local." + +#: lib/ClusterInput.php +msgid "slurmrestd User: use at most 64 letters, digits, dots, dashes, or underscores, or leave it empty for a user token." +msgstr "Usuario de slurmrestd: use como máximo 64 letras, dígitos, puntos, guiones o guiones bajos, o déjelo vacío para un token de usuario." + +#: lib/ClusterInput.php +msgid "Token File: enter the absolute path of the token file on the poller. The token itself is never entered here." +msgstr "Archivo de token: introduzca su ruta absoluta en el sondeador. El token nunca se introduce aquí." + +#: lib/ClusterInput.php +msgid "Token File: no token file directories are set yet. Ask a Cacti administrator to set them under Settings, HPC Scheduler." +msgstr "Archivo de token: todavía no hay directorios de tokens configurados. Pida a un administrador de Cacti que los configure en Ajustes, HPC Scheduler." + +#: lib/ClusterInput.php +#, php-format +msgid "Token File: the file must be inside one of the token file directories set in Settings (%s)." +msgstr "Archivo de token: debe estar dentro de uno de los directorios configurados en Ajustes (%s)." + +#: lib/ClustersPage.php lib/Pages.php +msgid "HPC Clusters" +msgstr "Clústeres HPC" + +#: lib/ClustersPage.php lib/OperatorPage.php +msgid "Actions" +msgstr "Acciones" + +#: lib/ClustersPage.php +msgid "Device" +msgstr "Dispositivo" + +#: lib/ClustersPage.php +msgid "Interval" +msgstr "Intervalo" + +#: lib/ClustersPage.php +msgid "Name" +msgstr "Nombre" + +#: lib/ClustersPage.php +msgid "Poller" +msgstr "Sondeador" + +#: lib/ClustersPage.php +msgid "Sections" +msgstr "Secciones" + +#: lib/ClustersPage.php lib/HealthPage.php lib/OperatorPage.php +msgid "State" +msgstr "Estado" + +#: lib/ClustersPage.php lib/HealthPage.php +msgid "Transport" +msgstr "Transporte" + +#: lib/ClustersPage.php lib/HealthPage.php +msgid "No clusters configured yet." +msgstr "Todavía no hay clústeres configurados." + +#: lib/ClustersPage.php +msgid "Disable" +msgstr "Deshabilitar" + +#: lib/ClustersPage.php +msgid "Enable" +msgstr "Habilitar" + +#: lib/ClustersPage.php +#, php-format +msgid "Deleted poller %d" +msgstr "Sondeador eliminado %d" + +#: lib/ClustersPage.php +#, php-format +msgid "%d seconds" +msgstr "%d segundos" + +#: lib/ClustersPage.php +msgid "None" +msgstr "Ninguno" + +#: lib/ClustersPage.php +msgid "Delete" +msgstr "Eliminar" + +#: lib/ClustersPage.php +msgid "Export" +msgstr "Exportar" + +#: lib/ClustersPage.php +msgid "Download the cluster configuration as JSON before an uninstall that drops the plugin tables. It holds token file paths, never a token." +msgstr "Antes de desinstalar y eliminar las tablas del complemento, descargue la configuración de los clústeres en JSON. Contiene rutas de archivos de tokens, nunca tokens." + +#: lib/ClustersPage.php +#, php-format +msgid "Cluster: %s" +msgstr "Clúster: %s" + +#: lib/ClustersPage.php +msgid "New Cluster" +msgstr "Nuevo clúster" + +#: lib/ClustersPage.php +msgid "Collection Interval (seconds)" +msgstr "Intervalo de recopilación (segundos)" + +#: lib/ClustersPage.php +msgid "Enabled" +msgstr "Habilitado" + +#: lib/ClustersPage.php +msgid "Collect Reservations" +msgstr "Recopilar reservas" + +#: lib/ClustersPage.php +msgid "Collect Fair-share (accounts only)" +msgstr "Recopilar reparto equitativo (solo cuentas)" + +#: lib/ClustersPage.php +msgid "slurm.conf Path (optional)" +msgstr "Ruta de slurm.conf (opcional)" + +#: lib/ClustersPage.php +msgid "slurmrestd URL" +msgstr "URL de slurmrestd" + +#: lib/ClustersPage.php +msgid "slurmrestd User (optional)" +msgstr "Usuario de slurmrestd (opcional)" + +#: lib/ClustersPage.php +msgid "Token File on the Poller" +msgstr "Archivo de token en el sondeador" + +#: lib/ClustersPage.php +msgid "Client commands use the binaries set under Settings > HPC Scheduler and the poller user's own Slurm authentication; the optional slurm.conf path selects a cluster. slurmrestd fields are used only with that transport. The token file must be readable by the poller user only; the plugin reads it at each run and never stores the token." +msgstr "Los comandos cliente utilizan los binarios definidos en Ajustes > HPC Scheduler y la autenticación Slurm del usuario del sondeador; la ruta opcional de slurm.conf selecciona un clúster. Los campos slurmrestd solo se usan con ese transporte. Solo el usuario del sondeador debe poder leer el archivo de token; el complemento lo lee en cada ejecución y nunca almacena el token." + +#: lib/ClustersPage.php +msgid "Save" +msgstr "Guardar" + +#: lib/ClustersPage.php +#, php-format +msgid "Device for Cluster: %s" +msgstr "Dispositivo del clúster: %s" + +#: lib/ClustersPage.php +#, php-format +msgid "Mapped to device %s (id %d). Its graphs follow Cacti's device and graph permissions." +msgstr "Asociado al dispositivo %s (ID %d). Sus gráficos respetan los permisos de dispositivos y gráficos de Cacti." + +#: lib/ClustersPage.php +msgid "Adding the missing graphs adds:" +msgstr "Al añadir los gráficos que faltan se añade:" + +#: lib/ClustersPage.php +msgid "Add Missing Graphs" +msgstr "Añadir gráficos que faltan" + +#: lib/ClustersPage.php +msgid "Reindex Partitions" +msgstr "Reindexar particiones" + +#: lib/ClustersPage.php +msgid "Unmap" +msgstr "Desvincular" + +#: lib/ClustersPage.php +msgid "Unmapping keeps the device, its graphs, and their history." +msgstr "Al desvincular se conservan el dispositivo, sus gráficos y su historial." + +#: lib/ClustersPage.php +#, php-format +msgid "The cluster is still mapped to device %d, which no longer exists. Creating or mapping a device replaces that mapping." +msgstr "El clúster sigue asociado al dispositivo %d, que ya no existe. Crear o asociar un dispositivo sustituye esa asociación." + +#: lib/ClustersPage.php +msgid "Creating a device adds:" +msgstr "Al crear un dispositivo se añade:" + +#: lib/ClustersPage.php +msgid "Without partition graphs, only the cluster graphs are created, and the data sources and calls for the partitions above are left out." +msgstr "Sin gráficos de particiones solo se crean los gráficos del clúster, y se omiten las fuentes de datos y llamadas de las particiones anteriores." + +#: lib/ClustersPage.php +msgid "Also create the partition graphs" +msgstr "Crear también los gráficos de las particiones" + +#: lib/ClustersPage.php +msgid "Create Device" +msgstr "Crear dispositivo" + +#: lib/ClustersPage.php +msgid "Or map an existing device" +msgstr "O asociar un dispositivo existente" + +#: lib/ClustersPage.php +msgid "Map Device" +msgstr "Asociar dispositivo" + +#: lib/DeviceProvisioner.php +msgid "The HPC Scheduler templates are not installed. Install them from the health page." +msgstr "Las plantillas de HPC Scheduler no están instaladas. Instálelas desde la página de estado." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "A device \"%s\" from the %s device template, polled by poller %d, with availability checks off." +msgstr "Un dispositivo «%s» de la plantilla %s, sondeado por el sondeador %d, con las comprobaciones de disponibilidad desactivadas." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "The data query \"%s\", indexing the %d partitions known now." +msgstr "La consulta de datos «%s», que indexa las %d particiones conocidas actualmente." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "%d cluster graphs, each with its own \"%s\" data source." +msgstr "%d gráficos del clúster, cada uno con su propia fuente de datos «%s»." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "%d partition graphs, %d for each partition, each with its own data source." +msgstr "%d gráficos de particiones, %d por partición, cada uno con su propia fuente de datos." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "In all: %d data sources and %d RRD files, and %d script server calls per poll. Partitions added later get graphs from the New Graphs page." +msgstr "En total: %d fuentes de datos y %d archivos RRD, y %d llamadas al servidor de scripts por sondeo. Las particiones añadidas después obtienen sus gráficos desde Nuevos gráficos." + +#: lib/DeviceProvisioner.php +#, php-format +msgid "Created by the HPC Scheduler plugin for cluster %s. Its values come from the plugin snapshot; the host name is a reserved name that is never contacted." +msgstr "Creado por el complemento HPC Scheduler para el clúster %s. Sus valores proceden de la instantánea del complemento; el nombre de host está reservado y nunca se contacta con él." + +#: lib/ErrorClass.php +msgid "configuration: a path, URL, or setting is missing or not allowed" +msgstr "configuración: falta una ruta, URL o ajuste, o no está permitido" + +#: lib/ErrorClass.php +msgid "the scheduler could not be reached" +msgstr "no se pudo contactar con el planificador" + +#: lib/ErrorClass.php +msgid "the call took longer than allowed and was stopped" +msgstr "la llamada superó el tiempo permitido y se detuvo" + +#: lib/ErrorClass.php +msgid "the answer was larger than allowed and was discarded" +msgstr "la respuesta superó el tamaño permitido y se descartó" + +#: lib/ErrorClass.php +msgid "the answer could not be parsed with the pinned data parser" +msgstr "no se pudo interpretar la respuesta con el analizador de datos fijado" + +#: lib/ErrorClass.php +msgid "the scheduler refused the credential" +msgstr "el planificador rechazó la credencial" + +#: lib/ErrorClass.php +msgid "the scheduler account may not see this data (PrivateData or permissions)" +msgstr "la cuenta del planificador no puede ver estos datos (PrivateData o permisos)" + +#: lib/ErrorClass.php +msgid "the controller asked clients to back off (rate limit)" +msgstr "el controlador pidió a los clientes que esperasen (límite de frecuencia)" + +#: lib/ErrorClass.php +msgid "the server answered 304 to a request that was not conditional; previous data kept" +msgstr "el servidor respondió 304 a una petición no condicional; se conservaron los datos anteriores" + +#: lib/ErrorClass.php +msgid "the plugin refused a call outside its allowlist" +msgstr "el complemento rechazó una llamada fuera de su lista permitida" + +#: lib/ErrorClass.php +msgid "the call failed" +msgstr "la llamada falló" + +#: lib/ErrorClass.php +msgid "the reader ran out of memory; lower Maximum Answer Size or raise Collection Memory in Settings" +msgstr "el lector se quedó sin memoria; reduzca Tamaño máximo de respuesta o aumente Memoria de recopilación en Ajustes" + +#: lib/Format.php lib/OperatorPage.php lib/OverviewPage.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/Freshness.php +msgid "Current" +msgstr "Actual" + +#: lib/Freshness.php +msgid "Delayed" +msgstr "Retrasado" + +#: lib/Freshness.php +msgid "Stale" +msgstr "Obsoleto" + +#: lib/Freshness.php +msgid "Never collected" +msgstr "Nunca recopilado" + +#: lib/HealthPage.php +msgid "Clusters" +msgstr "Clústeres" + +#: lib/HealthPage.php +msgid "Calls" +msgstr "Llamadas" + +#: lib/HealthPage.php lib/OverviewPage.php +msgid "Cluster" +msgstr "Clúster" + +#: lib/HealthPage.php +msgid "Duration" +msgstr "Duración" + +#: lib/HealthPage.php lib/OverviewPage.php +msgid "Freshness" +msgstr "Vigencia" + +#: lib/HealthPage.php +msgid "Last Run" +msgstr "Última ejecución" + +#: lib/HealthPage.php +msgid "Last Success" +msgstr "Último éxito" + +#: lib/HealthPage.php +msgid "Outcome" +msgstr "Resultado" + +#: lib/HealthPage.php +msgid "Parser" +msgstr "Analizador" + +#: lib/HealthPage.php +msgid "Slurm" +msgstr "Slurm" + +#: lib/HealthPage.php +msgid "All clusters" +msgstr "Todos los clústeres" + +#: lib/HealthPage.php +msgid "Warnings" +msgstr "Advertencias" + +#: lib/HealthPage.php +msgid "Warning" +msgstr "Advertencia" + +#: lib/HealthPage.php +msgid "No warnings." +msgstr "No hay advertencias." + +#: lib/HealthPage.php +msgid "Templates" +msgstr "Plantillas" + +#: lib/HealthPage.php +msgid "The device, data, and graph templates and the partition data query are installed." +msgstr "Están instaladas las plantillas de dispositivos, datos y gráficos, así como la consulta de datos de particiones." + +#: lib/HealthPage.php +msgid "The templates are not installed or not current, so cluster devices cannot be created. See the warnings above." +msgstr "Las plantillas no están instaladas o no están actualizadas, por lo que no se pueden crear dispositivos de clúster. Consulte las advertencias anteriores." + +#: lib/HealthPage.php +msgid "Install Templates" +msgstr "Instalar plantillas" + +#: lib/HealthPage.php +msgid "Snapshot Sections" +msgstr "Secciones de la instantánea" + +#: lib/HealthPage.php +msgid "Data Age" +msgstr "Antigüedad de los datos" + +#: lib/HealthPage.php +msgid "Error" +msgstr "Error" + +#: lib/HealthPage.php +msgid "Last Attempt" +msgstr "Último intento" + +#: lib/HealthPage.php +msgid "Records" +msgstr "Registros" + +#: lib/HealthPage.php +msgid "Section" +msgstr "Sección" + +#: lib/HealthPage.php +#, php-format +msgid "The last template install failed: %s" +msgstr "La última instalación de plantillas falló: %s" + +#: lib/HealthPage.php +msgid "Some HPC Scheduler templates are missing from Cacti. Install them below." +msgstr "Faltan algunas plantillas de HPC Scheduler en Cacti. Instálelas a continuación." + +#: lib/HealthPage.php +#, php-format +msgid "%s, discovered" +msgstr "%s, descubierto" + +#: lib/HealthWarnings.php +#, php-format +msgid "Maximum Answer Size is %d MiB, but a decoded answer of that size does not fit in the Collection Memory of %d MiB; the reader allows %d MiB. Raise Collection Memory or lower Maximum Answer Size in Settings." +msgstr "El tamaño máximo de respuesta es %d MiB, pero una respuesta decodificada de ese tamaño no cabe en los %d MiB de memoria de recopilación; el lector admite %d MiB. Aumente la memoria o reduzca el tamaño máximo en Ajustes." + +#: lib/HealthWarnings.php +#, php-format +msgid "Assigned to poller %d, a remote data collector. This release collects only on the main poller, so the cluster is not collected; remote collection is planned for phase 3. Assign it to the main poller." +msgstr "Asignado al sondeador %d, un recolector remoto. Esta versión solo recopila en el principal, por lo que no se recopila este clúster; la recopilación remota está prevista para la fase 3. Asígnelo al sondeador principal." + +#: lib/HealthWarnings.php +#, php-format +msgid "The collection interval is below the %d second floor." +msgstr "El intervalo de recopilación es inferior al mínimo de %d segundos." + +#: lib/HealthWarnings.php +#, php-format +msgid "The collection interval of %d seconds is shorter than the poller interval of %d seconds; data is collected every %d seconds." +msgstr "El intervalo de recopilación de %d segundos es menor que el del sondeador, de %d segundos; los datos se recopilan cada %d segundos." + +#: lib/HealthWarnings.php +msgid "slurmrestd is reached over plain HTTP on the loopback address; the token crosses the local network stack unencrypted." +msgstr "Se accede a slurmrestd mediante HTTP sin cifrar en la dirección de bucle local; el token atraviesa la pila de red local sin cifrado." + +#: lib/HealthWarnings.php +msgid "No reader run has finished for this cluster yet." +msgstr "Todavía no ha finalizado ninguna ejecución del lector para este clúster." + +#: lib/HealthWarnings.php +#, php-format +msgid "Token file: %s." +msgstr "Archivo de token: %s." + +#: lib/HealthWarnings.php +#, php-format +msgid "The token expired %s." +msgstr "El token caducó %s." + +#: lib/HealthWarnings.php +#, php-format +msgid "The token expires in %d minutes." +msgstr "El token caduca en %d minutos." + +#: lib/HealthWarnings.php +#, php-format +msgid "The last run used its whole time budget of %d seconds; some sections were not collected." +msgstr "La última ejecución agotó su presupuesto de %d segundos; algunas secciones no se recopilaron." + +#: lib/HealthWarnings.php +#, php-format +msgid "The scheduler reports Slurm %s, which is not a supported release (%s)." +msgstr "El planificador informa de Slurm %s, que no es una versión admitida (%s)." + +#: lib/HealthWarnings.php +#, php-format +msgid "The scheduler reports Slurm %s, which does not ship the data parser %s chosen in Settings." +msgstr "El planificador informa de Slurm %s, que no incluye el analizador de datos %s seleccionado en Ajustes." + +#: lib/HealthWarnings.php +msgid "Client commands ran without a memory limit; set the prlimit path in Settings." +msgstr "Los comandos cliente se ejecutaron sin límite de memoria; configure la ruta de prlimit en Ajustes." + +#: lib/HealthWarnings.php +#, php-format +msgid "Last error: %s." +msgstr "Último error: %s." + +#: lib/HealthWarnings.php +#, php-format +msgid "Collection is paused for %d seconds after a rate limit." +msgstr "La recopilación se pausa durante %d segundos tras un límite de frecuencia." + +#: lib/HealthWarnings.php +msgid "Data is stale; graphs and alerts read it as unknown." +msgstr "Los datos están obsoletos; los gráficos y las alertas los leen como desconocidos." + +#: lib/JobState.php lib/OverviewPage.php +msgid "Pending" +msgstr "Pendiente" + +#: lib/JobState.php lib/OverviewPage.php lib/ReasonFamily.php +msgid "Held" +msgstr "Retenido" + +#: lib/JobState.php lib/OverviewPage.php +msgid "Running" +msgstr "En ejecución" + +#: lib/JobState.php +msgid "Completing" +msgstr "Finalizando" + +#: lib/JobState.php lib/NodeState.php lib/ReasonFamily.php +msgid "Other" +msgstr "Otro" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Idle" +msgstr "Inactivo" + +#: lib/NodeState.php +msgid "Allocated" +msgstr "Asignado" + +#: lib/NodeState.php +msgid "Mixed" +msgstr "Mixto" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Drained" +msgstr "Drenado" + +#: lib/NodeState.php +msgid "Draining" +msgstr "Drenando" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Down" +msgstr "Caído" + +#: lib/NodeState.php +msgid "Maintenance" +msgstr "Mantenimiento" + +#: lib/NodeState.php +msgid "Reserved" +msgstr "Reservado" + +#: lib/NodeState.php +msgid "Powered down" +msgstr "Apagado" + +#: 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 "HPC Scheduler Operations" +msgstr "Operaciones de HPC Scheduler" + +#: 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/OverviewPage.php lib/Pages.php setup.php +msgid "HPC Scheduler" +msgstr "HPC Scheduler" + +#: lib/OverviewPage.php +msgid "Collected" +msgstr "Recopilado" + +#: lib/OverviewPage.php +msgid "Details" +msgstr "Detalles" + +#: lib/OverviewPage.php lib/Section.php +msgid "Nodes" +msgstr "Nodos" + +#: lib/OverviewPage.php +msgid "No clusters are collected yet." +msgstr "Todavía no se recopila ningún clúster." + +#: lib/OverviewPage.php +msgid "Pending reasons" +msgstr "Motivos de espera" + +#: lib/OverviewPage.php +msgid "Graphs" +msgstr "Gráficos" + +#: lib/OverviewPage.php +msgid "A dash means the plugin has no current data for that value: the section failed, is stale, or was never collected. Pending excludes held jobs. Drained counts every node with the drain flag, including nodes that are also down." +msgstr "Un guion indica que no hay datos actuales para ese valor: la sección falló, está obsoleta o nunca se recopiló. Pendientes excluye los trabajos retenidos. Drenados cuenta todos los nodos con la marca drain, incluidos los que también están caídos." + +#: lib/OverviewPage.php +#, php-format +msgid "Pending Reasons: %s" +msgstr "Motivos de espera: %s" + +#: lib/OverviewPage.php +msgid "Family" +msgstr "Familia" + +#: lib/OverviewPage.php lib/Section.php +msgid "Jobs" +msgstr "Trabajos" + +#: lib/OverviewPage.php lib/Section.php +msgid "Partitions" +msgstr "Particiones" + +#: lib/OverviewPage.php +msgid "Reason" +msgstr "Motivo" + +#: lib/OverviewPage.php +msgid "No pending jobs." +msgstr "No hay trabajos pendientes." + +#: lib/OverviewPage.php +#, php-format +msgid "Only the %d reasons with the most jobs are listed." +msgstr "Solo se muestran los %d motivos con más trabajos." + +#: lib/OverviewPage.php +msgid "Each job counts under the last reason the scheduler examined for it, which need not be the only thing holding it back. A job in several partitions counts once here and once in each partition it names. Held jobs are listed with their hold reason." +msgstr "Cada trabajo se cuenta bajo el último motivo que examinó el planificador, que no tiene por qué ser el único que lo retiene. Un trabajo en varias particiones cuenta una vez aquí y una vez en cada partición que indique. Los trabajos retenidos se muestran con su motivo de retención." + +#: lib/OverviewPage.php +msgid "Nodes in Unknown States" +msgstr "Nodos en estados desconocidos" + +#: lib/OverviewPage.php +msgid "Names" +msgstr "Nombres" + +#: lib/OverviewPage.php +msgid "Slurm State" +msgstr "Estado de Slurm" + +#: lib/OverviewPage.php +msgid "None. Every node maps to a known state." +msgstr "Ninguno. Todos los nodos corresponden a un estado conocido." + +#: lib/OverviewPage.php +msgid "No jobs snapshot has been collected yet." +msgstr "Todavía no se ha recopilado ninguna instantánea de trabajos." + +#: lib/OverviewPage.php +msgid "No nodes snapshot has been collected yet, so the node states are unknown." +msgstr "Todavía no se ha recopilado ninguna instantánea de nodos, por lo que sus estados son desconocidos." + +#: lib/OverviewPage.php +#, php-format +msgid "Jobs snapshot taken %s (%s), current." +msgstr "Instantánea de trabajos tomada %s (%s), vigente." + +#: lib/OverviewPage.php +#, php-format +msgid "Nodes snapshot taken %s (%s), current." +msgstr "Instantánea de nodos tomada %s (%s), vigente." + +#: lib/OverviewPage.php +#, php-format +msgid "Jobs snapshot taken %s (%s), not current: it is stale or the last collection failed, and the counts below are the last ones collected." +msgstr "Instantánea de trabajos tomada %s (%s), no vigente: está obsoleta o falló la última recopilación; los recuentos siguientes son los últimos recopilados." + +#: lib/OverviewPage.php +#, php-format +msgid "Nodes snapshot taken %s (%s), not current: it is stale or the last collection failed, and the nodes below are the last ones collected." +msgstr "Instantánea de nodos tomada %s (%s), no vigente: está obsoleta o falló la última recopilación; los nodos siguientes son los últimos recopilados." + +#: lib/Pages.php +msgid "HPC Scheduler Operator" +msgstr "Operador de HPC Scheduler" + +#: lib/Pages.php +msgid "HPC Scheduler View" +msgstr "Vista de HPC Scheduler" + +#: lib/Pages.php +msgid "HPC Scheduler Admin" +msgstr "Administración de HPC Scheduler" + +#: lib/Pages.php +msgid "HPC Scheduler Health" +msgstr "Estado de HPC Scheduler" + +#: lib/ReasonFamily.php +msgid "Priority" +msgstr "Prioridad" + +#: lib/ReasonFamily.php +msgid "Resources" +msgstr "Recursos" + +#: lib/ReasonFamily.php +msgid "Dependency" +msgstr "Dependencia" + +#: lib/ReasonFamily.php +msgid "Begin time" +msgstr "Hora de inicio" + +#: lib/ReasonFamily.php +msgid "Reservation" +msgstr "Reserva" + +#: lib/ReasonFamily.php +msgid "Association limits" +msgstr "Límites de asociación" + +#: lib/ReasonFamily.php +msgid "QOS limits" +msgstr "Límites de QOS" + +#: lib/ReasonFamily.php +msgid "Partition limits" +msgstr "Límites de partición" + +#: lib/ReasonFamily.php +msgid "Node availability" +msgstr "Disponibilidad de nodos" + +#: lib/Section.php +msgid "Reservations" +msgstr "Reservas" + +#: lib/Section.php +msgid "Fair-share" +msgstr "Reparto equitativo" + +#: lib/Settings.php +msgid "Slurm Client Commands" +msgstr "Comandos cliente de Slurm" + +#: lib/Settings.php +msgid "Data Parser" +msgstr "Analizador de datos" + +#: lib/Settings.php +msgid "Slurm data parser for the client commands. Choose one that the release of every cluster read through client commands ships: v0.0.43 is in 25.05, 25.11, and 26.05 and is removed in 27.05; v0.0.44 needs 25.11 or later; v0.0.45 needs 26.05 or later. The health page warns when a cluster reports a release without it. Clusters read through slurmrestd ignore this setting: they use the newest of these the daemon serves, and the health page shows which." +msgstr "Analizador de datos Slurm para los comandos cliente. Elija uno incluido en la versión de todos los clústeres leídos por comandos: v0.0.43 está en 25.05, 25.11 y 26.05 y se elimina en 27.05; v0.0.44 requiere 25.11 o posterior; v0.0.45 requiere 26.05 o posterior. La página de estado avisa si un clúster informa de una versión que no lo incluye. Los clústeres leídos por slurmrestd ignoran este ajuste: usan el más reciente de estos que ofrezca el servicio, y la página de estado indica cuál." + +#: lib/Settings.php +msgid "Absolute path to squeue on each poller that reads a cluster through client commands. The plugin runs it only as squeue --all --json with the data parser above." +msgstr "Ruta absoluta de squeue en cada sondeador que lea un clúster mediante comandos cliente. El complemento solo lo ejecuta como squeue --all --json con el analizador anterior." + +#: lib/Settings.php +msgid "squeue" +msgstr "squeue" + +#: lib/Settings.php +msgid "Absolute path to scontrol. The plugin runs only scontrol --json show node, show partition, and show reservation; never update, reconfigure, or token." +msgstr "Ruta absoluta de scontrol. El complemento solo ejecuta scontrol --json show node, show partition y show reservation; nunca update, reconfigure ni token." + +#: lib/Settings.php +msgid "scontrol" +msgstr "scontrol" + +#: lib/Settings.php +msgid "Absolute path to sshare, used only for clusters that collect fair-share." +msgstr "Ruta absoluta de sshare; solo se utiliza en los clústeres que recopilan reparto equitativo." + +#: lib/Settings.php +msgid "sshare" +msgstr "sshare" + +#: lib/Settings.php +msgid "Limits" +msgstr "Límites" + +#: lib/Settings.php +msgid "Call Timeout" +msgstr "Tiempo de espera de la llamada" + +#: lib/Settings.php +msgid "Seconds one scheduler call may take before it is stopped and its section recorded as failed. A call never runs past the reader time budget either." +msgstr "Segundos permitidos para una llamada antes de detenerla y registrar su sección como fallida. Ninguna llamada supera tampoco el presupuesto de tiempo del lector." + +#: lib/Settings.php +msgid "Maximum Answer Size" +msgstr "Tamaño máximo de respuesta" + +#: lib/Settings.php +msgid "MiB one scheduler call may return. A larger answer is discarded and its section recorded as failed. Decoding needs about 12 times the answer size, so the reader uses at most (Collection Memory - 64) / 12 MiB and the health page warns when this value is larger." +msgstr "MiB que puede devolver una llamada. Las respuestas mayores se descartan y su sección se registra como fallida. Decodificar requiere unas 12 veces el tamaño de la respuesta, por lo que el lector admite como máximo (Memoria de recopilación - 64) / 12 MiB; la página de estado avisa si este valor es mayor." + +#: lib/Settings.php +msgid "Collection Memory" +msgstr "Memoria de recopilación" + +#: lib/Settings.php +msgid "MiB of PHP memory each collection run raises its limit to (it never lowers one). The default of 1024 fits answers up to 80 MiB." +msgstr "MiB a los que cada ejecución eleva el límite de memoria PHP (nunca lo reduce). El valor predeterminado, 1024, admite respuestas de hasta 80 MiB." + +#: lib/Settings.php +msgid "Absolute path to prlimit (util-linux), used to cap the address space of each client command. Leave empty to run commands without a memory limit; the health page then warns." +msgstr "Ruta absoluta de prlimit (util-linux), utilizado para limitar el espacio de direcciones de cada comando cliente. Déjela vacía para ejecutarlos sin límite de memoria; la página de estado lo advertirá." + +#: lib/Settings.php +msgid "prlimit" +msgstr "prlimit" + +#: lib/Settings.php +msgid "Command Memory Limit" +msgstr "Límite de memoria del comando" + +#: lib/Settings.php +msgid "MiB of address space each client command may use, through prlimit." +msgstr "MiB de espacio de direcciones que puede usar cada comando cliente mediante prlimit." + +#: lib/Settings.php +msgid "slurmrestd Credentials" +msgstr "Credenciales de slurmrestd" + +#: lib/Settings.php +msgid "Token File Directories" +msgstr "Directorios de archivos de tokens" + +#: lib/Settings.php +msgid "Absolute directories on the pollers that may hold slurmrestd token files, separated by commas or spaces. A cluster can name only a token file inside one of them, owned by the poller user and reached without a symbolic link. Keep each directory writable only by root and the poller user. Empty means no cluster can use slurmrestd." +msgstr "Directorios absolutos permitidos para archivos de tokens slurmrestd en los sondeadores, separados por comas o espacios. Un clúster solo puede indicar un archivo dentro de ellos, propiedad del usuario del sondeador y accesible sin enlaces simbólicos. Solo root y ese usuario deben poder escribir en cada directorio. Vacío impide usar slurmrestd a todos los clústeres." + +#: lib/Settings.php +msgid "slurmrestd Hosts" +msgstr "Hosts de slurmrestd" + +#: lib/Settings.php +msgid "Optional. The slurmrestd hosts a cluster may name, as host or host:port, separated by commas or spaces. An entry without a port allows any port on that host. Empty allows any host." +msgstr "Opcional. Hosts slurmrestd permitidos para los clústeres, como host o host:puerto, separados por comas o espacios. Una entrada sin puerto permite cualquier puerto de ese host. Vacío permite cualquier host." + +#: lib/Settings.php +msgid "Seconds before a token expires when the health page starts to warn, if the token carries an expiry time." +msgstr "Segundos antes de que caduque un token a partir de los que avisa la página de estado, si el token incluye una fecha de caducidad." + +#: lib/Settings.php +msgid "Token Expiry Warning" +msgstr "Aviso de caducidad del token" + +#: 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 clusters and snapshots. Clear it to have the uninstall drop them; export the clusters first from HPC Clusters. The plugin creates no Cacti devices or Maint schedules in this release, and the scheduler is never contacted either way." +msgstr "Si se marca, al desinstalar se conservan los clústeres y las instantáneas. Desmárquelo para eliminarlos; exporte antes los clústeres desde Clústeres HPC. En esta versión el complemento no crea dispositivos Cacti ni programaciones Maint, y en ningún caso contacta con el planificador." + +#: lib/TemplateInstaller.php +#, php-format +msgid "The data query file %s is not installed in Cacti's resource/script_server directory." +msgstr "El archivo de consulta de datos %s no está instalado en el directorio resource/script_server de Cacti." + +#: lib/TemplateInstaller.php +#, php-format +msgid "The data query file %s in Cacti's resource/script_server directory differs from the one the plugin ships." +msgstr "El archivo de consulta de datos %s del directorio resource/script_server de Cacti difiere del incluido en el complemento." + +#: lib/TokenState.php +msgid "readable only by the poller user" +msgstr "legible solo por el usuario del sondeador" + +#: lib/TokenState.php +msgid "readable by the file group; restrict it to the poller user (chmod 600)" +msgstr "legible por el grupo del archivo; restrínjalo al usuario del sondeador (chmod 600)" + +#: lib/TokenState.php +msgid "readable by every user on the poller; restrict it to the poller user (chmod 600)" +msgstr "legible por cualquier usuario del sondeador; restrínjalo al usuario del sondeador (chmod 600)" + +#: lib/TokenState.php +msgid "refused: owned by a user other than the poller user (chown it to the poller user)" +msgstr "rechazado: pertenece a otro usuario (cambie el propietario al usuario del sondeador con chown)" + +#: lib/TokenState.php +msgid "missing or not readable by the poller user" +msgstr "ausente o no legible por el usuario del sondeador" + +#: lib/TokenState.php +msgid "refused: outside the token file directories set in Settings, reached through a symbolic link, not a regular file, writable by others, or too large; the log names the reason" +msgstr "rechazado: está fuera de los directorios de tokens configurados, se accede mediante un enlace simbólico, no es un archivo normal, permite escritura a otros o es demasiado grande; el registro indica el motivo" + +#: lib/TokenState.php +msgid "empty" +msgstr "vacío" + +#: lib/Transport.php +msgid "Slurm client commands" +msgstr "Comandos cliente de Slurm" + +#: lib/Transport.php +msgid "slurmrestd" +msgstr "slurmrestd" + +#: setup.php +#, php-format +msgid "The HPC Scheduler plugin requires PHP %s or later. This server runs PHP %s, so the plugin was not installed or enabled." +msgstr "El complemento HPC Scheduler 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 HPC Scheduler plugin is not enabled." +msgstr "El complemento HPC Scheduler no está habilitado." + +#: setup.php +#, php-format +msgid "The HPC Scheduler plugin requires PHP %s or later." +msgstr "El complemento HPC Scheduler requiere PHP %s o posterior." + +#: setup.php +msgid "Management" +msgstr "Gestión" diff --git a/locales/po/hi-IN.po b/locales/po/hi-IN.po new file mode 100644 index 0000000..dab22dd --- /dev/null +++ b/locales/po/hi-IN.po @@ -0,0 +1,1070 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# +msgid "" +msgstr "" +"Project-Id-Version: hpcsched 0.1.0-dev\n" +"Report-Msgid-Bugs-To: https://github.com/somethingwithproof/plugin_hpcsched/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" + +#: hpcsched_clusters.php +msgid "You do not have permission for the device of that cluster." +msgstr "आपको उस क्लस्टर के डिवाइस की अनुमति नहीं है।" + +#: hpcsched_clusters.php +msgid "Name: another cluster already uses this name." +msgstr "नाम: यह नाम किसी अन्य क्लस्टर में पहले से उपयोग हो रहा है।" + +#: hpcsched_clusters.php +msgid "The cluster was not saved: it was changed by someone else since the form was opened, or the write failed. Open it again and repeat the change." +msgstr "क्लस्टर सहेजा नहीं गया: फ़ॉर्म खुलने के बाद किसी और ने इसे बदल दिया, या लेखन विफल हुआ। इसे फिर खोलें और बदलाव दोहराएँ।" + +#: hpcsched_clusters.php +msgid "The cluster was saved." +msgstr "क्लस्टर सहेज दिया गया।" + +#: hpcsched_clusters.php +msgid "The cluster and its cached snapshot were deleted. Its device and graphs were kept. The scheduler was not contacted." +msgstr "क्लस्टर और उसका कैश किया गया स्नैपशॉट हटा दिए गए। उसका डिवाइस और ग्राफ़ रखे गए। शेड्यूलर से संपर्क नहीं किया गया।" + +#: hpcsched_clusters.php +msgid "The device and its graphs were created." +msgstr "डिवाइस और उसके ग्राफ़ बनाए गए।" + +#: hpcsched_clusters.php +msgid "The device was not created: the cluster already has a device, it was changed by someone else since the page was opened, or Cacti refused it. See the Cacti log." +msgstr "डिवाइस नहीं बना: क्लस्टर के पास पहले से डिवाइस है, पृष्ठ खुलने के बाद किसी और ने इसे बदला, या Cacti ने मना किया। Cacti लॉग देखें।" + +#: hpcsched_clusters.php +msgid "The cluster was mapped to the device." +msgstr "क्लस्टर डिवाइस से मैप किया गया।" + +#: hpcsched_clusters.php +msgid "The cluster was not mapped: the device does not exist, is not allowed to you, already carries another cluster, or the cluster was changed by someone else since the page was opened." +msgstr "क्लस्टर मैप नहीं हुआ: डिवाइस मौजूद नहीं, आपकी अनुमति में नहीं, पहले से अन्य क्लस्टर रखता है, या पृष्ठ खुलने के बाद किसी और ने क्लस्टर बदल दिया।" + +#: hpcsched_clusters.php +msgid "Missing graphs were added." +msgstr "अनुपस्थित ग्राफ़ जोड़ दिए गए।" + +#: hpcsched_clusters.php +msgid "The cluster was not unmapped: it was changed by someone else since the page was opened." +msgstr "क्लस्टर की मैपिंग नहीं हटाई गई: पृष्ठ खुलने के बाद किसी और ने इसे बदल दिया।" + +#: hpcsched_clusters.php +msgid "The cluster was unmapped. The device and its graphs were kept." +msgstr "क्लस्टर की मैपिंग हटा दी गई। डिवाइस और उसके ग्राफ़ रखे गए।" + +#: hpcsched_clusters.php +msgid "The partitions were reindexed from the snapshot." +msgstr "स्नैपशॉट से पार्टिशन फिर इंडेक्स किए गए।" + +#: hpcsched_health.php +msgid "The HPC Scheduler templates are installed." +msgstr "HPC Scheduler टेम्पलेट स्थापित हैं।" + +#: hpcsched_health.php +#, php-format +msgid "The templates were not installed: %s" +msgstr "टेम्पलेट स्थापित नहीं हुए: %s" + +#: hpcsched_operator.php +msgid "Monitoring view" +msgstr "निगरानी दृश्य" + +#: hpcsched_operator.php +msgid "Observations could not be read. Ask an administrator to check the plugin log." +msgstr "अवलोकन पढ़े नहीं जा सके। किसी व्यवस्थापक से प्लगइन लॉग जाँचने को कहें।" + +#: include/operator.php +msgid "Inspect pending reason families and snapshot freshness on the overview. Escalate credentials, cluster mappings and maintenance policy to an administrator." +msgstr "अवलोकन में लंबित कारण समूह और स्नैपशॉट की ताज़गी जाँचें। क्रेडेंशियल, क्लस्टर मैपिंग और रखरखाव नीति व्यवस्थापक को सौंपें।" + +#: lib/ClusterInput.php +msgid "Name: use 1 to 64 letters, digits, dots, dashes, or underscores, starting with a letter or digit." +msgstr "नाम: अक्षर या अंक से शुरू होने वाले 1 से 64 अक्षर, अंक, बिंदु, हाइफ़न या अंडरस्कोर उपयोग करें।" + +#: lib/ClusterInput.php +msgid "Poller: choose one of the listed pollers." +msgstr "पोलर: सूची में दिया गया कोई पोलर चुनें।" + +#: lib/ClusterInput.php +#, php-format +msgid "Collection Interval: enter whole seconds from %d to %d." +msgstr "संग्रह अंतराल: %d से %d के बीच पूर्ण सेकंड दर्ज करें।" + +#: lib/ClusterInput.php +msgid "Transport: choose one of the listed transports." +msgstr "ट्रांसपोर्ट: सूची में दिया गया कोई ट्रांसपोर्ट चुनें।" + +#: lib/ClusterInput.php +msgid "slurm.conf: enter an absolute path, or leave it empty to use the poller default." +msgstr "slurm.conf: पूर्ण पथ दर्ज करें या पोलर का डिफ़ॉल्ट उपयोग करने के लिए खाली छोड़ें।" + +#: lib/ClusterInput.php +msgid "slurmrestd URL: this host and port are not on the slurmrestd host list in Settings." +msgstr "slurmrestd URL: यह होस्ट और पोर्ट सेटिंग की slurmrestd होस्ट सूची में नहीं हैं।" + +#: lib/ClusterInput.php +msgid "slurmrestd URL: enter an https:// URL without user name, query, or fragment; plain http:// is accepted only for a loopback address." +msgstr "slurmrestd URL: उपयोगकर्ता नाम, क्वेरी या फ़्रैगमेंट के बिना https:// URL दर्ज करें; सादा http:// केवल लूपबैक पते के लिए स्वीकार है।" + +#: lib/ClusterInput.php +msgid "slurmrestd User: use at most 64 letters, digits, dots, dashes, or underscores, or leave it empty for a user token." +msgstr "slurmrestd उपयोगकर्ता: अधिकतम 64 अक्षर, अंक, बिंदु, हाइफ़न या अंडरस्कोर उपयोग करें, या उपयोगकर्ता टोकन के लिए खाली छोड़ें।" + +#: lib/ClusterInput.php +msgid "Token File: enter the absolute path of the token file on the poller. The token itself is never entered here." +msgstr "टोकन फ़ाइल: पोलर पर टोकन फ़ाइल का पूर्ण पथ दर्ज करें। टोकन स्वयं यहाँ कभी दर्ज नहीं किया जाता।" + +#: lib/ClusterInput.php +msgid "Token File: no token file directories are set yet. Ask a Cacti administrator to set them under Settings, HPC Scheduler." +msgstr "टोकन फ़ाइल: अभी टोकन फ़ाइल निर्देशिकाएँ सेट नहीं हैं। Cacti व्यवस्थापक से सेटिंग, HPC Scheduler में उन्हें सेट करने को कहें।" + +#: lib/ClusterInput.php +#, php-format +msgid "Token File: the file must be inside one of the token file directories set in Settings (%s)." +msgstr "टोकन फ़ाइल: फ़ाइल सेटिंग में दी गई टोकन फ़ाइल निर्देशिकाओं (%s) में से किसी के भीतर होनी चाहिए।" + +#: lib/ClustersPage.php lib/Pages.php +msgid "HPC Clusters" +msgstr "HPC क्लस्टर" + +#: lib/ClustersPage.php lib/OperatorPage.php +msgid "Actions" +msgstr "कार्रवाइयाँ" + +#: lib/ClustersPage.php +msgid "Device" +msgstr "डिवाइस" + +#: lib/ClustersPage.php +msgid "Interval" +msgstr "अंतराल" + +#: lib/ClustersPage.php +msgid "Name" +msgstr "नाम" + +#: lib/ClustersPage.php +msgid "Poller" +msgstr "पोलर" + +#: lib/ClustersPage.php +msgid "Sections" +msgstr "खंड" + +#: lib/ClustersPage.php lib/HealthPage.php lib/OperatorPage.php +msgid "State" +msgstr "स्थिति" + +#: lib/ClustersPage.php lib/HealthPage.php +msgid "Transport" +msgstr "ट्रांसपोर्ट" + +#: lib/ClustersPage.php lib/HealthPage.php +msgid "No clusters configured yet." +msgstr "अभी कोई क्लस्टर कॉन्फ़िगर नहीं है।" + +#: lib/ClustersPage.php +msgid "Disable" +msgstr "अक्षम करें" + +#: lib/ClustersPage.php +msgid "Enable" +msgstr "सक्षम करें" + +#: lib/ClustersPage.php +#, php-format +msgid "Deleted poller %d" +msgstr "हटाया गया पोलर %d" + +#: lib/ClustersPage.php +#, php-format +msgid "%d seconds" +msgstr "%d सेकंड" + +#: lib/ClustersPage.php +msgid "None" +msgstr "कोई नहीं" + +#: lib/ClustersPage.php +msgid "Delete" +msgstr "हटाएँ" + +#: lib/ClustersPage.php +msgid "Export" +msgstr "निर्यात" + +#: lib/ClustersPage.php +msgid "Download the cluster configuration as JSON before an uninstall that drops the plugin tables. It holds token file paths, never a token." +msgstr "प्लगइन तालिकाएँ हटाने वाली स्थापना-रद्द कार्रवाई से पहले क्लस्टर कॉन्फ़िगरेशन JSON में डाउनलोड करें। इसमें टोकन फ़ाइल पथ होते हैं, कभी टोकन नहीं।" + +#: lib/ClustersPage.php +#, php-format +msgid "Cluster: %s" +msgstr "क्लस्टर: %s" + +#: lib/ClustersPage.php +msgid "New Cluster" +msgstr "नया क्लस्टर" + +#: lib/ClustersPage.php +msgid "Collection Interval (seconds)" +msgstr "संग्रह अंतराल (सेकंड)" + +#: lib/ClustersPage.php +msgid "Enabled" +msgstr "सक्षम" + +#: lib/ClustersPage.php +msgid "Collect Reservations" +msgstr "आरक्षण एकत्र करें" + +#: lib/ClustersPage.php +msgid "Collect Fair-share (accounts only)" +msgstr "फेयर-शेयर एकत्र करें (केवल खाते)" + +#: lib/ClustersPage.php +msgid "slurm.conf Path (optional)" +msgstr "slurm.conf पथ (वैकल्पिक)" + +#: lib/ClustersPage.php +msgid "slurmrestd URL" +msgstr "slurmrestd URL" + +#: lib/ClustersPage.php +msgid "slurmrestd User (optional)" +msgstr "slurmrestd उपयोगकर्ता (वैकल्पिक)" + +#: lib/ClustersPage.php +msgid "Token File on the Poller" +msgstr "पोलर पर टोकन फ़ाइल" + +#: lib/ClustersPage.php +msgid "Client commands use the binaries set under Settings > HPC Scheduler and the poller user's own Slurm authentication; the optional slurm.conf path selects a cluster. slurmrestd fields are used only with that transport. The token file must be readable by the poller user only; the plugin reads it at each run and never stores the token." +msgstr "क्लाइंट कमांड सेटिंग > HPC Scheduler में दिए बाइनरी और पोलर उपयोगकर्ता का अपना Slurm प्रमाणीकरण उपयोग करते हैं; वैकल्पिक slurm.conf पथ क्लस्टर चुनता है। slurmrestd फ़ील्ड केवल उसी ट्रांसपोर्ट में उपयोग होते हैं। टोकन फ़ाइल केवल पोलर उपयोगकर्ता के लिए पठनीय होनी चाहिए; प्लगइन हर रन में इसे पढ़ता है और टोकन कभी संग्रहीत नहीं करता।" + +#: lib/ClustersPage.php +msgid "Save" +msgstr "सहेजें" + +#: lib/ClustersPage.php +#, php-format +msgid "Device for Cluster: %s" +msgstr "क्लस्टर का डिवाइस: %s" + +#: lib/ClustersPage.php +#, php-format +msgid "Mapped to device %s (id %d). Its graphs follow Cacti's device and graph permissions." +msgstr "डिवाइस %s (id %d) से मैप है। इसके ग्राफ़ Cacti की डिवाइस और ग्राफ़ अनुमतियाँ मानते हैं।" + +#: lib/ClustersPage.php +msgid "Adding the missing graphs adds:" +msgstr "अनुपस्थित ग्राफ़ जोड़ने पर ये जुड़ते हैं:" + +#: lib/ClustersPage.php +msgid "Add Missing Graphs" +msgstr "अनुपस्थित ग्राफ़ जोड़ें" + +#: lib/ClustersPage.php +msgid "Reindex Partitions" +msgstr "पार्टिशन फिर इंडेक्स करें" + +#: lib/ClustersPage.php +msgid "Unmap" +msgstr "मैपिंग हटाएँ" + +#: lib/ClustersPage.php +msgid "Unmapping keeps the device, its graphs, and their history." +msgstr "मैपिंग हटाने पर डिवाइस, उसके ग्राफ़ और उनका इतिहास बने रहते हैं।" + +#: lib/ClustersPage.php +#, php-format +msgid "The cluster is still mapped to device %d, which no longer exists. Creating or mapping a device replaces that mapping." +msgstr "क्लस्टर अभी भी डिवाइस %d से मैप है, जो अब मौजूद नहीं है। डिवाइस बनाने या मैप करने पर यह मैपिंग बदलेगी।" + +#: lib/ClustersPage.php +msgid "Creating a device adds:" +msgstr "डिवाइस बनाने पर ये जुड़ते हैं:" + +#: lib/ClustersPage.php +msgid "Without partition graphs, only the cluster graphs are created, and the data sources and calls for the partitions above are left out." +msgstr "पार्टिशन ग्राफ़ के बिना केवल क्लस्टर ग्राफ़ बनते हैं और ऊपर के पार्टिशन के डेटा स्रोत तथा कॉल छोड़ दिए जाते हैं।" + +#: lib/ClustersPage.php +msgid "Also create the partition graphs" +msgstr "पार्टिशन ग्राफ़ भी बनाएँ" + +#: lib/ClustersPage.php +msgid "Create Device" +msgstr "डिवाइस बनाएँ" + +#: lib/ClustersPage.php +msgid "Or map an existing device" +msgstr "या मौजूदा डिवाइस मैप करें" + +#: lib/ClustersPage.php +msgid "Map Device" +msgstr "डिवाइस मैप करें" + +#: lib/DeviceProvisioner.php +msgid "The HPC Scheduler templates are not installed. Install them from the health page." +msgstr "HPC Scheduler टेम्पलेट स्थापित नहीं हैं। स्वास्थ्य पृष्ठ से उन्हें स्थापित करें।" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "A device \"%s\" from the %s device template, polled by poller %d, with availability checks off." +msgstr "डिवाइस \"%s\", %s डिवाइस टेम्पलेट से, पोलर %d द्वारा पोल किया जाएगा और उपलब्धता जाँच बंद होगी।" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "The data query \"%s\", indexing the %d partitions known now." +msgstr "डेटा क्वेरी \"%s\", जो अभी ज्ञात %d पार्टिशन इंडेक्स करती है।" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "%d cluster graphs, each with its own \"%s\" data source." +msgstr "%d क्लस्टर ग्राफ़, हर एक का अपना \"%s\" डेटा स्रोत।" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "%d partition graphs, %d for each partition, each with its own data source." +msgstr "%d पार्टिशन ग्राफ़, प्रत्येक पार्टिशन के लिए %d, हर एक का अपना डेटा स्रोत।" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "In all: %d data sources and %d RRD files, and %d script server calls per poll. Partitions added later get graphs from the New Graphs page." +msgstr "कुल: %d डेटा स्रोत और %d RRD फ़ाइलें, और हर पोल में %d स्क्रिप्ट सर्वर कॉल। बाद में जोड़े गए पार्टिशन के ग्राफ़ नए ग्राफ़ पृष्ठ से मिलते हैं।" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "Created by the HPC Scheduler plugin for cluster %s. Its values come from the plugin snapshot; the host name is a reserved name that is never contacted." +msgstr "HPC Scheduler प्लगइन ने क्लस्टर %s के लिए बनाया। मान प्लगइन स्नैपशॉट से आते हैं; होस्ट नाम आरक्षित है और उससे कभी संपर्क नहीं होता।" + +#: lib/ErrorClass.php +msgid "configuration: a path, URL, or setting is missing or not allowed" +msgstr "कॉन्फ़िगरेशन: पथ, URL या सेटिंग अनुपस्थित या अनुमत नहीं है" + +#: lib/ErrorClass.php +msgid "the scheduler could not be reached" +msgstr "शेड्यूलर तक पहुँचा नहीं जा सका" + +#: lib/ErrorClass.php +msgid "the call took longer than allowed and was stopped" +msgstr "कॉल अनुमत समय से लंबी चली और रोक दी गई" + +#: lib/ErrorClass.php +msgid "the answer was larger than allowed and was discarded" +msgstr "उत्तर अनुमत आकार से बड़ा था और त्याग दिया गया" + +#: lib/ErrorClass.php +msgid "the answer could not be parsed with the pinned data parser" +msgstr "तय डेटा पार्सर से उत्तर पार्स नहीं हुआ" + +#: lib/ErrorClass.php +msgid "the scheduler refused the credential" +msgstr "शेड्यूलर ने क्रेडेंशियल अस्वीकार किया" + +#: lib/ErrorClass.php +msgid "the scheduler account may not see this data (PrivateData or permissions)" +msgstr "शेड्यूलर खाता यह डेटा नहीं देख सकता (PrivateData या अनुमतियाँ)" + +#: lib/ErrorClass.php +msgid "the controller asked clients to back off (rate limit)" +msgstr "कंट्रोलर ने क्लाइंट को प्रतीक्षा करने को कहा (दर सीमा)" + +#: lib/ErrorClass.php +msgid "the server answered 304 to a request that was not conditional; previous data kept" +msgstr "सर्वर ने गैर-सशर्त अनुरोध पर 304 उत्तर दिया; पिछला डेटा रखा गया" + +#: lib/ErrorClass.php +msgid "the plugin refused a call outside its allowlist" +msgstr "प्लगइन ने अपनी अनुमति-सूची से बाहर का कॉल अस्वीकार किया" + +#: lib/ErrorClass.php +msgid "the call failed" +msgstr "कॉल विफल हुआ" + +#: lib/ErrorClass.php +msgid "the reader ran out of memory; lower Maximum Answer Size or raise Collection Memory in Settings" +msgstr "रीडर की मेमोरी समाप्त हो गई; सेटिंग में अधिकतम उत्तर आकार घटाएँ या संग्रह मेमोरी बढ़ाएँ" + +#: lib/Format.php lib/OperatorPage.php lib/OverviewPage.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/Freshness.php +msgid "Current" +msgstr "वर्तमान" + +#: lib/Freshness.php +msgid "Delayed" +msgstr "विलंबित" + +#: lib/Freshness.php +msgid "Stale" +msgstr "पुराना" + +#: lib/Freshness.php +msgid "Never collected" +msgstr "कभी एकत्र नहीं हुआ" + +#: lib/HealthPage.php +msgid "Clusters" +msgstr "क्लस्टर" + +#: lib/HealthPage.php +msgid "Calls" +msgstr "कॉल" + +#: lib/HealthPage.php lib/OverviewPage.php +msgid "Cluster" +msgstr "क्लस्टर" + +#: lib/HealthPage.php +msgid "Duration" +msgstr "अवधि" + +#: lib/HealthPage.php lib/OverviewPage.php +msgid "Freshness" +msgstr "ताज़गी" + +#: lib/HealthPage.php +msgid "Last Run" +msgstr "पिछला रन" + +#: lib/HealthPage.php +msgid "Last Success" +msgstr "पिछली सफलता" + +#: lib/HealthPage.php +msgid "Outcome" +msgstr "परिणाम" + +#: lib/HealthPage.php +msgid "Parser" +msgstr "पार्सर" + +#: lib/HealthPage.php +msgid "Slurm" +msgstr "Slurm" + +#: lib/HealthPage.php +msgid "All clusters" +msgstr "सभी क्लस्टर" + +#: lib/HealthPage.php +msgid "Warnings" +msgstr "चेतावनियाँ" + +#: lib/HealthPage.php +msgid "Warning" +msgstr "चेतावनी" + +#: lib/HealthPage.php +msgid "No warnings." +msgstr "कोई चेतावनी नहीं।" + +#: lib/HealthPage.php +msgid "Templates" +msgstr "टेम्पलेट" + +#: lib/HealthPage.php +msgid "The device, data, and graph templates and the partition data query are installed." +msgstr "डिवाइस, डेटा और ग्राफ़ टेम्पलेट तथा पार्टिशन डेटा क्वेरी स्थापित हैं।" + +#: lib/HealthPage.php +msgid "The templates are not installed or not current, so cluster devices cannot be created. See the warnings above." +msgstr "टेम्पलेट स्थापित नहीं हैं या अद्यतन नहीं हैं, इसलिए क्लस्टर डिवाइस नहीं बनाए जा सकते। ऊपर की चेतावनियाँ देखें।" + +#: lib/HealthPage.php +msgid "Install Templates" +msgstr "टेम्पलेट स्थापित करें" + +#: lib/HealthPage.php +msgid "Snapshot Sections" +msgstr "स्नैपशॉट खंड" + +#: lib/HealthPage.php +msgid "Data Age" +msgstr "डेटा की आयु" + +#: lib/HealthPage.php +msgid "Error" +msgstr "त्रुटि" + +#: lib/HealthPage.php +msgid "Last Attempt" +msgstr "पिछला प्रयास" + +#: lib/HealthPage.php +msgid "Records" +msgstr "रिकॉर्ड" + +#: lib/HealthPage.php +msgid "Section" +msgstr "खंड" + +#: lib/HealthPage.php +#, php-format +msgid "The last template install failed: %s" +msgstr "पिछली टेम्पलेट स्थापना विफल हुई: %s" + +#: lib/HealthPage.php +msgid "Some HPC Scheduler templates are missing from Cacti. Install them below." +msgstr "Cacti में कुछ HPC Scheduler टेम्पलेट नहीं हैं। उन्हें नीचे स्थापित करें।" + +#: lib/HealthPage.php +#, php-format +msgid "%s, discovered" +msgstr "%s, खोजा गया" + +#: lib/HealthWarnings.php +#, php-format +msgid "Maximum Answer Size is %d MiB, but a decoded answer of that size does not fit in the Collection Memory of %d MiB; the reader allows %d MiB. Raise Collection Memory or lower Maximum Answer Size in Settings." +msgstr "अधिकतम उत्तर आकार %d MiB है, पर इतने बड़े उत्तर का डिकोड किया रूप %d MiB संग्रह मेमोरी में नहीं समाता; रीडर %d MiB की अनुमति देता है। सेटिंग में संग्रह मेमोरी बढ़ाएँ या अधिकतम उत्तर आकार घटाएँ।" + +#: lib/HealthWarnings.php +#, php-format +msgid "Assigned to poller %d, a remote data collector. This release collects only on the main poller, so the cluster is not collected; remote collection is planned for phase 3. Assign it to the main poller." +msgstr "दूरस्थ डेटा कलेक्टर पोलर %d को सौंपा गया है। यह रिलीज़ केवल मुख्य पोलर पर संग्रह करती है, इसलिए क्लस्टर का संग्रह नहीं होता; दूरस्थ संग्रह चरण 3 में नियोजित है। इसे मुख्य पोलर दें।" + +#: lib/HealthWarnings.php +#, php-format +msgid "The collection interval is below the %d second floor." +msgstr "संग्रह अंतराल %d सेकंड की न्यूनतम सीमा से कम है।" + +#: lib/HealthWarnings.php +#, php-format +msgid "The collection interval of %d seconds is shorter than the poller interval of %d seconds; data is collected every %d seconds." +msgstr "%d सेकंड का संग्रह अंतराल पोलर के %d सेकंड अंतराल से छोटा है; डेटा हर %d सेकंड एकत्र होता है।" + +#: lib/HealthWarnings.php +msgid "slurmrestd is reached over plain HTTP on the loopback address; the token crosses the local network stack unencrypted." +msgstr "slurmrestd तक लूपबैक पते पर सादे HTTP से पहुँचा जाता है; टोकन स्थानीय नेटवर्क स्टैक से बिना एन्क्रिप्शन गुजरता है।" + +#: lib/HealthWarnings.php +msgid "No reader run has finished for this cluster yet." +msgstr "इस क्लस्टर के लिए रीडर का कोई रन अभी पूरा नहीं हुआ।" + +#: lib/HealthWarnings.php +#, php-format +msgid "Token file: %s." +msgstr "टोकन फ़ाइल: %s।" + +#: lib/HealthWarnings.php +#, php-format +msgid "The token expired %s." +msgstr "टोकन %s समाप्त हो गया।" + +#: lib/HealthWarnings.php +#, php-format +msgid "The token expires in %d minutes." +msgstr "टोकन %d मिनट में समाप्त होगा।" + +#: lib/HealthWarnings.php +#, php-format +msgid "The last run used its whole time budget of %d seconds; some sections were not collected." +msgstr "पिछले रन ने %d सेकंड का पूरा समय बजट उपयोग किया; कुछ खंड एकत्र नहीं हुए।" + +#: lib/HealthWarnings.php +#, php-format +msgid "The scheduler reports Slurm %s, which is not a supported release (%s)." +msgstr "शेड्यूलर Slurm %s बताता है, जो समर्थित रिलीज़ (%s) में नहीं है।" + +#: lib/HealthWarnings.php +#, php-format +msgid "The scheduler reports Slurm %s, which does not ship the data parser %s chosen in Settings." +msgstr "शेड्यूलर Slurm %s बताता है, जिसमें सेटिंग में चुना डेटा पार्सर %s नहीं मिलता।" + +#: lib/HealthWarnings.php +msgid "Client commands ran without a memory limit; set the prlimit path in Settings." +msgstr "क्लाइंट कमांड बिना मेमोरी सीमा के चले; सेटिंग में prlimit पथ सेट करें।" + +#: lib/HealthWarnings.php +#, php-format +msgid "Last error: %s." +msgstr "पिछली त्रुटि: %s।" + +#: lib/HealthWarnings.php +#, php-format +msgid "Collection is paused for %d seconds after a rate limit." +msgstr "दर सीमा के बाद संग्रह %d सेकंड के लिए रुका है।" + +#: lib/HealthWarnings.php +msgid "Data is stale; graphs and alerts read it as unknown." +msgstr "डेटा पुराना है; ग्राफ़ और अलर्ट इसे अज्ञात मानते हैं।" + +#: lib/JobState.php lib/OverviewPage.php +msgid "Pending" +msgstr "लंबित" + +#: lib/JobState.php lib/OverviewPage.php lib/ReasonFamily.php +msgid "Held" +msgstr "रोका गया" + +#: lib/JobState.php lib/OverviewPage.php +msgid "Running" +msgstr "चल रहा" + +#: lib/JobState.php +msgid "Completing" +msgstr "पूरा हो रहा" + +#: lib/JobState.php lib/NodeState.php lib/ReasonFamily.php +msgid "Other" +msgstr "अन्य" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Idle" +msgstr "निष्क्रिय" + +#: lib/NodeState.php +msgid "Allocated" +msgstr "आवंटित" + +#: lib/NodeState.php +msgid "Mixed" +msgstr "मिश्रित" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Drained" +msgstr "ड्रेन किया गया" + +#: lib/NodeState.php +msgid "Draining" +msgstr "ड्रेन हो रहा" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Down" +msgstr "बंद" + +#: lib/NodeState.php +msgid "Maintenance" +msgstr "रखरखाव" + +#: lib/NodeState.php +msgid "Reserved" +msgstr "आरक्षित" + +#: lib/NodeState.php +msgid "Powered down" +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 "HPC Scheduler Operations" +msgstr "HPC Scheduler संचालन" + +#: 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/OverviewPage.php lib/Pages.php setup.php +msgid "HPC Scheduler" +msgstr "HPC Scheduler" + +#: lib/OverviewPage.php +msgid "Collected" +msgstr "एकत्रित" + +#: lib/OverviewPage.php +msgid "Details" +msgstr "विवरण" + +#: lib/OverviewPage.php lib/Section.php +msgid "Nodes" +msgstr "नोड" + +#: lib/OverviewPage.php +msgid "No clusters are collected yet." +msgstr "अभी कोई क्लस्टर एकत्र नहीं हुआ।" + +#: lib/OverviewPage.php +msgid "Pending reasons" +msgstr "लंबित कारण" + +#: lib/OverviewPage.php +msgid "Graphs" +msgstr "ग्राफ़" + +#: lib/OverviewPage.php +msgid "A dash means the plugin has no current data for that value: the section failed, is stale, or was never collected. Pending excludes held jobs. Drained counts every node with the drain flag, including nodes that are also down." +msgstr "डैश का अर्थ है कि उस मान का वर्तमान डेटा नहीं है: खंड विफल, पुराना या कभी एकत्र नहीं हुआ। लंबित में रोके गए जॉब शामिल नहीं हैं। ड्रेन की गिनती में drain फ़्लैग वाला हर नोड आता है, जिसमें down नोड भी हैं।" + +#: lib/OverviewPage.php +#, php-format +msgid "Pending Reasons: %s" +msgstr "लंबित कारण: %s" + +#: lib/OverviewPage.php +msgid "Family" +msgstr "समूह" + +#: lib/OverviewPage.php lib/Section.php +msgid "Jobs" +msgstr "जॉब" + +#: lib/OverviewPage.php lib/Section.php +msgid "Partitions" +msgstr "पार्टिशन" + +#: lib/OverviewPage.php +msgid "Reason" +msgstr "कारण" + +#: lib/OverviewPage.php +msgid "No pending jobs." +msgstr "कोई लंबित जॉब नहीं।" + +#: lib/OverviewPage.php +#, php-format +msgid "Only the %d reasons with the most jobs are listed." +msgstr "केवल सबसे अधिक जॉब वाले %d कारण दिखाए जाते हैं।" + +#: lib/OverviewPage.php +msgid "Each job counts under the last reason the scheduler examined for it, which need not be the only thing holding it back. A job in several partitions counts once here and once in each partition it names. Held jobs are listed with their hold reason." +msgstr "हर जॉब शेड्यूलर द्वारा आखिरी जाँचे गए कारण के तहत गिना जाता है; यही उसे रोकने वाला अकेला कारण होना ज़रूरी नहीं। कई पार्टिशन वाला जॉब यहाँ एक बार और उसके हर नामित पार्टिशन में एक बार गिना जाता है। रोके गए जॉब उनके रोकने के कारण के साथ दिखते हैं।" + +#: lib/OverviewPage.php +msgid "Nodes in Unknown States" +msgstr "अज्ञात स्थिति वाले नोड" + +#: lib/OverviewPage.php +msgid "Names" +msgstr "नाम" + +#: lib/OverviewPage.php +msgid "Slurm State" +msgstr "Slurm स्थिति" + +#: lib/OverviewPage.php +msgid "None. Every node maps to a known state." +msgstr "कोई नहीं। हर नोड किसी ज्ञात स्थिति से मैप है।" + +#: lib/OverviewPage.php +msgid "No jobs snapshot has been collected yet." +msgstr "अभी जॉब स्नैपशॉट एकत्र नहीं हुआ।" + +#: lib/OverviewPage.php +msgid "No nodes snapshot has been collected yet, so the node states are unknown." +msgstr "अभी नोड स्नैपशॉट एकत्र नहीं हुआ, इसलिए नोड स्थिति अज्ञात है।" + +#: lib/OverviewPage.php +#, php-format +msgid "Jobs snapshot taken %s (%s), current." +msgstr "जॉब स्नैपशॉट %s (%s) को लिया गया, वर्तमान है।" + +#: lib/OverviewPage.php +#, php-format +msgid "Nodes snapshot taken %s (%s), current." +msgstr "नोड स्नैपशॉट %s (%s) को लिया गया, वर्तमान है।" + +#: lib/OverviewPage.php +#, php-format +msgid "Jobs snapshot taken %s (%s), not current: it is stale or the last collection failed, and the counts below are the last ones collected." +msgstr "जॉब स्नैपशॉट %s (%s) को लिया गया, वर्तमान नहीं है: यह पुराना है या पिछला संग्रह विफल हुआ; नीचे की गिनती पिछले संग्रह की है।" + +#: lib/OverviewPage.php +#, php-format +msgid "Nodes snapshot taken %s (%s), not current: it is stale or the last collection failed, and the nodes below are the last ones collected." +msgstr "नोड स्नैपशॉट %s (%s) को लिया गया, वर्तमान नहीं है: यह पुराना है या पिछला संग्रह विफल हुआ; नीचे के नोड पिछले संग्रह के हैं।" + +#: lib/Pages.php +msgid "HPC Scheduler Operator" +msgstr "HPC Scheduler ऑपरेटर" + +#: lib/Pages.php +msgid "HPC Scheduler View" +msgstr "HPC Scheduler दृश्य" + +#: lib/Pages.php +msgid "HPC Scheduler Admin" +msgstr "HPC Scheduler प्रशासन" + +#: lib/Pages.php +msgid "HPC Scheduler Health" +msgstr "HPC Scheduler स्वास्थ्य" + +#: lib/ReasonFamily.php +msgid "Priority" +msgstr "प्राथमिकता" + +#: lib/ReasonFamily.php +msgid "Resources" +msgstr "संसाधन" + +#: lib/ReasonFamily.php +msgid "Dependency" +msgstr "निर्भरता" + +#: lib/ReasonFamily.php +msgid "Begin time" +msgstr "शुरू होने का समय" + +#: lib/ReasonFamily.php +msgid "Reservation" +msgstr "आरक्षण" + +#: lib/ReasonFamily.php +msgid "Association limits" +msgstr "असोसिएशन सीमाएँ" + +#: lib/ReasonFamily.php +msgid "QOS limits" +msgstr "QOS सीमाएँ" + +#: lib/ReasonFamily.php +msgid "Partition limits" +msgstr "पार्टिशन सीमाएँ" + +#: lib/ReasonFamily.php +msgid "Node availability" +msgstr "नोड उपलब्धता" + +#: lib/Section.php +msgid "Reservations" +msgstr "आरक्षण" + +#: lib/Section.php +msgid "Fair-share" +msgstr "फेयर-शेयर" + +#: lib/Settings.php +msgid "Slurm Client Commands" +msgstr "Slurm क्लाइंट कमांड" + +#: lib/Settings.php +msgid "Data Parser" +msgstr "डेटा पार्सर" + +#: lib/Settings.php +msgid "Slurm data parser for the client commands. Choose one that the release of every cluster read through client commands ships: v0.0.43 is in 25.05, 25.11, and 26.05 and is removed in 27.05; v0.0.44 needs 25.11 or later; v0.0.45 needs 26.05 or later. The health page warns when a cluster reports a release without it. Clusters read through slurmrestd ignore this setting: they use the newest of these the daemon serves, and the health page shows which." +msgstr "क्लाइंट कमांड के लिए Slurm डेटा पार्सर। ऐसा चुनें जो क्लाइंट कमांड से पढ़े जाने वाले हर क्लस्टर की रिलीज़ में हो: v0.0.43, 25.05, 25.11 और 26.05 में है और 27.05 में हटता है; v0.0.44 को 25.11 या बाद का और v0.0.45 को 26.05 या बाद का चाहिए। किसी क्लस्टर की रिलीज़ में यह न हो तो स्वास्थ्य पृष्ठ चेतावनी देता है। slurmrestd से पढ़े क्लस्टर यह सेटिंग अनदेखी करते हैं: वे डेमन द्वारा दिए गए इनमें से नवीनतम पार्सर का उपयोग करते हैं, जिसे स्वास्थ्य पृष्ठ दिखाता है।" + +#: lib/Settings.php +msgid "Absolute path to squeue on each poller that reads a cluster through client commands. The plugin runs it only as squeue --all --json with the data parser above." +msgstr "क्लाइंट कमांड से क्लस्टर पढ़ने वाले हर पोलर पर squeue का पूर्ण पथ। प्लगइन ऊपर के डेटा पार्सर के साथ केवल squeue --all --json चलाता है।" + +#: lib/Settings.php +msgid "squeue" +msgstr "squeue" + +#: lib/Settings.php +msgid "Absolute path to scontrol. The plugin runs only scontrol --json show node, show partition, and show reservation; never update, reconfigure, or token." +msgstr "scontrol का पूर्ण पथ। प्लगइन केवल scontrol --json show node, show partition और show reservation चलाता है; कभी update, reconfigure या token नहीं।" + +#: lib/Settings.php +msgid "scontrol" +msgstr "scontrol" + +#: lib/Settings.php +msgid "Absolute path to sshare, used only for clusters that collect fair-share." +msgstr "sshare का पूर्ण पथ; केवल फेयर-शेयर एकत्र करने वाले क्लस्टर के लिए उपयोग होता है।" + +#: lib/Settings.php +msgid "sshare" +msgstr "sshare" + +#: lib/Settings.php +msgid "Limits" +msgstr "सीमाएँ" + +#: lib/Settings.php +msgid "Call Timeout" +msgstr "कॉल समय सीमा" + +#: lib/Settings.php +msgid "Seconds one scheduler call may take before it is stopped and its section recorded as failed. A call never runs past the reader time budget either." +msgstr "एक शेड्यूलर कॉल को रोककर उसके खंड को विफल दर्ज करने से पहले उपलब्ध सेकंड। कॉल रीडर के समय बजट से आगे भी कभी नहीं चलता।" + +#: lib/Settings.php +msgid "Maximum Answer Size" +msgstr "अधिकतम उत्तर आकार" + +#: lib/Settings.php +msgid "MiB one scheduler call may return. A larger answer is discarded and its section recorded as failed. Decoding needs about 12 times the answer size, so the reader uses at most (Collection Memory - 64) / 12 MiB and the health page warns when this value is larger." +msgstr "एक शेड्यूलर कॉल के उत्तर का MiB आकार। बड़ा उत्तर त्याग दिया जाता है और खंड विफल दर्ज होता है। डिकोडिंग में उत्तर आकार की लगभग 12 गुना मेमोरी लगती है, इसलिए रीडर अधिकतम (संग्रह मेमोरी - 64) / 12 MiB उपयोग करता है; इससे बड़ा मान होने पर स्वास्थ्य पृष्ठ चेतावनी देता है।" + +#: lib/Settings.php +msgid "Collection Memory" +msgstr "संग्रह मेमोरी" + +#: lib/Settings.php +msgid "MiB of PHP memory each collection run raises its limit to (it never lowers one). The default of 1024 fits answers up to 80 MiB." +msgstr "हर संग्रह रन PHP मेमोरी सीमा को जितने MiB तक बढ़ाता है (कभी घटाता नहीं)। डिफ़ॉल्ट 1024 में 80 MiB तक के उत्तर समाते हैं।" + +#: lib/Settings.php +msgid "Absolute path to prlimit (util-linux), used to cap the address space of each client command. Leave empty to run commands without a memory limit; the health page then warns." +msgstr "prlimit (util-linux) का पूर्ण पथ, जिससे हर क्लाइंट कमांड का एड्रेस स्पेस सीमित होता है। बिना मेमोरी सीमा कमांड चलाने के लिए खाली छोड़ें; स्वास्थ्य पृष्ठ तब चेतावनी देता है।" + +#: lib/Settings.php +msgid "prlimit" +msgstr "prlimit" + +#: lib/Settings.php +msgid "Command Memory Limit" +msgstr "कमांड मेमोरी सीमा" + +#: lib/Settings.php +msgid "MiB of address space each client command may use, through prlimit." +msgstr "prlimit के माध्यम से हर क्लाइंट कमांड जितना एड्रेस स्पेस MiB में उपयोग कर सकता है।" + +#: lib/Settings.php +msgid "slurmrestd Credentials" +msgstr "slurmrestd क्रेडेंशियल" + +#: lib/Settings.php +msgid "Token File Directories" +msgstr "टोकन फ़ाइल निर्देशिकाएँ" + +#: lib/Settings.php +msgid "Absolute directories on the pollers that may hold slurmrestd token files, separated by commas or spaces. A cluster can name only a token file inside one of them, owned by the poller user and reached without a symbolic link. Keep each directory writable only by root and the poller user. Empty means no cluster can use slurmrestd." +msgstr "पोलर पर slurmrestd टोकन फ़ाइल रखने वाली अनुमत पूर्ण निर्देशिकाएँ, अल्पविराम या स्पेस से अलग। क्लस्टर केवल इनमें रखी, पोलर उपयोगकर्ता के स्वामित्व वाली और बिना प्रतीकात्मक लिंक पहुँची टोकन फ़ाइल बता सकता है। हर निर्देशिका केवल root और पोलर उपयोगकर्ता के लिए लिखने योग्य रखें। खाली होने पर कोई क्लस्टर slurmrestd उपयोग नहीं कर सकता।" + +#: lib/Settings.php +msgid "slurmrestd Hosts" +msgstr "slurmrestd होस्ट" + +#: lib/Settings.php +msgid "Optional. The slurmrestd hosts a cluster may name, as host or host:port, separated by commas or spaces. An entry without a port allows any port on that host. Empty allows any host." +msgstr "वैकल्पिक। क्लस्टर द्वारा नामित किए जा सकने वाले slurmrestd होस्ट, host या host:port के रूप में, अल्पविराम या स्पेस से अलग। बिना पोर्ट की प्रविष्टि उस होस्ट का कोई भी पोर्ट अनुमत करती है। खाली होने पर कोई भी होस्ट अनुमत है।" + +#: lib/Settings.php +msgid "Seconds before a token expires when the health page starts to warn, if the token carries an expiry time." +msgstr "यदि टोकन में समाप्ति समय है, तो समाप्ति से कितने सेकंड पहले स्वास्थ्य पृष्ठ चेतावनी शुरू करे।" + +#: lib/Settings.php +msgid "Token Expiry Warning" +msgstr "टोकन समाप्ति चेतावनी" + +#: 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 clusters and snapshots. Clear it to have the uninstall drop them; export the clusters first from HPC Clusters. The plugin creates no Cacti devices or Maint schedules in this release, and the scheduler is never contacted either way." +msgstr "चुनने पर प्लगइन की स्थापना रद्द करने से क्लस्टर और स्नैपशॉट बने रहते हैं। उन्हें हटाने के लिए इसे साफ़ करें; पहले HPC क्लस्टर से क्लस्टर निर्यात करें। इस रिलीज़ में प्लगइन Cacti डिवाइस या Maint शेड्यूल नहीं बनाता, और दोनों स्थितियों में शेड्यूलर से कभी संपर्क नहीं होता।" + +#: lib/TemplateInstaller.php +#, php-format +msgid "The data query file %s is not installed in Cacti's resource/script_server directory." +msgstr "डेटा क्वेरी फ़ाइल %s Cacti की resource/script_server निर्देशिका में स्थापित नहीं है।" + +#: lib/TemplateInstaller.php +#, php-format +msgid "The data query file %s in Cacti's resource/script_server directory differs from the one the plugin ships." +msgstr "Cacti की resource/script_server निर्देशिका में डेटा क्वेरी फ़ाइल %s प्लगइन के साथ आने वाली फ़ाइल से भिन्न है।" + +#: lib/TokenState.php +msgid "readable only by the poller user" +msgstr "केवल पोलर उपयोगकर्ता के लिए पठनीय" + +#: lib/TokenState.php +msgid "readable by the file group; restrict it to the poller user (chmod 600)" +msgstr "फ़ाइल समूह पढ़ सकता है; इसे पोलर उपयोगकर्ता तक सीमित करें (chmod 600)" + +#: lib/TokenState.php +msgid "readable by every user on the poller; restrict it to the poller user (chmod 600)" +msgstr "पोलर का हर उपयोगकर्ता पढ़ सकता है; इसे पोलर उपयोगकर्ता तक सीमित करें (chmod 600)" + +#: lib/TokenState.php +msgid "refused: owned by a user other than the poller user (chown it to the poller user)" +msgstr "अस्वीकृत: पोलर उपयोगकर्ता के बजाय किसी अन्य उपयोगकर्ता का स्वामित्व है (chown से पोलर उपयोगकर्ता को दें)" + +#: lib/TokenState.php +msgid "missing or not readable by the poller user" +msgstr "अनुपस्थित है या पोलर उपयोगकर्ता पढ़ नहीं सकता" + +#: lib/TokenState.php +msgid "refused: outside the token file directories set in Settings, reached through a symbolic link, not a regular file, writable by others, or too large; the log names the reason" +msgstr "अस्वीकृत: सेटिंग की टोकन फ़ाइल निर्देशिकाओं से बाहर, प्रतीकात्मक लिंक से पहुँची, नियमित फ़ाइल नहीं, दूसरों के लिए लिखने योग्य, या बहुत बड़ी; कारण लॉग में है" + +#: lib/TokenState.php +msgid "empty" +msgstr "खाली" + +#: lib/Transport.php +msgid "Slurm client commands" +msgstr "Slurm क्लाइंट कमांड" + +#: lib/Transport.php +msgid "slurmrestd" +msgstr "slurmrestd" + +#: setup.php +#, php-format +msgid "The HPC Scheduler plugin requires PHP %s or later. This server runs PHP %s, so the plugin was not installed or enabled." +msgstr "HPC Scheduler प्लगइन को PHP %s या बाद का संस्करण चाहिए। यह सर्वर PHP %s चला रहा है, इसलिए प्लगइन स्थापित या सक्षम नहीं किया गया।" + +#: setup.php +msgid "The HPC Scheduler plugin is not enabled." +msgstr "HPC Scheduler प्लगइन सक्षम नहीं है।" + +#: setup.php +#, php-format +msgid "The HPC Scheduler plugin requires PHP %s or later." +msgstr "HPC Scheduler प्लगइन को PHP %s या बाद का संस्करण चाहिए।" + +#: setup.php +msgid "Management" +msgstr "प्रबंधन" diff --git a/locales/po/zh-CN.po b/locales/po/zh-CN.po new file mode 100644 index 0000000..f34af6a --- /dev/null +++ b/locales/po/zh-CN.po @@ -0,0 +1,1070 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# +msgid "" +msgstr "" +"Project-Id-Version: hpcsched 0.1.0-dev\n" +"Report-Msgid-Bugs-To: https://github.com/somethingwithproof/plugin_hpcsched/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" + +#: hpcsched_clusters.php +msgid "You do not have permission for the device of that cluster." +msgstr "您无权访问该集群的设备。" + +#: hpcsched_clusters.php +msgid "Name: another cluster already uses this name." +msgstr "名称:另一个集群已使用此名称。" + +#: hpcsched_clusters.php +msgid "The cluster was not saved: it was changed by someone else since the form was opened, or the write failed. Open it again and repeat the change." +msgstr "未保存集群:表单打开后其他人已修改集群,或写入失败。请重新打开并再次修改。" + +#: hpcsched_clusters.php +msgid "The cluster was saved." +msgstr "已保存集群。" + +#: hpcsched_clusters.php +msgid "The cluster and its cached snapshot were deleted. Its device and graphs were kept. The scheduler was not contacted." +msgstr "已删除集群及其缓存快照。设备和图表已保留。未连接调度器。" + +#: hpcsched_clusters.php +msgid "The device and its graphs were created." +msgstr "已创建设备及其图表。" + +#: hpcsched_clusters.php +msgid "The device was not created: the cluster already has a device, it was changed by someone else since the page was opened, or Cacti refused it. See the Cacti log." +msgstr "未创建设备:集群已有设备、页面打开后其他人修改了集群,或 Cacti 拒绝了创建请求。请查看 Cacti 日志。" + +#: hpcsched_clusters.php +msgid "The cluster was mapped to the device." +msgstr "已将集群映射到设备。" + +#: hpcsched_clusters.php +msgid "The cluster was not mapped: the device does not exist, is not allowed to you, already carries another cluster, or the cluster was changed by someone else since the page was opened." +msgstr "未映射集群:设备不存在、您无权访问、设备已承载另一个集群,或页面打开后其他人修改了集群。" + +#: hpcsched_clusters.php +msgid "Missing graphs were added." +msgstr "已添加缺失的图表。" + +#: hpcsched_clusters.php +msgid "The cluster was not unmapped: it was changed by someone else since the page was opened." +msgstr "未取消集群映射:页面打开后其他人已修改集群。" + +#: hpcsched_clusters.php +msgid "The cluster was unmapped. The device and its graphs were kept." +msgstr "已取消集群映射。设备及其图表已保留。" + +#: hpcsched_clusters.php +msgid "The partitions were reindexed from the snapshot." +msgstr "已根据快照重新索引分区。" + +#: hpcsched_health.php +msgid "The HPC Scheduler templates are installed." +msgstr "已安装 HPC Scheduler 模板。" + +#: hpcsched_health.php +#, php-format +msgid "The templates were not installed: %s" +msgstr "未安装模板:%s" + +#: hpcsched_operator.php +msgid "Monitoring view" +msgstr "监控视图" + +#: hpcsched_operator.php +msgid "Observations could not be read. Ask an administrator to check the plugin log." +msgstr "无法读取观测结果。请联系管理员检查插件日志。" + +#: include/operator.php +msgid "Inspect pending reason families and snapshot freshness on the overview. Escalate credentials, cluster mappings and maintenance policy to an administrator." +msgstr "在概览中检查等待原因类别和快照时效性。凭据、集群映射和维护策略请交由管理员处理。" + +#: lib/ClusterInput.php +msgid "Name: use 1 to 64 letters, digits, dots, dashes, or underscores, starting with a letter or digit." +msgstr "名称:使用 1 至 64 个字母、数字、点、连字符或下划线,且以字母或数字开头。" + +#: lib/ClusterInput.php +msgid "Poller: choose one of the listed pollers." +msgstr "采集器:选择列出的采集器之一。" + +#: lib/ClusterInput.php +#, php-format +msgid "Collection Interval: enter whole seconds from %d to %d." +msgstr "采集间隔:输入 %d 至 %d 的整数秒数。" + +#: lib/ClusterInput.php +msgid "Transport: choose one of the listed transports." +msgstr "传输方式:选择列出的传输方式之一。" + +#: lib/ClusterInput.php +msgid "slurm.conf: enter an absolute path, or leave it empty to use the poller default." +msgstr "slurm.conf:输入绝对路径,或留空以使用采集器默认值。" + +#: lib/ClusterInput.php +msgid "slurmrestd URL: this host and port are not on the slurmrestd host list in Settings." +msgstr "slurmrestd URL:此主机和端口不在设置中的 slurmrestd 主机列表中。" + +#: lib/ClusterInput.php +msgid "slurmrestd URL: enter an https:// URL without user name, query, or fragment; plain http:// is accepted only for a loopback address." +msgstr "slurmrestd URL:输入不含用户名、查询参数或片段的 https:// URL;仅环回地址允许使用明文 http://。" + +#: lib/ClusterInput.php +msgid "slurmrestd User: use at most 64 letters, digits, dots, dashes, or underscores, or leave it empty for a user token." +msgstr "slurmrestd 用户:最多使用 64 个字母、数字、点、连字符或下划线;使用用户令牌时可留空。" + +#: lib/ClusterInput.php +msgid "Token File: enter the absolute path of the token file on the poller. The token itself is never entered here." +msgstr "令牌文件:输入采集器上令牌文件的绝对路径。此处从不输入令牌本身。" + +#: lib/ClusterInput.php +msgid "Token File: no token file directories are set yet. Ask a Cacti administrator to set them under Settings, HPC Scheduler." +msgstr "令牌文件:尚未设置令牌文件目录。请让 Cacti 管理员在“设置 > HPC Scheduler”下设置。" + +#: lib/ClusterInput.php +#, php-format +msgid "Token File: the file must be inside one of the token file directories set in Settings (%s)." +msgstr "令牌文件:文件必须位于设置中指定的令牌文件目录之一(%s)内。" + +#: lib/ClustersPage.php lib/Pages.php +msgid "HPC Clusters" +msgstr "HPC 集群" + +#: lib/ClustersPage.php lib/OperatorPage.php +msgid "Actions" +msgstr "操作" + +#: lib/ClustersPage.php +msgid "Device" +msgstr "设备" + +#: lib/ClustersPage.php +msgid "Interval" +msgstr "间隔" + +#: lib/ClustersPage.php +msgid "Name" +msgstr "名称" + +#: lib/ClustersPage.php +msgid "Poller" +msgstr "采集器" + +#: lib/ClustersPage.php +msgid "Sections" +msgstr "部分" + +#: lib/ClustersPage.php lib/HealthPage.php lib/OperatorPage.php +msgid "State" +msgstr "状态" + +#: lib/ClustersPage.php lib/HealthPage.php +msgid "Transport" +msgstr "传输方式" + +#: lib/ClustersPage.php lib/HealthPage.php +msgid "No clusters configured yet." +msgstr "尚未配置集群。" + +#: lib/ClustersPage.php +msgid "Disable" +msgstr "禁用" + +#: lib/ClustersPage.php +msgid "Enable" +msgstr "启用" + +#: lib/ClustersPage.php +#, php-format +msgid "Deleted poller %d" +msgstr "已删除的采集器 %d" + +#: lib/ClustersPage.php +#, php-format +msgid "%d seconds" +msgstr "%d 秒" + +#: lib/ClustersPage.php +msgid "None" +msgstr "无" + +#: lib/ClustersPage.php +msgid "Delete" +msgstr "删除" + +#: lib/ClustersPage.php +msgid "Export" +msgstr "导出" + +#: lib/ClustersPage.php +msgid "Download the cluster configuration as JSON before an uninstall that drops the plugin tables. It holds token file paths, never a token." +msgstr "在卸载并删除插件表之前,将集群配置下载为 JSON。文件包含令牌文件路径,绝不包含令牌。" + +#: lib/ClustersPage.php +#, php-format +msgid "Cluster: %s" +msgstr "集群:%s" + +#: lib/ClustersPage.php +msgid "New Cluster" +msgstr "新建集群" + +#: lib/ClustersPage.php +msgid "Collection Interval (seconds)" +msgstr "采集间隔(秒)" + +#: lib/ClustersPage.php +msgid "Enabled" +msgstr "已启用" + +#: lib/ClustersPage.php +msgid "Collect Reservations" +msgstr "采集预留" + +#: lib/ClustersPage.php +msgid "Collect Fair-share (accounts only)" +msgstr "采集公平份额(仅账户)" + +#: lib/ClustersPage.php +msgid "slurm.conf Path (optional)" +msgstr "slurm.conf 路径(可选)" + +#: lib/ClustersPage.php +msgid "slurmrestd URL" +msgstr "slurmrestd URL" + +#: lib/ClustersPage.php +msgid "slurmrestd User (optional)" +msgstr "slurmrestd 用户(可选)" + +#: lib/ClustersPage.php +msgid "Token File on the Poller" +msgstr "采集器上的令牌文件" + +#: lib/ClustersPage.php +msgid "Client commands use the binaries set under Settings > HPC Scheduler and the poller user's own Slurm authentication; the optional slurm.conf path selects a cluster. slurmrestd fields are used only with that transport. The token file must be readable by the poller user only; the plugin reads it at each run and never stores the token." +msgstr "客户端命令使用“设置 > HPC Scheduler”下指定的二进制文件及采集器用户自身的 Slurm 身份验证;可选的 slurm.conf 路径用于选择集群。slurmrestd 字段仅在使用该传输方式时生效。令牌文件必须仅可由采集器用户读取;插件每次运行时读取文件,绝不存储令牌。" + +#: lib/ClustersPage.php +msgid "Save" +msgstr "保存" + +#: lib/ClustersPage.php +#, php-format +msgid "Device for Cluster: %s" +msgstr "集群的设备:%s" + +#: lib/ClustersPage.php +#, php-format +msgid "Mapped to device %s (id %d). Its graphs follow Cacti's device and graph permissions." +msgstr "已映射到设备 %s(ID %d)。其图表遵循 Cacti 的设备和图表权限。" + +#: lib/ClustersPage.php +msgid "Adding the missing graphs adds:" +msgstr "添加缺失图表将添加:" + +#: lib/ClustersPage.php +msgid "Add Missing Graphs" +msgstr "添加缺失图表" + +#: lib/ClustersPage.php +msgid "Reindex Partitions" +msgstr "重新索引分区" + +#: lib/ClustersPage.php +msgid "Unmap" +msgstr "取消映射" + +#: lib/ClustersPage.php +msgid "Unmapping keeps the device, its graphs, and their history." +msgstr "取消映射会保留设备、图表及其历史记录。" + +#: lib/ClustersPage.php +#, php-format +msgid "The cluster is still mapped to device %d, which no longer exists. Creating or mapping a device replaces that mapping." +msgstr "集群仍映射到已不存在的设备 %d。创建或映射设备将替换该映射。" + +#: lib/ClustersPage.php +msgid "Creating a device adds:" +msgstr "创建设备将添加:" + +#: lib/ClustersPage.php +msgid "Without partition graphs, only the cluster graphs are created, and the data sources and calls for the partitions above are left out." +msgstr "如果不创建分区图表,则只创建集群图表,并省略上述分区的数据源和调用。" + +#: lib/ClustersPage.php +msgid "Also create the partition graphs" +msgstr "同时创建分区图表" + +#: lib/ClustersPage.php +msgid "Create Device" +msgstr "创建设备" + +#: lib/ClustersPage.php +msgid "Or map an existing device" +msgstr "或映射现有设备" + +#: lib/ClustersPage.php +msgid "Map Device" +msgstr "映射设备" + +#: lib/DeviceProvisioner.php +msgid "The HPC Scheduler templates are not installed. Install them from the health page." +msgstr "未安装 HPC Scheduler 模板。请从健康状态页面安装。" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "A device \"%s\" from the %s device template, polled by poller %d, with availability checks off." +msgstr "设备“%s”,使用 %s 设备模板,由采集器 %d 采集,可用性检查已关闭。" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "The data query \"%s\", indexing the %d partitions known now." +msgstr "数据查询“%s”,索引当前已知的 %d 个分区。" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "%d cluster graphs, each with its own \"%s\" data source." +msgstr "%d 个集群图表,每个具有独立的“%s”数据源。" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "%d partition graphs, %d for each partition, each with its own data source." +msgstr "%d 个分区图表,每个分区 %d 个,每个图表具有独立数据源。" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "In all: %d data sources and %d RRD files, and %d script server calls per poll. Partitions added later get graphs from the New Graphs page." +msgstr "总计:%d 个数据源、%d 个 RRD 文件,以及每次采集 %d 次脚本服务器调用。之后添加的分区可从“新建图表”页面创建图表。" + +#: lib/DeviceProvisioner.php +#, php-format +msgid "Created by the HPC Scheduler plugin for cluster %s. Its values come from the plugin snapshot; the host name is a reserved name that is never contacted." +msgstr "由 HPC Scheduler 插件为集群 %s 创建。数值来自插件快照;主机名为保留名称,永远不会连接该主机。" + +#: lib/ErrorClass.php +msgid "configuration: a path, URL, or setting is missing or not allowed" +msgstr "配置:路径、URL 或设置缺失或不被允许" + +#: lib/ErrorClass.php +msgid "the scheduler could not be reached" +msgstr "无法连接调度器" + +#: lib/ErrorClass.php +msgid "the call took longer than allowed and was stopped" +msgstr "调用超出允许时间,已停止" + +#: lib/ErrorClass.php +msgid "the answer was larger than allowed and was discarded" +msgstr "响应超出允许大小,已丢弃" + +#: lib/ErrorClass.php +msgid "the answer could not be parsed with the pinned data parser" +msgstr "无法使用固定版本的数据解析器解析响应" + +#: lib/ErrorClass.php +msgid "the scheduler refused the credential" +msgstr "调度器拒绝了凭据" + +#: lib/ErrorClass.php +msgid "the scheduler account may not see this data (PrivateData or permissions)" +msgstr "调度器账户无权查看此数据(PrivateData 或权限限制)" + +#: lib/ErrorClass.php +msgid "the controller asked clients to back off (rate limit)" +msgstr "控制器要求客户端退避(速率限制)" + +#: lib/ErrorClass.php +msgid "the server answered 304 to a request that was not conditional; previous data kept" +msgstr "服务器对无条件请求返回 304;已保留先前数据" + +#: lib/ErrorClass.php +msgid "the plugin refused a call outside its allowlist" +msgstr "插件拒绝了允许列表之外的调用" + +#: lib/ErrorClass.php +msgid "the call failed" +msgstr "调用失败" + +#: lib/ErrorClass.php +msgid "the reader ran out of memory; lower Maximum Answer Size or raise Collection Memory in Settings" +msgstr "读取器内存不足;请在设置中降低“最大响应大小”或提高“采集内存”" + +#: lib/Format.php lib/OperatorPage.php lib/OverviewPage.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/Freshness.php +msgid "Current" +msgstr "当前有效" + +#: lib/Freshness.php +msgid "Delayed" +msgstr "延迟" + +#: lib/Freshness.php +msgid "Stale" +msgstr "已过期" + +#: lib/Freshness.php +msgid "Never collected" +msgstr "从未采集" + +#: lib/HealthPage.php +msgid "Clusters" +msgstr "集群" + +#: lib/HealthPage.php +msgid "Calls" +msgstr "调用" + +#: lib/HealthPage.php lib/OverviewPage.php +msgid "Cluster" +msgstr "集群" + +#: lib/HealthPage.php +msgid "Duration" +msgstr "持续时间" + +#: lib/HealthPage.php lib/OverviewPage.php +msgid "Freshness" +msgstr "时效性" + +#: lib/HealthPage.php +msgid "Last Run" +msgstr "上次运行" + +#: lib/HealthPage.php +msgid "Last Success" +msgstr "上次成功" + +#: lib/HealthPage.php +msgid "Outcome" +msgstr "结果" + +#: lib/HealthPage.php +msgid "Parser" +msgstr "解析器" + +#: lib/HealthPage.php +msgid "Slurm" +msgstr "Slurm" + +#: lib/HealthPage.php +msgid "All clusters" +msgstr "所有集群" + +#: lib/HealthPage.php +msgid "Warnings" +msgstr "警告" + +#: lib/HealthPage.php +msgid "Warning" +msgstr "警告" + +#: lib/HealthPage.php +msgid "No warnings." +msgstr "无警告。" + +#: lib/HealthPage.php +msgid "Templates" +msgstr "模板" + +#: lib/HealthPage.php +msgid "The device, data, and graph templates and the partition data query are installed." +msgstr "已安装设备、数据、图表模板及分区数据查询。" + +#: lib/HealthPage.php +msgid "The templates are not installed or not current, so cluster devices cannot be created. See the warnings above." +msgstr "模板未安装或不是最新版本,因此无法创建集群设备。请查看上方警告。" + +#: lib/HealthPage.php +msgid "Install Templates" +msgstr "安装模板" + +#: lib/HealthPage.php +msgid "Snapshot Sections" +msgstr "快照部分" + +#: lib/HealthPage.php +msgid "Data Age" +msgstr "数据年龄" + +#: lib/HealthPage.php +msgid "Error" +msgstr "错误" + +#: lib/HealthPage.php +msgid "Last Attempt" +msgstr "上次尝试" + +#: lib/HealthPage.php +msgid "Records" +msgstr "记录" + +#: lib/HealthPage.php +msgid "Section" +msgstr "部分" + +#: lib/HealthPage.php +#, php-format +msgid "The last template install failed: %s" +msgstr "上次模板安装失败:%s" + +#: lib/HealthPage.php +msgid "Some HPC Scheduler templates are missing from Cacti. Install them below." +msgstr "Cacti 中缺少部分 HPC Scheduler 模板。请在下方安装。" + +#: lib/HealthPage.php +#, php-format +msgid "%s, discovered" +msgstr "%s,已发现" + +#: lib/HealthWarnings.php +#, php-format +msgid "Maximum Answer Size is %d MiB, but a decoded answer of that size does not fit in the Collection Memory of %d MiB; the reader allows %d MiB. Raise Collection Memory or lower Maximum Answer Size in Settings." +msgstr "最大响应大小为 %d MiB,但该大小的响应解码后无法放入 %d MiB 的采集内存;读取器允许 %d MiB。请在设置中提高采集内存或降低最大响应大小。" + +#: lib/HealthWarnings.php +#, php-format +msgid "Assigned to poller %d, a remote data collector. This release collects only on the main poller, so the cluster is not collected; remote collection is planned for phase 3. Assign it to the main poller." +msgstr "已分配给采集器 %d(远程数据采集器)。此版本仅在主采集器上采集,因此不会采集此集群;远程采集计划在第 3 阶段实现。请将其分配给主采集器。" + +#: lib/HealthWarnings.php +#, php-format +msgid "The collection interval is below the %d second floor." +msgstr "采集间隔低于 %d 秒的下限。" + +#: lib/HealthWarnings.php +#, php-format +msgid "The collection interval of %d seconds is shorter than the poller interval of %d seconds; data is collected every %d seconds." +msgstr "采集间隔 %d 秒短于采集器间隔 %d 秒;实际每 %d 秒采集一次数据。" + +#: lib/HealthWarnings.php +msgid "slurmrestd is reached over plain HTTP on the loopback address; the token crosses the local network stack unencrypted." +msgstr "通过环回地址上的明文 HTTP 访问 slurmrestd;令牌未加密地经过本地网络协议栈。" + +#: lib/HealthWarnings.php +msgid "No reader run has finished for this cluster yet." +msgstr "此集群尚无已完成的读取器运行。" + +#: lib/HealthWarnings.php +#, php-format +msgid "Token file: %s." +msgstr "令牌文件:%s。" + +#: lib/HealthWarnings.php +#, php-format +msgid "The token expired %s." +msgstr "令牌已于 %s 过期。" + +#: lib/HealthWarnings.php +#, php-format +msgid "The token expires in %d minutes." +msgstr "令牌将在 %d 分钟后过期。" + +#: lib/HealthWarnings.php +#, php-format +msgid "The last run used its whole time budget of %d seconds; some sections were not collected." +msgstr "上次运行耗尽了 %d 秒的时间预算;部分内容未采集。" + +#: lib/HealthWarnings.php +#, php-format +msgid "The scheduler reports Slurm %s, which is not a supported release (%s)." +msgstr "调度器报告的 Slurm 版本为 %s,不在支持的版本(%s)中。" + +#: lib/HealthWarnings.php +#, php-format +msgid "The scheduler reports Slurm %s, which does not ship the data parser %s chosen in Settings." +msgstr "调度器报告的 Slurm 版本为 %s,未提供设置中选择的数据解析器 %s。" + +#: lib/HealthWarnings.php +msgid "Client commands ran without a memory limit; set the prlimit path in Settings." +msgstr "客户端命令未设置内存限制;请在设置中配置 prlimit 路径。" + +#: lib/HealthWarnings.php +#, php-format +msgid "Last error: %s." +msgstr "上次错误:%s。" + +#: lib/HealthWarnings.php +#, php-format +msgid "Collection is paused for %d seconds after a rate limit." +msgstr "触发速率限制后暂停采集 %d 秒。" + +#: lib/HealthWarnings.php +msgid "Data is stale; graphs and alerts read it as unknown." +msgstr "数据已过期;图表和告警将其视为未知。" + +#: lib/JobState.php lib/OverviewPage.php +msgid "Pending" +msgstr "等待中" + +#: lib/JobState.php lib/OverviewPage.php lib/ReasonFamily.php +msgid "Held" +msgstr "已保留" + +#: lib/JobState.php lib/OverviewPage.php +msgid "Running" +msgstr "运行中" + +#: lib/JobState.php +msgid "Completing" +msgstr "正在完成" + +#: lib/JobState.php lib/NodeState.php lib/ReasonFamily.php +msgid "Other" +msgstr "其他" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Idle" +msgstr "空闲" + +#: lib/NodeState.php +msgid "Allocated" +msgstr "已分配" + +#: lib/NodeState.php +msgid "Mixed" +msgstr "混合" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Drained" +msgstr "已排空" + +#: lib/NodeState.php +msgid "Draining" +msgstr "正在排空" + +#: lib/NodeState.php lib/OverviewPage.php +msgid "Down" +msgstr "已断开" + +#: lib/NodeState.php +msgid "Maintenance" +msgstr "维护" + +#: lib/NodeState.php +msgid "Reserved" +msgstr "已预留" + +#: lib/NodeState.php +msgid "Powered down" +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 "HPC Scheduler Operations" +msgstr "HPC Scheduler 运维" + +#: 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/OverviewPage.php lib/Pages.php setup.php +msgid "HPC Scheduler" +msgstr "HPC Scheduler" + +#: lib/OverviewPage.php +msgid "Collected" +msgstr "已采集" + +#: lib/OverviewPage.php +msgid "Details" +msgstr "详情" + +#: lib/OverviewPage.php lib/Section.php +msgid "Nodes" +msgstr "节点" + +#: lib/OverviewPage.php +msgid "No clusters are collected yet." +msgstr "尚未采集任何集群。" + +#: lib/OverviewPage.php +msgid "Pending reasons" +msgstr "等待原因" + +#: lib/OverviewPage.php +msgid "Graphs" +msgstr "图表" + +#: lib/OverviewPage.php +msgid "A dash means the plugin has no current data for that value: the section failed, is stale, or was never collected. Pending excludes held jobs. Drained counts every node with the drain flag, including nodes that are also down." +msgstr "短横线表示插件没有该值的当前数据:该部分失败、已过期或从未采集。等待任务不包括被保留的任务。“已排空”统计所有带 drain 标志的节点,包括同时处于 down 状态的节点。" + +#: lib/OverviewPage.php +#, php-format +msgid "Pending Reasons: %s" +msgstr "等待原因:%s" + +#: lib/OverviewPage.php +msgid "Family" +msgstr "类别" + +#: lib/OverviewPage.php lib/Section.php +msgid "Jobs" +msgstr "任务" + +#: lib/OverviewPage.php lib/Section.php +msgid "Partitions" +msgstr "分区" + +#: lib/OverviewPage.php +msgid "Reason" +msgstr "原因" + +#: lib/OverviewPage.php +msgid "No pending jobs." +msgstr "无等待任务。" + +#: lib/OverviewPage.php +#, php-format +msgid "Only the %d reasons with the most jobs are listed." +msgstr "仅列出任务数最多的 %d 个原因。" + +#: lib/OverviewPage.php +msgid "Each job counts under the last reason the scheduler examined for it, which need not be the only thing holding it back. A job in several partitions counts once here and once in each partition it names. Held jobs are listed with their hold reason." +msgstr "每个任务按调度器最近检查的原因归类,该原因不一定是阻止任务运行的唯一因素。属于多个分区的任务在此处计一次,在其指定的每个分区中各计一次。被保留任务按其保留原因列出。" + +#: lib/OverviewPage.php +msgid "Nodes in Unknown States" +msgstr "状态未知的节点" + +#: lib/OverviewPage.php +msgid "Names" +msgstr "名称" + +#: lib/OverviewPage.php +msgid "Slurm State" +msgstr "Slurm 状态" + +#: lib/OverviewPage.php +msgid "None. Every node maps to a known state." +msgstr "无。所有节点均映射到已知状态。" + +#: lib/OverviewPage.php +msgid "No jobs snapshot has been collected yet." +msgstr "尚未采集任务快照。" + +#: lib/OverviewPage.php +msgid "No nodes snapshot has been collected yet, so the node states are unknown." +msgstr "尚未采集节点快照,因此节点状态未知。" + +#: lib/OverviewPage.php +#, php-format +msgid "Jobs snapshot taken %s (%s), current." +msgstr "任务快照采集于 %s(%s),当前有效。" + +#: lib/OverviewPage.php +#, php-format +msgid "Nodes snapshot taken %s (%s), current." +msgstr "节点快照采集于 %s(%s),当前有效。" + +#: lib/OverviewPage.php +#, php-format +msgid "Jobs snapshot taken %s (%s), not current: it is stale or the last collection failed, and the counts below are the last ones collected." +msgstr "任务快照采集于 %s(%s),当前无效:快照已过期或上次采集失败,下方计数为上次采集的值。" + +#: lib/OverviewPage.php +#, php-format +msgid "Nodes snapshot taken %s (%s), not current: it is stale or the last collection failed, and the nodes below are the last ones collected." +msgstr "节点快照采集于 %s(%s),当前无效:快照已过期或上次采集失败,下方节点为上次采集的结果。" + +#: lib/Pages.php +msgid "HPC Scheduler Operator" +msgstr "HPC Scheduler 操作员" + +#: lib/Pages.php +msgid "HPC Scheduler View" +msgstr "HPC Scheduler 查看" + +#: lib/Pages.php +msgid "HPC Scheduler Admin" +msgstr "HPC Scheduler 管理" + +#: lib/Pages.php +msgid "HPC Scheduler Health" +msgstr "HPC Scheduler 健康状态" + +#: lib/ReasonFamily.php +msgid "Priority" +msgstr "优先级" + +#: lib/ReasonFamily.php +msgid "Resources" +msgstr "资源" + +#: lib/ReasonFamily.php +msgid "Dependency" +msgstr "依赖项" + +#: lib/ReasonFamily.php +msgid "Begin time" +msgstr "开始时间" + +#: lib/ReasonFamily.php +msgid "Reservation" +msgstr "预留" + +#: lib/ReasonFamily.php +msgid "Association limits" +msgstr "关联限制" + +#: lib/ReasonFamily.php +msgid "QOS limits" +msgstr "QOS 限制" + +#: lib/ReasonFamily.php +msgid "Partition limits" +msgstr "分区限制" + +#: lib/ReasonFamily.php +msgid "Node availability" +msgstr "节点可用性" + +#: lib/Section.php +msgid "Reservations" +msgstr "预留" + +#: lib/Section.php +msgid "Fair-share" +msgstr "公平份额" + +#: lib/Settings.php +msgid "Slurm Client Commands" +msgstr "Slurm 客户端命令" + +#: lib/Settings.php +msgid "Data Parser" +msgstr "数据解析器" + +#: lib/Settings.php +msgid "Slurm data parser for the client commands. Choose one that the release of every cluster read through client commands ships: v0.0.43 is in 25.05, 25.11, and 26.05 and is removed in 27.05; v0.0.44 needs 25.11 or later; v0.0.45 needs 26.05 or later. The health page warns when a cluster reports a release without it. Clusters read through slurmrestd ignore this setting: they use the newest of these the daemon serves, and the health page shows which." +msgstr "客户端命令的 Slurm 数据解析器。请选择通过客户端命令读取的每个集群版本均提供的解析器:v0.0.43 包含于 25.05、25.11 和 26.05,并在 27.05 移除;v0.0.44 要求 25.11 或更高版本;v0.0.45 要求 26.05 或更高版本。如果集群报告的版本不包含所选解析器,健康状态页面会发出警告。通过 slurmrestd 读取的集群忽略此设置,使用守护进程提供的这些解析器中最新的版本,并在健康状态页面显示所用版本。" + +#: lib/Settings.php +msgid "Absolute path to squeue on each poller that reads a cluster through client commands. The plugin runs it only as squeue --all --json with the data parser above." +msgstr "每个通过客户端命令读取集群的采集器上 squeue 的绝对路径。插件仅以 squeue --all --json 配合上述数据解析器运行。" + +#: lib/Settings.php +msgid "squeue" +msgstr "squeue" + +#: lib/Settings.php +msgid "Absolute path to scontrol. The plugin runs only scontrol --json show node, show partition, and show reservation; never update, reconfigure, or token." +msgstr "scontrol 的绝对路径。插件仅运行 scontrol --json show node、show partition 和 show reservation;绝不运行 update、reconfigure 或 token。" + +#: lib/Settings.php +msgid "scontrol" +msgstr "scontrol" + +#: lib/Settings.php +msgid "Absolute path to sshare, used only for clusters that collect fair-share." +msgstr "sshare 的绝对路径,仅用于采集公平份额的集群。" + +#: lib/Settings.php +msgid "sshare" +msgstr "sshare" + +#: lib/Settings.php +msgid "Limits" +msgstr "限制" + +#: lib/Settings.php +msgid "Call Timeout" +msgstr "调用超时" + +#: lib/Settings.php +msgid "Seconds one scheduler call may take before it is stopped and its section recorded as failed. A call never runs past the reader time budget either." +msgstr "每次调度器调用可运行的秒数,超时后停止并将其部分记为失败。调用也绝不会超过读取器的时间预算。" + +#: lib/Settings.php +msgid "Maximum Answer Size" +msgstr "最大响应大小" + +#: lib/Settings.php +msgid "MiB one scheduler call may return. A larger answer is discarded and its section recorded as failed. Decoding needs about 12 times the answer size, so the reader uses at most (Collection Memory - 64) / 12 MiB and the health page warns when this value is larger." +msgstr "每次调度器调用可返回的 MiB 数。更大的响应将丢弃,其部分记为失败。解码约需响应大小的 12 倍内存,因此读取器最多允许 (采集内存 - 64) / 12 MiB;设置值更大时健康状态页面会发出警告。" + +#: lib/Settings.php +msgid "Collection Memory" +msgstr "采集内存" + +#: lib/Settings.php +msgid "MiB of PHP memory each collection run raises its limit to (it never lowers one). The default of 1024 fits answers up to 80 MiB." +msgstr "每次采集运行将 PHP 内存限制提高到的 MiB 数(绝不降低已有上限)。默认 1024 可容纳最大 80 MiB 的响应。" + +#: lib/Settings.php +msgid "Absolute path to prlimit (util-linux), used to cap the address space of each client command. Leave empty to run commands without a memory limit; the health page then warns." +msgstr "prlimit(util-linux)的绝对路径,用于限制每个客户端命令的地址空间。留空则不限制命令内存;健康状态页面会相应警告。" + +#: lib/Settings.php +msgid "prlimit" +msgstr "prlimit" + +#: lib/Settings.php +msgid "Command Memory Limit" +msgstr "命令内存限制" + +#: lib/Settings.php +msgid "MiB of address space each client command may use, through prlimit." +msgstr "每个客户端命令通过 prlimit 可使用的地址空间 MiB 数。" + +#: lib/Settings.php +msgid "slurmrestd Credentials" +msgstr "slurmrestd 凭据" + +#: lib/Settings.php +msgid "Token File Directories" +msgstr "令牌文件目录" + +#: lib/Settings.php +msgid "Absolute directories on the pollers that may hold slurmrestd token files, separated by commas or spaces. A cluster can name only a token file inside one of them, owned by the poller user and reached without a symbolic link. Keep each directory writable only by root and the poller user. Empty means no cluster can use slurmrestd." +msgstr "采集器上允许存放 slurmrestd 令牌文件的绝对目录,以逗号或空格分隔。集群只能指定其中的文件,文件必须属于采集器用户,且路径不得经过符号链接。每个目录仅允许 root 和采集器用户写入。留空表示没有集群能使用 slurmrestd。" + +#: lib/Settings.php +msgid "slurmrestd Hosts" +msgstr "slurmrestd 主机" + +#: lib/Settings.php +msgid "Optional. The slurmrestd hosts a cluster may name, as host or host:port, separated by commas or spaces. An entry without a port allows any port on that host. Empty allows any host." +msgstr "可选。集群允许使用的 slurmrestd 主机,以 host 或 host:port 格式填写,用逗号或空格分隔。不带端口的条目允许该主机上的任意端口。留空允许任意主机。" + +#: lib/Settings.php +msgid "Seconds before a token expires when the health page starts to warn, if the token carries an expiry time." +msgstr "如果令牌包含过期时间,健康状态页面在其过期前多少秒开始警告。" + +#: lib/Settings.php +msgid "Token Expiry Warning" +msgstr "令牌过期警告" + +#: 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 clusters and snapshots. Clear it to have the uninstall drop them; export the clusters first from HPC Clusters. The plugin creates no Cacti devices or Maint schedules in this release, and the scheduler is never contacted either way." +msgstr "选中时,卸载插件会保留集群和快照。不选中则在卸载时删除;请先从“HPC 集群”导出集群。本版本不创建 Cacti 设备或 Maint 计划,任何情况下都不会连接调度器。" + +#: lib/TemplateInstaller.php +#, php-format +msgid "The data query file %s is not installed in Cacti's resource/script_server directory." +msgstr "数据查询文件 %s 未安装在 Cacti 的 resource/script_server 目录中。" + +#: lib/TemplateInstaller.php +#, php-format +msgid "The data query file %s in Cacti's resource/script_server directory differs from the one the plugin ships." +msgstr "Cacti 的 resource/script_server 目录中的数据查询文件 %s 与插件提供的文件不同。" + +#: lib/TokenState.php +msgid "readable only by the poller user" +msgstr "仅采集器用户可读" + +#: lib/TokenState.php +msgid "readable by the file group; restrict it to the poller user (chmod 600)" +msgstr "文件所属组可读;请将权限限制为采集器用户(chmod 600)" + +#: lib/TokenState.php +msgid "readable by every user on the poller; restrict it to the poller user (chmod 600)" +msgstr "采集器上的所有用户可读;请将权限限制为采集器用户(chmod 600)" + +#: lib/TokenState.php +msgid "refused: owned by a user other than the poller user (chown it to the poller user)" +msgstr "已拒绝:所有者不是采集器用户(请用 chown 将其所有权设为采集器用户)" + +#: lib/TokenState.php +msgid "missing or not readable by the poller user" +msgstr "文件缺失或采集器用户无法读取" + +#: lib/TokenState.php +msgid "refused: outside the token file directories set in Settings, reached through a symbolic link, not a regular file, writable by others, or too large; the log names the reason" +msgstr "已拒绝:文件位于设置中的令牌文件目录之外、经过符号链接、不是普通文件、其他用户可写,或文件过大;日志中记录具体原因" + +#: lib/TokenState.php +msgid "empty" +msgstr "空" + +#: lib/Transport.php +msgid "Slurm client commands" +msgstr "Slurm 客户端命令" + +#: lib/Transport.php +msgid "slurmrestd" +msgstr "slurmrestd" + +#: setup.php +#, php-format +msgid "The HPC Scheduler plugin requires PHP %s or later. This server runs PHP %s, so the plugin was not installed or enabled." +msgstr "HPC Scheduler 插件要求 PHP %s 或更高版本。此服务器运行 PHP %s,因此未安装或启用插件。" + +#: setup.php +msgid "The HPC Scheduler plugin is not enabled." +msgstr "HPC Scheduler 插件未启用。" + +#: setup.php +#, php-format +msgid "The HPC Scheduler plugin requires PHP %s or later." +msgstr "HPC Scheduler 插件要求 PHP %s 或更高版本。" + +#: setup.php +msgid "Management" +msgstr "管理" diff --git a/phpstan.neon b/phpstan.neon index a3dfd8e..dfa33c5 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -23,6 +23,7 @@ parameters: paths: - lib - setup.php + - include/operator.php - scripts - include/unbooted-uninstall.php scanDirectories: diff --git a/setup.php b/setup.php index 2bd0a86..d865017 100644 --- a/setup.php +++ b/setup.php @@ -100,13 +100,18 @@ function plugin_hpcsched_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 hpcsched_page_start(): bool { if (hpcsched_boot() && api_plugin_is_enabled('hpcsched')) { - return true; + if (hpcsched_page_allowed()) { + return true; + } + http_response_code(403); + + return false; } top_header(); @@ -215,7 +220,7 @@ function hpcsched_setup_hooks(bool $grant = false): void { } foreach (\Somethingwithproof\Hpcsched\Pages::realms() as $realm) { - api_plugin_register_realm('hpcsched', implode(',', $realm['files']), $realm['name'], $grant); + api_plugin_register_realm('hpcsched', implode(',', $realm['files']), $realm['name'], $grant && $realm['files'] !== \Somethingwithproof\Hpcsched\Pages::OPERATOR); } } @@ -282,6 +287,10 @@ function hpcsched_config_arrays(): void { function hpcsched_config_settings(): void { global $tabs, $settings; + if (PHP_SAPI !== 'cli' && !api_plugin_user_realm_auth('hpcsched_clusters.php')) { + return; + } + if (!hpcsched_boot()) { return; } @@ -295,10 +304,18 @@ function hpcsched_config_settings(): void { * @return array */ function hpcsched_draw_navigation_text($nav) { + global $current_user; + if (!hpcsched_boot()) { return $nav; } + // Settings definitions first load before cookie or Basic login is restored. + // Navigation runs after authentication, before settings tabs are rendered. + if (get_current_page() === 'settings.php' && (PHP_SAPI === 'cli' || ($current_user['enabled'] ?? '') === 'on')) { + hpcsched_config_settings(); + } + return array_merge($nav, \Somethingwithproof\Hpcsched\Pages::navigation()); } @@ -508,3 +525,63 @@ function hpcsched_reader(\Somethingwithproof\Hpcsched\Settings $settings, string $holder !== '' ? $holder : 'reader-' . getmypid() . '-' . bin2hex(random_bytes(4)) ); } + +/** Resolve role inheritance against Cacti's current user and group grants. */ +function hpcsched_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('hpcsched')) { + 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('hpcsched.php', 'hpcsched_operator.php'), true) && isset($user_auth_realm_filenames[$page])) { + $deferred[$page] = $user_auth_realm_filenames[$page]; + $user_auth_realm_filenames[$page] = -1; + } + + return; + } + $operator = 'hpcsched_operator.php'; + $admin = 'hpcsched_clusters.php'; + $files = array('hpcsched.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 hpcsched_page_allowed(): bool { + global $current_user; + + hpcsched_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('hpcsched') + && ($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 d4c2779..f16e2be 100644 --- a/tests/Integration/LifecycleTest.php +++ b/tests/Integration/LifecycleTest.php @@ -35,7 +35,7 @@ 'plugin_hpcsched_share', ]; -const HPCSCHED_HOOKS = ['config_arrays', 'config_settings', 'device_remove', 'draw_navigation_text', 'poller_bottom']; +const HPCSCHED_HOOKS = ['auth_alternate_realms', 'config_arrays', 'config_settings', 'device_remove', 'draw_navigation_text', 'poller_bottom']; const HPCSCHED_T = 1800000000; @@ -47,7 +47,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') @@ -57,8 +57,9 @@ ->and($state['tracked'])->toBe(HPCSCHED_TABLES) ->and(array_keys($state['hooks']))->toBe(HPCSCHED_HOOKS) ->and($state['realms'])->toEqual([ - 'hpcsched.php' => 'HPC Scheduler View', + 'hpcsched.php' => 'HPC Scheduler View', 'hpcsched_clusters.php,hpcsched_health.php' => 'HPC Scheduler Admin', + 'hpcsched_operator.php' => 'HPC Scheduler Operator', ]) ->and($state['admin'])->toBe(2); }); @@ -107,7 +108,7 @@ expect($state['result'])->toBeTrue() ->and(array_keys($state['hooks']))->toBe(HPCSCHED_HOOKS) ->and(array_values(array_unique(array_map('strval', $state['hooks']))))->toBe(['1']) - ->and($state['realms'])->toHaveCount(2); + ->and($state['realms'])->toHaveCount(3); }); it('finishes an upgrade that was interrupted after creating only some tables', function () { @@ -233,7 +234,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]); }); @@ -315,3 +316,23 @@ ->and($r['after_expiry'])->toBe(['outcome' => 'completed', 'calls' => 3]) ->and($r['final']['observed'])->toBe(HPCSCHED_T + 290); }); + +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/OperatorTest.php b/tests/Unit/OperatorTest.php new file mode 100644 index 0000000..b6c83ca --- /dev/null +++ b/tests/Unit/OperatorTest.php @@ -0,0 +1,78 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_hpcsched, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_hpcsched + * + * 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\Hpcsched\OperatorPage; + +function hpcsched_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 = hpcsched_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(hpcsched_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 = hpcsched_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 = hpcsched_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 = hpcsched_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'); +}); diff --git a/tests/Unit/SettingsNavigationTest.php b/tests/Unit/SettingsNavigationTest.php new file mode 100644 index 0000000..1643707 --- /dev/null +++ b/tests/Unit/SettingsNavigationTest.php @@ -0,0 +1,78 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_hpcsched, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_hpcsched + * + * 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. + */ + +require_once dirname(__DIR__) . '/Support/Scratch.php'; + +use Somethingwithproof\Hpcsched\Tests\Scratch; + +it('refreshes settings after login restoration only for administrators on the settings page', function () { + $cgi = dirname(PHP_BINARY) . '/php-cgi'; + + if (!is_executable($cgi)) { + test()->markTestSkipped('PHP CGI is needed to exercise the web-only settings permission filter.'); + } + $scratch = new Scratch(); + $setup = var_export(dirname(__DIR__, 2) . '/setup.php', true); + $script = <<<'PHP' + 2]; + $current_user = $enabled === null ? [] : ['id' => 2, 'enabled' => $enabled]; + $nav = hpcsched_draw_navigation_text(['preserved' => ['title' => 'Existing']]); + $results[] = [$before, isset($tabs['hpcsched']), isset($settings['hpcsched']['hpcsched_squeue']), $nav['preserved']['title']]; +} +print json_encode($results); +PHP; + $fixture = $scratch->file('settings.php', str_replace('SETUP_PATH', $setup, $script)); + + try { + $process = proc_open([$cgi, '-q', $fixture], [1 => ['pipe', 'w'], 2 => ['pipe', 'w']], $pipes, null, ['REDIRECT_STATUS' => '200', 'SCRIPT_FILENAME' => $fixture, 'REQUEST_METHOD' => 'GET']); + expect(is_resource($process))->toBeTrue(); + $output = stream_get_contents($pipes[1]); + $error = stream_get_contents($pipes[2]); + fclose($pipes[1]); + fclose($pipes[2]); + $status = proc_close($process); + $body = explode("\r\n\r\n", $output, 2); + + expect($error)->toBe('') + ->and($status)->toBe(0) + ->and(json_decode($body[count($body) - 1], true))->toBe([ + [false, true, true, 'Existing'], + [false, false, false, 'Existing'], + [false, false, false, 'Existing'], + [false, false, false, 'Existing'], + [false, false, false, 'Existing'], + ]); + } finally { + $scratch->remove(); + } +}); diff --git a/tests/bin/lifecycle.php b/tests/bin/lifecycle.php index 4956c28..d84825c 100644 --- a/tests/bin/lifecycle.php +++ b/tests/bin/lifecycle.php @@ -157,6 +157,10 @@ case 'reader_kill': include($config['base_path'] . '/plugins/hpcsched/tests/bin/reader-restart.php'); + 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..c94c7fe --- /dev/null +++ b/tests/bin/operator-roles.php @@ -0,0 +1,112 @@ + + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file is part of plugin_hpcsched, a plugin for Cacti. + * https://github.com/somethingwithproof/plugin_hpcsched + * + * 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. +PHP_SAPI === 'cli' || exit(1); + +if (getenv('HPCSCHED_TEST_DATABASE') !== 'disposable') { + exit(2); +} +require_once $config['library_path'] . '/auth.php'; +require_once $config['base_path'] . '/plugins/hpcsched/setup.php'; +hpcsched_boot(); +$view = \Somethingwithproof\Hpcsched\Pages::VIEW[0]; +$admin = \Somethingwithproof\Hpcsched\Pages::ADMIN[0]; +$operator = 'hpcsched_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 = 'hpcsched' AND hook = 'auth_alternate_realms'"); +db_execute("INSERT INTO user_auth (username, password, realm, full_name, enabled) VALUES ('hpcsched_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_hpcsched_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 = 'hpcsched' 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(); + hpcsched_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/hpcsched/' . $page; + $_SESSION = []; + api_plugin_load_realms(); + hpcsched_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 = hpcsched_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/hpcsched/' . $page; + $_SESSION = []; + api_plugin_load_realms(); + hpcsched_auth_alternate_realms(); + $_SESSION = ['sess_user_id' => $user]; + $current_user = db_fetch_row_prepared('SELECT * FROM user_auth WHERE id = ?', [$user]); + $result['disabled_user'][] = hpcsched_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/hpcsched/' . $page; + $_SESSION = []; + api_plugin_load_realms(); + hpcsched_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'][] = hpcsched_page_allowed(); +} +db_execute("INSERT INTO user_auth_group (name, enabled) VALUES ('hpcsched_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 cd4e95b..21f12c1 100644 --- a/tests/bin/php-guard-check.php +++ b/tests/bin/php-guard-check.php @@ -112,7 +112,7 @@ function guard_call_shims() { if ($supported) { guard_expect($state['status'] == 1, 'install and enable succeed (status ' . $state['status'] . ')'); guard_expect($state['tables'] === 9, 'all nine plugin tables exist (' . $state['tables'] . ')'); - guard_expect($state['hooks'] >= 3 && $state['realms'] === 2, 'hooks and realms are registered'); + guard_expect($state['hooks'] >= 3 && $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)