deploy: 5547fdcd5a
This commit is contained in:
1 parent
4c3e70d2da
commit
575eef3308
144 files changed
+219
-195
No files matched your search
@@ -8,7 +8,7 @@
|
||||
<link rel="stylesheet" href="/assets/style.0b9f658b.css">
|
||||
<link rel="modulepreload" href="/assets/chunks/AlgoliaSearchBox.6e4b23ab.js">
|
||||
<link rel="modulepreload" href="/assets/app.457c27ae.js">
|
||||
<link rel="modulepreload" href="/assets/en_US_guide_agent.md.85b101e2.lean.js">
|
||||
<link rel="modulepreload" href="/assets/en_US_guide_agent.md.c4c29fc0.lean.js">
|
||||
|
||||
<meta name="twitter:title" content="Install Agent using one-click script | Nezha Monitoring">
|
||||
<meta property="og:title" content="Install Agent using one-click script | Nezha Monitoring">
|
||||
@@ -64,7 +64,7 @@
|
||||
start
|
||||
<span class="token punctuation">}</span>
|
||||
</code></pre></div><ul><li>Give it permission to execute: <code>chmod +x /etc/init.d/nezha-service</code></li><li>Start the service <code>/etc/init.d/nezha-service enable && /etc/init.d/nezha-service start</code><br><br></li></ul><h2 id="customize-agent" tabindex="-1">Customize Agent <a class="header-anchor" href="#customize-agent" aria-hidden="true">#</a></h2><h4 id="customize-the-nic-and-hard-drive-partitions-to-be-monitored" tabindex="-1">Customize the NIC and hard drive partitions to be monitored <a class="header-anchor" href="#customize-the-nic-and-hard-drive-partitions-to-be-monitored" aria-hidden="true">#</a></h4><ul><li>Run <code>/opt/nezha/agent/nezha-agent --edit-agent-config</code> to select a custom NIC and partition, and then restart Agent</li></ul><h4 id="other-flags" tabindex="-1">Other Flags <a class="header-anchor" href="#other-flags" aria-hidden="true">#</a></h4><p>Run <code>./nezha-agent --help</code> to view supported flags,if you are already using the one-click script, you can edit <code>/etc/systemd/system/nezha-agent.service</code>,at the end of this line <code>ExecStart=</code> add:</p><ul><li><code>--report-delay</code> System information reporting interval, default is 1 second, can be set to 3 to reduce the system resource usage on the agent side (configuration range 1-4)</li><li><code>--skip-conn</code> Not monitoring the number of connections, if it is a server with a large number of connections, the CPU usage will be high. It is recommended to set this to reduce CPU usage</li><li><code>--skip-procs</code> Disable monitoring the number of processes can also reduce CPU and memory usage</li><li><code>--disable-auto-update</code> Disable <strong>Automatic Update</strong> Agent (security feature)</li><li><code>--disable-force-update</code> Disable <strong>Forced Update</strong> Agent (security feature)</li><li><code>--disable-command-execute</code> Disable execution of scheduled tasks, disallow WebShell (security feature)</li><li><code>--tls</code> Enable SSL/TLS encryption (If you are using nginx to reverse proxy Agent´s grpc connections, and if nginx has SSL/TLS enabled, you need to enable this configuration)</li></ul><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-hidden="true">#</a></h2><h3 id="is-there-a-docker-image-for-agent" tabindex="-1">Is there a Docker image for Agent? <a class="header-anchor" href="#is-there-a-docker-image-for-agent" aria-hidden="true">#</a></h3><p><strong>There is currently no Docker image for Agent.</strong><br> The Agent is designed to be the opposite of the Dashboard, in that the Dashboard is designed to work without affecting the server as much as possible, while the Agent needs to execute monitoring services and run commands in the server.<br> Putting the Agent in a container does continue to execute monitoring services, but features such as WebShell do not work, so we do not provide Docker image of the Agent.</p></div></div><footer class="page-footer" data-v-7eddb2c4 data-v-07c132fc><div class="edit" data-v-07c132fc><div class="edit-link" data-v-07c132fc data-v-1ed99556><a class="link" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/en_US/guide/agent.md" target="_blank" rel="noopener noreferrer" data-v-1ed99556>Edit this page on GitHub <svg class="icon outbound icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-1ed99556><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="updated" data-v-07c132fc><p class="last-updated" data-v-07c132fc data-v-abce3432><span class="prefix" data-v-abce3432>Last Updated:</span><span class="datetime" data-v-abce3432></span></p></div></footer><div class="next-and-prev-link" data-v-7eddb2c4 data-v-38ede35f><div class="container" data-v-38ede35f><div class="prev" data-v-38ede35f><a class="link" href="/en_US/guide/dashboard" data-v-38ede35f><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="icon icon-prev" data-v-38ede35f><path d="M19,11H7.4l5.3-5.3c0.4-0.4,0.4-1,0-1.4s-1-0.4-1.4,0l-7,7c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.2-0.1,0.5,0,0.8c0.1,0.1,0.1,0.2,0.2,0.3l7,7c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L7.4,13H19c0.6,0,1-0.4,1-1S19.6,11,19,11z"></path></svg><span class="text" data-v-38ede35f>Install Dashboard</span></a></div><div class="next" data-v-38ede35f><a class="link" href="/en_US/guide/servers" data-v-38ede35f><span class="text" data-v-38ede35f>Servers</span><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="icon icon-next" data-v-38ede35f><path d="M19.9,12.4c0.1-0.2,0.1-0.5,0-0.8c-0.1-0.1-0.1-0.2-0.2-0.3l-7-7c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l5.3,5.3H5c-0.6,0-1,0.4-1Line truncated
|
||||
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"aae6ce67\",\"case_case2.md\":\"21bc3d83\",\"case_index.md\":\"04195f4a\",\"developer_index.md\":\"11476340\",\"developer_l10n.md\":\"b0849891\",\"developer_theme.md\":\"7cd8ff5c\",\"en_us_case_case1.md\":\"112b48b6\",\"en_us_case_case2.md\":\"d7b9a616\",\"en_us_case_index.md\":\"41ebc23f\",\"en_us_developer_index.md\":\"3825874c\",\"en_us_developer_l10n.md\":\"8afe4c3a\",\"en_us_developer_theme.md\":\"abd732be\",\"en_us_guide_agent.md\":\"85b101e2\",\"en_us_guide_agentq.md\":\"ddff8420\",\"en_us_guide_api.md\":\"7775e30d\",\"en_us_guide_dashboard.md\":\"3fde53b5\",\"en_us_guide_dashboardq.md\":\"bc04f866\",\"en_us_guide_loginq.md\":\"3165c755\",\"en_us_guide_notifications.md\":\"135dd487\",\"en_us_guide_q2.md\":\"0ea280ac\",\"en_us_guide_q3.md\":\"23865207\",\"en_us_guide_q4.md\":\"601451a7\",\"en_us_guide_q5.md\":\"3d4c7115\",\"en_us_guide_q6.md\":\"1f71b9b2\",\"en_us_guide_servers.md\":\"740d0da3\",\"en_us_guide_services.md\":\"c67f0406\",\"en_us_guide_settings.md\":\"1a09e853\",\"en_us_guide_tasks.md\":\"1713f225\",\"en_us_index.md\":\"0159db53\",\"guide_agent.md\":\"0593529f\",\"guide_agentq.md\":\"f8c39e31\",\"guide_api.md\":\"1d9345cd\",\"guide_dashboard.md\":\"0627dae6\",\"guide_dashboardq.md\":\"707e7e2d\",\"guide_loginq.md\":\"c6342366\",\"guide_notifications.md\":\"f006b054\",\"guide_q1.md\":\"30c1b64e\",\"guide_q2.md\":\"3152c173\",\"guide_q3.md\":\"1b71e3fa\",\"guide_q4.md\":\"0b506117\",\"guide_q5.md\":\"c3b7cdb5\",\"guide_q6.md\":\"4d681011\",\"guide_servers.md\":\"410f9c13\",\"guide_services.md\":\"957570cc\",\"guide_settings.md\":\"f50de3a6\",\"guide_tasks.md\":\"9b69c453\",\"index.md\":\"cebe7fc1\"}")</script>
|
||||
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"0c122eee\",\"case_case2.md\":\"72f608df\",\"case_index.md\":\"1bae0839\",\"developer_index.md\":\"4f39d663\",\"developer_l10n.md\":\"a1f9b718\",\"developer_theme.md\":\"e99236ab\",\"en_us_case_case1.md\":\"0b1f0924\",\"en_us_case_case2.md\":\"5deee952\",\"en_us_case_index.md\":\"c9cddef1\",\"en_us_developer_index.md\":\"3fb3dcbf\",\"en_us_developer_l10n.md\":\"ee8478dc\",\"en_us_developer_theme.md\":\"5e331152\",\"en_us_guide_agent.md\":\"c4c29fc0\",\"en_us_guide_agentq.md\":\"356eafb3\",\"en_us_guide_api.md\":\"fe715a81\",\"en_us_guide_dashboard.md\":\"a5d79bc9\",\"en_us_guide_dashboardq.md\":\"f33e0ba7\",\"en_us_guide_loginq.md\":\"c4323d76\",\"en_us_guide_notifications.md\":\"1d07b7b1\",\"en_us_guide_q2.md\":\"a4880b43\",\"en_us_guide_q3.md\":\"3d8d3a97\",\"en_us_guide_q4.md\":\"6a5aa82e\",\"en_us_guide_q5.md\":\"f03a32e6\",\"en_us_guide_q6.md\":\"65cc6b71\",\"en_us_guide_servers.md\":\"b9e6256a\",\"en_us_guide_services.md\":\"fb74bd46\",\"en_us_guide_settings.md\":\"9ed90521\",\"en_us_guide_tasks.md\":\"71a50fc0\",\"en_us_index.md\":\"b83368f2\",\"guide_agent.md\":\"7f6fff95\",\"guide_agentq.md\":\"444874a7\",\"guide_api.md\":\"09412a14\",\"guide_dashboard.md\":\"a6ea86e2\",\"guide_dashboardq.md\":\"97950d0b\",\"guide_loginq.md\":\"b4438748\",\"guide_notifications.md\":\"b3d8f8ef\",\"guide_q1.md\":\"d0e44822\",\"guide_q2.md\":\"b6f22b15\",\"guide_q3.md\":\"7d483bd4\",\"guide_q4.md\":\"34a6d71e\",\"guide_q5.md\":\"e2aeb238\",\"guide_q6.md\":\"389777d5\",\"guide_servers.md\":\"fbc8c14a\",\"guide_services.md\":\"cbb69a1e\",\"guide_settings.md\":\"b7804f57\",\"guide_tasks.md\":\"139b31bb\",\"index.md\":\"78928b91\"}")</script>
|
||||
<script type="module" async src="/assets/app.457c27ae.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user