{"id":353639,"date":"2024-08-02T10:23:37","date_gmt":"2024-08-02T10:23:37","guid":{"rendered":"https:\/\/www.ninjaone.com\/script-hub\/surveiller-etat-des-noeuds-proxmox-linux\/"},"modified":"2024-10-13T19:06:24","modified_gmt":"2024-10-13T19:06:24","slug":"surveiller-etat-des-noeuds-proxmox-linux","status":"publish","type":"script_hub","link":"https:\/\/www.ninjaone.com\/fr\/script-hub\/surveiller-etat-des-noeuds-proxmox-linux\/","title":{"rendered":"Comment surveiller l&rsquo;\u00e9tat des n\u0153uds Proxmox \u00e0 l&rsquo;aide d&rsquo;un script Bash automatis\u00e9 ?"},"content":{"rendered":"<p>Une gestion efficace de l&rsquo;infrastructure informatique est essentielle pour maintenir la stabilit\u00e9 et la performance de l&rsquo;environnement num\u00e9rique d&rsquo;une entreprise. L&rsquo;une des t\u00e2ches essentielles des professionnels de l&rsquo;informatique et des <a href=\"https:\/\/www.ninjaone.com\/fr\/quest-ce-quun-msp\" target=\"_blank\" rel=\"noopener\">fournisseurs de services g\u00e9r\u00e9s (MSP)<\/a> consiste \u00e0 surveiller l&rsquo;\u00e9tat des n\u0153uds au sein d&rsquo;un cluster Proxmox Virtual Environment (PVE). Le script fourni offre une solution performante pour automatiser ce processus, garantissant que les informations sur l&rsquo;\u00e9tat des n\u0153uds sont facilement disponibles et \u00e0 jour.<\/p>\n<h2>Contexte<\/h2>\n<p>Proxmox VE est un environnement de virtualisation de serveurs open-source utilis\u00e9 par de nombreux professionnels de l&rsquo;informatique pour g\u00e9rer les machines virtuelles, les conteneurs et le stockage. La surveillance de l&rsquo;int\u00e9grit\u00e9 et de l&rsquo;\u00e9tat des n\u0153uds au sein d&rsquo;un cluster Proxmox est essentielle pour la maintenance proactive et le d\u00e9pannage.<\/p>\n<p>Ce script simplifie le processus en r\u00e9cup\u00e9rant les informations sur l&rsquo;\u00e9tat des n\u0153uds et en les enregistrant dans des champs personnalis\u00e9s pour faciliter l&rsquo;acc\u00e8s et l&rsquo;analyse. Cette automatisation est particuli\u00e8rement pr\u00e9cieuse pour les entreprises MSP qui g\u00e8rent plusieurs environnements clients, car elle r\u00e9duit les efforts manuels et minimise le risque de n\u00e9gligence.<\/p>\n<h2>Le script<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">#!\/usr\/bin\/env bash\r\n\r\n# Description: Get the Proxmox Node Status and save it to a multiline and\/or WYSIWYG custom field\r\n#\r\n# Release Notes: Fixed 10% width bug.\r\n# By using this script, you indicate your acceptance of the following legal terms as well as our Terms of Use at https:\/\/www.ninjaone.com\/terms-of-use.\r\n# Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms. \r\n# Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party. \r\n# Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library or website belonging to or under the control of any other software provider. \r\n# Warranty Disclaimer: The script is provided \u201cas is\u201d and \u201cas available\u201d, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations. \r\n# Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks. \r\n# Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script. \r\n# EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).\r\n\r\n# Command line arguments, swap the numbers if you want the multiline custom field to be the second argument\r\nmultiline_custom_field=$1 # First argument is the multiline custom field name\r\nwysiwyg_custom_field=$2   # Second argument is the WYSIWYG custom field name\r\n\r\n# Check if the custom fields are set to null\r\nif [[ -n \"${multilineCustomField}\" &amp;&amp; \"${multilineCustomField}\" != \"null\" ]]; then\r\n    multiline_custom_field=$multilineCustomField\r\nfi\r\nif [[ -n \"${wysiwygCustomField}\" &amp;&amp; \"${wysiwygCustomField}\" != \"null\" ]]; then\r\n    wysiwyg_custom_field=$wysiwygCustomField\r\nfi\r\n\r\n# Check if the custom fields are the same\r\nif [[ -n \"${multiline_custom_field}\" &amp;&amp; \"${multiline_custom_field}\" == \"${wysiwyg_custom_field}\" ]]; then\r\n    echo \"[Error] multilineCustomField and wysiwygCustomField cannot be the same custom field.\"\r\n    exit 1\r\nfi\r\n\r\n# Check if the custom fields are not set\r\nif [[ -z \"${multiline_custom_field}\" ]]; then\r\n    echo \"[Info] multilineCustomField is not set.\"\r\nfi\r\nif [[ -z \"${wysiwyg_custom_field}\" ]]; then\r\n    echo \"[Info] wysiwygCustomField is not set.\"\r\nfi\r\n\r\n# Check that we have the required tools\r\nif ! command -v pvesh &amp;&gt;\/dev\/null; then\r\n    echo \"[Error] The Proxmox VE API tool 'pvesh' is required.\"\r\n    exit 1\r\nfi\r\n\r\n# Check that we are running as root\r\nif [[ $EUID -ne 0 ]]; then\r\n    echo \"[Error] This script must be run as root.\"\r\n    exit 1\r\nfi\r\n\r\n# Get the version of proxmox-ve\r\n_version=$(pveversion --verbose | grep \"proxmox-ve\" | awk '{print $2}')\r\n\r\n# Check if the version\r\nif [[ \"$(echo \"${_version}\" | awk -F. '{print $1}')\" -eq 7 ]]; then\r\n    echo \"[Info] Proxmox VE $_version is greater than or equal to 8.\"\r\nelse\r\n    echo \"[Warn] Proxmox VE $_version is less than 8. Some data may not be formatted as expected. See: https:\/\/pve.proxmox.com\/pve-docs\/chapter-pve-faq.html#faq-support-table\"\r\nfi\r\n\r\n# Check if ninjarmm-cli command exists\r\nninjarmm_cli=\"\/opt\/NinjaRMMAgent\/programdata\/ninjarmm-cli\"\r\nif [[ -z $ninjarmm_cli ]]; then\r\n    echo \"[Error] The ninjarmm-cli command does not exist in the default path. Please ensure the NinjaRMM agent is installed before running this script.\"\r\n    exit 1\r\nelse\r\n    # ninjarmm-cli command exists in the default path\r\n    echo -n\r\nfi\r\n\r\n# Run the pvesh command to get the status information\r\nif ! pvesh_status_output=$(pvesh get \/cluster\/status --noborder); then\r\n    echo \"[Error] Failed to get the Proxmox Node Status.\"\r\n    echo \"$pvesh_status_output\"\r\n    exit 1\r\nfi\r\n# Example Output from: pvesh get \/cluster\/status --noborder\r\n# id        name     type    ip            level local nodeid nodes online quorate version\r\n# cluster   cluster1 cluster                                      4        1       4\r\n# node\/pve1 pve1     node    192.168.1.10  c     0          1       1\r\n# node\/pve2 pve2     node    192.168.1.20  c     0          2       1\r\n# node\/pve3 pve3     node    192.168.1.30  c     0          3       1\r\n# node\/pve4 pve4     node    192.168.1.40  c     1          4       1\r\n\r\n# Exclude the cluster information then skip the first line\r\nnode_status=$(echo \"$pvesh_status_output\" | grep -v \"cluster\" | tail -n +2)\r\n\r\n# Create a table with the node status information with only the columns named id, name, ip, and online\r\nif [[ \"$(echo \"${_version}\" | awk -F. '{print $1}')\" -ge 8 ]]; then\r\n    data_table=$(echo \"$node_status\" | awk '{print $7, $2, $4, $8}' | column -t)\r\nelse\r\n    data_table=$(echo \"$node_status\" | awk '{print $7, $2, $4, $7}' | column -t)\r\nfi\r\n\r\n# Convert the table to an HTML table with headers\r\nresult_table=$(echo \"$data_table\" | awk 'BEGIN {print \"&lt;table style=\\\"white-space:nowrap;\\\"&gt;&lt;tr&gt;&lt;th&gt;Node ID&lt;\/th&gt;&lt;th&gt;Node Name&lt;\/th&gt;&lt;th&gt;IP Address&lt;\/th&gt;&lt;th&gt;Online Status&lt;\/th&gt;&lt;th&gt;Votes&lt;\/th&gt;&lt;\/tr&gt;\"} {print \"&lt;tr&gt;\"; for(i=1;i&lt;=NF;i++) print \"&lt;td&gt;\" $i \"&lt;\/td&gt;\"; print \"&lt;td&gt;1&lt;\/td&gt;&lt;\/tr&gt;\"} END {print \"&lt;\/table&gt;\"}')\r\n\r\n# Save the result to the WYSIWYG custom field\r\nif [[ -n \"$wysiwyg_custom_field\" ]]; then\r\n    # Check if the NinjaRMM CLI exists and is executable\r\n    if [[ -x \"$ninjarmm_cli\" ]]; then\r\n        # Save the result to the custom field\r\n        if hideOutput=$(\"$ninjarmm_cli\" set \"$wysiwyg_custom_field\" \"$result_table\" 2&gt;&amp;1); then\r\n            echo \"[Info] Successfully set custom field: $wysiwyg_custom_field\"\r\n        else\r\n            echo \"[Error] Failed to set custom field: $wysiwyg_custom_field. Custom Field does not exit or does not have write permissions.\"\r\n            _exit_code=1\r\n        fi\r\n    else\r\n        echo \"[Error] NinjaRMM CLI not found or not executable\"\r\n        _exit_code=1\r\n    fi\r\nfi\r\n\r\n# Format the output for the multiline custom field\r\npvesh_status_output=$(\r\n    # Exclude the cluster information then skip the first line\r\n    echo \"$data_table\" | awk '{if (NR == 1) print \"--------\"; print \"Node ID: \" $1 \"\\nNode Name: \" $2 \"\\nIP Address: \" $3 \"\\nOnline Status: \" $4 \"\\nVotes: 1\\n\"; if (NR != NF) print \"--------\"}'\r\n)\r\n\r\n# Save the result to the multiline custom field\r\n_exit_code=0\r\nif [[ -n \"$multiline_custom_field\" ]]; then\r\n    if [[ -x \"$ninjarmm_cli\" ]]; then\r\n        if hideOutput=$(\"$ninjarmm_cli\" set \"$multiline_custom_field\" \"$pvesh_status_output\" 2&gt;&amp;1); then\r\n            echo \"[Info] Successfully set custom field: $multiline_custom_field\"\r\n        else\r\n            echo \"[Error] Failed to set custom field: $multiline_custom_field. Custom Field does not exit or does not have write permissions.\"\r\n            _exit_code=1\r\n        fi\r\n    else\r\n        echo \"[Error] NinjaRMM CLI not found or not executable\"\r\n        _exit_code=1\r\n    fi\r\nfi\r\n\r\n# Output the result\r\necho \"${pvesh_status_output}\"\r\n\r\nexit $_exit_code<\/pre>\n<p>&nbsp;<\/p>\n\n<div class=\"blog-cta-new blog-cta-style-1\"><div class=\"cta-left\"><h2><\/h2><p><\/p><\/div><div class=\"cta-right\"><a class=\"button\" href=\"\"><\/a><\/div><\/div>\n<h2>Description d\u00e9taill\u00e9e<\/h2>\n<p>Le script est con\u00e7u pour r\u00e9cup\u00e9rer le statut d&rsquo;un n\u0153ud Proxmox et enregistrer les informations dans un champ personnalis\u00e9 multiligne ou un champ personnalis\u00e9 WYSIWYG. D\u00e9couvrons ses fonctionnalit\u00e9s \u00e9tape par \u00e9tape :<\/p>\n<p><strong>1. Arguments de la ligne de commande<\/strong><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"1\" data-aria-level=\"2\">Le script accepte deux arguments de ligne de commande : les noms du champ personnalis\u00e9 multiligne et du champ personnalis\u00e9 WYSIWYG.<\/li>\n<\/ul>\n<p><strong>2. Validation des champs personnalis\u00e9s<\/strong><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"2\" data-aria-level=\"2\">Il v\u00e9rifie si les champs personnalis\u00e9s sont d\u00e9finis et s&rsquo;assure qu&rsquo;ils ne sont pas nuls ou identiques.<\/li>\n<\/ul>\n<p><strong>3. V\u00e9rification des outils et des autorisations<\/strong><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"3\" data-aria-level=\"2\">Le script v\u00e9rifie la pr\u00e9sence des outils n\u00e9cessaires (pvesh et ninjarmm-cli) et v\u00e9rifie s&rsquo;il s&rsquo;ex\u00e9cute avec un acc\u00e8s root.<\/li>\n<\/ul>\n<p><strong>4. R\u00e9cup\u00e9rer l&rsquo;\u00e9tat du n\u0153ud<\/strong><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"4\" data-aria-level=\"2\">Il ex\u00e9cute la commande pvesh get \/cluster\/status &#8211;noborder pour r\u00e9cup\u00e9rer l&rsquo;\u00e9tat des n\u0153uds du cluster Proxmox.<\/li>\n<\/ul>\n<p><strong>5. Traitement des donn\u00e9es<\/strong><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"5\" data-aria-level=\"2\">La sortie est trait\u00e9e pour extraire les informations pertinentes, telles que l&rsquo;ID du n\u0153ud, le nom, l&rsquo;adresse IP et l&rsquo;\u00e9tat en ligne. Ces informations sont pr\u00e9sent\u00e9es sous forme de tableau.<\/li>\n<\/ul>\n<p><strong>6. Enregistrer dans les champs personnalis\u00e9s<\/strong><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"6\" data-aria-level=\"2\">Les donn\u00e9es format\u00e9es sont enregistr\u00e9es dans les champs personnalis\u00e9s sp\u00e9cifi\u00e9s \u00e0 l&rsquo;aide de la commande ninjarmm-cli. Si le champ WYSIWYG est sp\u00e9cifi\u00e9, les donn\u00e9es sont converties en tableau HTML.<\/li>\n<\/ul>\n<p><strong>7. Sortie<\/strong><\/p>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"7\" data-aria-level=\"2\">Si aucun champ personnalis\u00e9 n&rsquo;est sp\u00e9cifi\u00e9, le script affiche l&rsquo;\u00e9tat du n\u0153ud directement sur la console.<\/li>\n<\/ul>\n<h2>Cas d&rsquo;utilisation potentiels<\/h2>\n<h3>\u00c9tude de cas\u00a0: Un professionnel de l&rsquo;informatique qui g\u00e8re un cluster Proxmox<\/h3>\n<p>Imaginez un professionnel de l&rsquo;informatique nomm\u00e9 Alex, qui g\u00e8re un cluster Proxmox pour une entreprise de taille moyenne. Alex doit contr\u00f4ler r\u00e9guli\u00e8rement l&rsquo;\u00e9tat des n\u0153uds pour s&rsquo;assurer qu&rsquo;ils sont en ligne et qu&rsquo;ils fonctionnent correctement. En utilisant ce script, Alex peut automatiser la r\u00e9cup\u00e9ration et l&rsquo;enregistrement des \u00e9tats des n\u0153uds dans des champs personnalis\u00e9s au sein de son syst\u00e8me de surveillance. Cette automatisation permet \u00e0 Alex de gagner beaucoup de temps et de s&rsquo;assurer que tout probl\u00e8me est rapidement d\u00e9tect\u00e9 et trait\u00e9.<\/p>\n<h2>Comparaisons<\/h2>\n<h3>Comparaison entre la surveillance manuelle et un script automatis\u00e9<\/h3>\n<p>Traditionnellement, le contr\u00f4le de l&rsquo;\u00e9tat des n\u0153uds implique l&rsquo;ex\u00e9cution manuelle de commandes et l&rsquo;enregistrement des r\u00e9sultats, un processus qui prend du temps et qui est sujet aux erreurs. Ce script <a href=\"https:\/\/www.ninjaone.com\/fr\/blog\/tout-ce-que-vous-devez-savoir-sur-lautomatisation\" target=\"_blank\" rel=\"noopener\">automatise l&rsquo;ensemble du flux de travail<\/a>, garantissant ainsi une collecte de donn\u00e9es coh\u00e9rente et pr\u00e9cise. Par rapport \u00e0 d&rsquo;autres m\u00e9thodes, telles que l&rsquo;utilisation d&rsquo;outils de surveillance tiers, ce script offre une solution l\u00e9g\u00e8re et personnalisable adapt\u00e9e aux environnements Proxmox.<\/p>\n<h2>FAQ<\/h2>\n<ol>\n<li><strong> Qu&rsquo;est-ce que Proxmox VE ?<\/strong> Proxmox VE est un environnement de virtualisation de serveurs open-source utilis\u00e9 pour g\u00e9rer les machines virtuelles, les conteneurs et le stockage.<\/li>\n<li><strong> Pourquoi dois-je ex\u00e9cuter le script en tant que root ?<\/strong> Le script requiert les privil\u00e8ges d&rsquo;administrateur pour acc\u00e9der aux informations sur l&rsquo;\u00e9tat des n\u0153uds Proxmox et effectuer les v\u00e9rifications n\u00e9cessaires sur le syst\u00e8me.<\/li>\n<li><strong> Que se passe-t-il si la commande pvesh \u00e9choue ?<\/strong> Si la commande pvesh \u00e9choue, le script affiche un message d&rsquo;erreur et se termine.<\/li>\n<li><strong> Puis-je utiliser ce script sans l&rsquo;outil ninjarmm-cli ?<\/strong> Non, le script s&rsquo;appuie sur ninjarmm-cli pour enregistrer les informations sur l&rsquo;\u00e9tat des n\u0153uds dans des champs personnalis\u00e9s.<\/li>\n<\/ol>\n<h2>Implications<\/h2>\n<p>L&rsquo;utilisation de ce script garantit que les informations relatives \u00e0 l&rsquo;\u00e9tat des n\u0153uds sont collect\u00e9es et enregistr\u00e9es de mani\u00e8re coh\u00e9rente, ce qui est essentiel pour maintenir l&rsquo;int\u00e9grit\u00e9 de l&rsquo;infrastructure informatique. En automatisant ce processus, les professionnels de l&rsquo;informatique peuvent se concentrer sur des t\u00e2ches plus strat\u00e9giques, ce qui am\u00e9liore l&rsquo;efficacit\u00e9 globale et r\u00e9duit le risque de probl\u00e8mes passant inaper\u00e7us.<\/p>\n<h2>Recommandations<\/h2>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"2\" data-aria-level=\"1\"><strong>Ex\u00e9cuter r\u00e9guli\u00e8rement<\/strong>: Planifiez l&rsquo;ex\u00e9cution du script \u00e0 intervalles r\u00e9guliers afin de garantir la mise \u00e0 jour des informations relatives \u00e0 l&rsquo;\u00e9tat des n\u0153uds.<\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"3\" data-aria-level=\"1\"><strong>Surveiller les r\u00e9sultats<\/strong>: V\u00e9rifiez r\u00e9guli\u00e8rement les champs personnalis\u00e9s ou les journaux de sortie pour d\u00e9tecter toute anomalie.<\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;hybridMultilevel&quot;}\" data-aria-posinset=\"4\" data-aria-level=\"1\"><strong>S&rsquo;assurer que les outils sont install\u00e9s<\/strong>: V\u00e9rifiez que pvesh et ninjarmm-cli sont install\u00e9s et accessibles sur le syst\u00e8me.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>L&rsquo;automatisation de la surveillance de l&rsquo;\u00e9tat des n\u0153uds \u00e0 l&rsquo;aide de ce script am\u00e9liore <a href=\"https:\/\/www.ninjaone.com\/fr\/efficacite\" target=\"_blank\" rel=\"noopener\">l&rsquo;efficacit\u00e9<\/a> et la fiabilit\u00e9 de la gestion des clusters Proxmox. En int\u00e9grant ce script dans votre flux de travail, vous pouvez garantir des mises \u00e0 jour d&rsquo;\u00e9tat pr\u00e9cises et opportunes, ce qui am\u00e9liore la stabilit\u00e9 et les performances de votre environnement informatique.<\/p>\n<p>La suite d&rsquo;outils de <a href=\"https:\/\/www.ninjaone.com\/fr\/\" target=\"_blank\" rel=\"noopener\">NinjaOne<\/a>, y compris NinjaRMM, fournit des capacit\u00e9s suppl\u00e9mentaires pour une gestion informatique compl\u00e8te, compl\u00e9tant la fonctionnalit\u00e9 de ce script.<\/p>\n","protected":false},"author":35,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","_lmt_disableupdate":"","_lmt_disable":""},"operating_system":[4211],"use_cases":[4285],"class_list":["post-353639","script_hub","type-script_hub","status-publish","hentry","script_hub_category-linux"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/script_hub\/353639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/script_hub"}],"about":[{"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/types\/script_hub"}],"author":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/comments?post=353639"}],"wp:attachment":[{"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/media?parent=353639"}],"wp:term":[{"taxonomy":"script_hub_category","embeddable":true,"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/operating_system?post=353639"},{"taxonomy":"use_cases","embeddable":true,"href":"https:\/\/www.ninjaone.com\/fr\/wp-json\/wp\/v2\/use_cases?post=353639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}