nezhahq.github.io/assets/en_US_guide_q7.md.BlMm2kVX.js
2024-07-12 03:52:47 +00:00

2 lines
4.5 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as e,c as t,o as i,a4 as a}from"./chunks/framework.BmdFiWrL.js";const m=JSON.parse('{"title":"Customizing Agent Monitoring Items","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/q7.md","filePath":"en_US/guide/q7.md","lastUpdated":1720756321000}'),n={name:"en_US/guide/q7.md"},o=a('<h1 id="customizing-agent-monitoring-items" tabindex="-1">Customizing Agent Monitoring Items <a class="header-anchor" href="#customizing-agent-monitoring-items" aria-label="Permalink to &quot;Customizing Agent Monitoring Items&quot;"></a></h1><h2 id="customize-monitoring-for-network-interfaces-and-disk-partitions" tabindex="-1">Customize Monitoring for Network Interfaces and Disk Partitions <a class="header-anchor" href="#customize-monitoring-for-network-interfaces-and-disk-partitions" aria-label="Permalink to &quot;Customize Monitoring for Network Interfaces and Disk Partitions&quot;"></a></h2><p>Execute the following command to select network interfaces and partitions, then restart the Agent for changes to take effect:</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">/opt/nezha/agent/nezha-agent</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> edit</span></span></code></pre></div><h2 id="additional-runtime-parameters" tabindex="-1">Additional Runtime Parameters <a class="header-anchor" href="#additional-runtime-parameters" aria-label="Permalink to &quot;Additional Runtime Parameters&quot;"></a></h2><h3 id="viewing-supported-parameters" tabindex="-1">Viewing Supported Parameters <a class="header-anchor" href="#viewing-supported-parameters" aria-label="Permalink to &quot;Viewing Supported Parameters&quot;"></a></h3><p>To view the supported runtime parameters, please execute the following command:</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">./nezha-agent</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --help</span></span></code></pre></div><h3 id="configuring-parameters" tabindex="-1">Configuring Parameters <a class="header-anchor" href="#configuring-parameters" aria-label="Permalink to &quot;Configuring Parameters&quot;"></a></h3><p>If you installed the Agent using a one-click script, you can add or modify parameters by editing the system service configuration. Edit the file <code>/etc/systemd/system/nezha-agent.service</code> and append your desired parameters at the end of the <code>ExecStart=</code> line:</p><ul><li><code>--report-delay</code>: Sets the interval for reporting system information. The default is 1 second. To reduce system resource usage, you can set this to 3 (valid range: 1-4 seconds).</li><li><code>--skip-conn</code>: Disables monitoring of network connections. Recommended for servers with high numbers of connections or high CPU usage.</li><li><code>--skip-procs</code>: Disables monitoring of process counts, helping to reduce resource usage of the Agent.</li><li><code>--disable-auto-update</code>: Disables the <strong>automatic update</strong> feature of the Agent, enhancing security.</li><li><code>--disable-force-update</code>: Disables the <strong>forced update</strong> feature of the Agent, enhancing security.</li><li><code>--disable-command-execute</code>: Prevents execution of any scheduled tasks or use of the WebSSH on the Agent, enhancing security.</li><li><code>--tls</code>: Enables SSL/TLS encryption. This should be enabled when you are using nginx to reverse proxy the Agent&#39;s gRPC connections and nginx is configured with SSL/TLS.</li><li><code>--gpu</code>: Enables GPU monitoring. Note: Monitoring GPU usage may require installation of additional dependencies. For more details, refer to the documentation: <a href="/en_US/guide/q9.html">Enable GPU Monitoring</a>.</li><li><code>--temperature</code>: Enables hardware temperature monitoring. Only effective on supported hardware, some VPS may not be able to retrieve temperature information.</li><li><code>-q</code>, <code>--silent</code>: Enables silent mode, suppressing any output or logs to the console.</li></ul>',11),s=[o];function r(d,c,l,h,u,p){return i(),t("div",null,s)}const f=e(n,[["render",r]]);export{m as __pageData,f as default};