nezhahq.github.io/assets/en_US_guide_q7.md.CCRrDlAi.js
2024-06-27 13:18:06 +00:00

2 lines
3.6 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,a4 as n}from"./chunks/framework.BmdFiWrL.js";const m=JSON.parse('{"title":"Custom Agent Monitoring Projects","description":"","frontmatter":{},"headers":[],"relativePath":"en_US/guide/q7.md","filePath":"en_US/guide/q7.md","lastUpdated":1719494233000}'),i={name:"en_US/guide/q7.md"},a=n('<h1 id="custom-agent-monitoring-projects" tabindex="-1">Custom Agent Monitoring Projects <a class="header-anchor" href="#custom-agent-monitoring-projects" aria-label="Permalink to &quot;Custom Agent Monitoring Projects&quot;"></a></h1><h2 id="customizing-monitored-network-interfaces-and-disk-partitions" tabindex="-1">Customizing Monitored Network Interfaces and Disk Partitions <a class="header-anchor" href="#customizing-monitored-network-interfaces-and-disk-partitions" aria-label="Permalink to &quot;Customizing Monitored Network Interfaces and Disk Partitions&quot;"></a></h2><p>Execute the following command to select custom network interfaces and partitions, then restart the Agent for the 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="other-runtime-parameters" tabindex="-1">Other Runtime Parameters <a class="header-anchor" href="#other-runtime-parameters" aria-label="Permalink to &quot;Other Runtime Parameters&quot;"></a></h2><p>To view the supported parameters, execute:</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><p>If you installed the Agent using the one-click script, you can edit <code>/etc/systemd/system/nezha-agent.service</code> and add the following parameters at the end of the <code>ExecStart=</code> line:</p><ul><li><code>--report-delay</code>: Controls the interval for reporting system information. The default is 1 second. You can set it to 3 to further reduce the agent&#39;s system resource usage (configuration range: 1-4).</li><li><code>--skip-conn</code>: Does not monitor connection counts. Recommended for servers with high connection density or high CPU usage.</li><li><code>--skip-procs</code>: Does not monitor process counts, which can also reduce Agent resource usage.</li><li><code>--disable-auto-update</code>: Disables <strong>automatic updates</strong> for the Agent (security feature).</li><li><code>--disable-force-update</code>: Disables <strong>forced updates</strong> for the Agent (security feature).</li><li><code>--disable-command-execute</code>: Disables the execution of scheduled tasks and the opening of the online terminal on the Agent (security feature).</li><li><code>--tls</code>: Enables SSL/TLS encryption (required if you use nginx to reverse proxy the Agent&#39;s gRPC connection and nginx has SSL/TLS enabled).</li><li><code>--gpu</code>: Enable GPU monitoring (may need extra dependencies while monitoring GPU utilization. Refer to FAQ - Enable GPU monitoring for any questions.)</li></ul>',9),s=[a];function r(c,d,l,h,u,p){return o(),t("div",null,s)}const f=e(i,[["render",r]]);export{m as __pageData,f as default};