| "use strict";(self.webpackChunkhertzbeat=self.webpackChunkhertzbeat||[]).push([[42300],{15680:(e,t,r)=>{r.d(t,{xA:()=>c,yg:()=>y});var n=r(96540);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var l=n.createContext({}),g=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=g(e.components);return n.createElement(l.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,l=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),m=g(r),y=a,u=m["".concat(l,".").concat(y)]||m[y]||s[y]||o;return r?n.createElement(u,p(p({ref:t},c),{},{components:r})):n.createElement(u,p({ref:t},c))}));function y(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=m;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:a,p[1]=i;for(var g=2;g<o;g++)p[g]=r[g];return n.createElement.apply(null,p)}return n.createElement.apply(null,r)}m.displayName="MDXCreateElement"},50195:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>p,default:()=>s,frontMatter:()=>o,metadata:()=>i,toc:()=>g});var n=r(58168),a=(r(96540),r(15680));const o={id:"issue",title:"\u5e38\u89c1\u95ee\u9898",sidebar_label:"\u5e38\u89c1\u95ee\u9898"},p=void 0,i={unversionedId:"help/issue",id:"version-v1.3.x/help/issue",title:"\u5e38\u89c1\u95ee\u9898",description:"\u76d1\u63a7\u5e38\u89c1\u95ee\u9898",source:"@site/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/issue.md",sourceDirName:"help",slug:"/help/issue",permalink:"/zh-cn/docs/v1.3.x/help/issue",draft:!1,editUrl:"https://github.com/dromara/hertzbeat/edit/master/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/issue.md",tags:[],version:"v1.3.x",frontMatter:{id:"issue",title:"\u5e38\u89c1\u95ee\u9898",sidebar_label:"\u5e38\u89c1\u95ee\u9898"},sidebar:"docs",previous:{title:"\u544a\u8b66\u534e\u4e3a\u4e91SMN\u901a\u77e5",permalink:"/zh-cn/docs/v1.3.x/help/alert_smn"},next:{title:"\u5f00\u53d1\u8005\u4eec",permalink:"/zh-cn/docs/v1.3.x/others/developer"}},l={},g=[{value:"\u76d1\u63a7\u5e38\u89c1\u95ee\u9898",id:"\u76d1\u63a7\u5e38\u89c1\u95ee\u9898",level:3},{value:"Docker\u90e8\u7f72\u5e38\u89c1\u95ee\u9898",id:"docker\u90e8\u7f72\u5e38\u89c1\u95ee\u9898",level:3},{value:"\u5b89\u88c5\u5305\u90e8\u7f72\u5e38\u89c1\u95ee\u9898",id:"\u5b89\u88c5\u5305\u90e8\u7f72\u5e38\u89c1\u95ee\u9898",level:3}],c={toc:g};function s(e){let{components:t,...r}=e;return(0,a.yg)("wrapper",(0,n.A)({},c,r,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("h3",{id:"\u76d1\u63a7\u5e38\u89c1\u95ee\u9898"},"\u76d1\u63a7\u5e38\u89c1\u95ee\u9898"),(0,a.yg)("ol",null,(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},(0,a.yg)("strong",{parentName:"p"}," \u9875\u9762\u53cd\u9988\uff1amonitor.host:\u76d1\u63a7Host\u5fc5\u987b\u662fipv4,ipv6\u6216\u57df\u540d ")," "),(0,a.yg)("blockquote",{parentName:"li"},(0,a.yg)("p",{parentName:"blockquote"},"\u5982\u4fe1\u606f\u6240\u793a\uff0c\u8f93\u5165\u7684\u76d1\u63a7Host\u987b\u662fipv4,ipv6\u6216\u57df\u540d\uff0c\u4e0d\u80fd\u643a\u5e26\u534f\u8bae\u5934\uff0c\u4f8b\u5982\u534f\u8bae\u5934http "))),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},(0,a.yg)("strong",{parentName:"p"}," \u7f51\u7ad9API\u7b49\u76d1\u63a7\u53cd\u9988statusCode:403\u6216401\uff0c\u4f46\u5bf9\u7aef\u670d\u52a1\u672c\u8eab\u65e0\u9700\u8ba4\u8bc1\uff0c\u6d4f\u89c8\u5668\u76f4\u63a5\u8bbf\u95ee\u662fOK ")," "),(0,a.yg)("blockquote",{parentName:"li"},(0,a.yg)("p",{parentName:"blockquote"},"\u8bf7\u6392\u67e5\u662f\u5426\u662f\u88ab\u9632\u706b\u5899\u62e6\u622a\uff0c\u5982\u5b9d\u5854\u7b49\u9ed8\u8ba4\u8bbe\u7f6e\u4e86\u5bf9\u8bf7\u6c42header\u4e2d",(0,a.yg)("inlineCode",{parentName:"p"},"User-Agent=Apache-HttpClient"),"\u7684\u62e6\u622a\uff0c\u82e5\u88ab\u62e6\u622a\u8bf7\u5220\u9664\u6b64\u62e6\u622a\u89c4\u5219\u3002(v1.0.beat5\u7248\u672c\u5df2\u5c06user-agent\u6a21\u62df\u6210\u6d4f\u89c8\u5668\u6b64\u95ee\u9898\u4e0d\u5b58\u5728) "))),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},"\u5b89\u88c5\u5305\u90e8\u7f72\u7684hertzbeat\u4e0bping\u8fde\u901a\u6027\u76d1\u63a7\u5f02\u5e38",(0,a.yg)("br",{parentName:"p"}),"\n","\u5b89\u88c5\u5305\u5b89\u88c5\u90e8\u7f72\u7684hertzbeat,\u5bf9ping\u8fde\u901a\u6027\u76d1\u63a7\u4e0d\u53ef\u7528\uff0c\u4f46\u672c\u5730\u76f4\u63a5ping\u662f\u53ef\u7528\u7684\u3002 "),(0,a.yg)("blockquote",{parentName:"li"},(0,a.yg)("p",{parentName:"blockquote"},"\u5b89\u88c5\u5305\u90e8\u7f72\u9700\u8981\u914d\u7f6ejava\u865a\u62df\u673aroot\u6743\u9650\u542f\u52a8hertzbeat\u4ece\u800c\u4f7f\u7528ICMP\uff0c\u82e5\u672a\u542f\u7528root\u6743\u9650\u5219\u662f\u5224\u65adtelnet\u5bf9\u7aef7\u53f7\u7aef\u53e3\u662f\u5426\u5f00\u901a",(0,a.yg)("br",{parentName:"p"}),"\n","docker\u5b89\u88c5\u9ed8\u8ba4\u542f\u7528\u65e0\u6b64\u95ee\u9898 "))),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},"\u76d1\u63a7\u9875\u9762\u5386\u53f2\u56fe\u8868\u4e0d\u663e\u793a\uff0c\u5f39\u51fa ","[\u65e0\u6cd5\u63d0\u4f9b\u5386\u53f2\u56fe\u8868\u6570\u636e\uff0c\u8bf7\u914d\u7f6e\u4f9d\u8d56\u670d\u52a1TDengine\u65f6\u5e8f\u6570\u636e\u5e93]"," "),(0,a.yg)("blockquote",{parentName:"li"},(0,a.yg)("p",{parentName:"blockquote"},"\u5982\u5f39\u7a97\u6240\u793a\uff0c\u5386\u53f2\u56fe\u8868\u5c55\u793a\u7684\u524d\u63d0\u662f\u9700\u8981\u5b89\u88c5\u914d\u7f6ehertzbeat\u7684\u4f9d\u8d56\u670d\u52a1 - TDengine\u6570\u636e\u5e93\n\u5b89\u88c5\u521d\u59cb\u5316\u6b64\u6570\u636e\u5e93\u53c2\u8003 ",(0,a.yg)("a",{parentName:"p",href:"../start/tdengine-init"},"TDengine\u5b89\u88c5\u521d\u59cb\u5316")," "))),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},"\u914d\u7f6e\u4e86k8s\u76d1\u63a7\uff0c\u4f46\u662f\u5b9e\u9645\u76d1\u63a7\u65f6\u95f4\u5e76\u672a\u6309\u7167\u6b63\u786e\u95f4\u9694\u65f6\u95f4\u6267\u884c",(0,a.yg)("br",{parentName:"p"}),"\n","\u8bf7\u53c2\u8003\u4e0b\u9762\u51e0\u70b9\u6392\u67e5\u95ee\u9898\uff1a "),(0,a.yg)("blockquote",{parentName:"li"},(0,a.yg)("p",{parentName:"blockquote"},"\u4e00\uff1a\u9996\u5148\u67e5\u770bhertzbeat\u7684\u9519\u8bef\u65e5\u5fd7\uff0c\u5982\u679c\u51fa\u73b0\u4e86'desc: SQL statement too long, check maxSQLLength config'\uff0c\u4fe1\u606f",(0,a.yg)("br",{parentName:"p"}),"\n","\u4e8c\uff1a\u9700\u8981\u8c03\u6574tdengine\u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u5728\u670d\u52a1\u5668\u521b\u5efataos.cfg\u6587\u4ef6\uff0c\u8c03\u6574# max length of an SQL : maxSQLLength 654800\uff0c\u7136\u540e\u91cd\u542ftdengine\uff0c\u9700\u8981\u52a0\u5165\u914d\u7f6e\u6587\u4ef6\u7684\u6302\u8f7d",(0,a.yg)("br",{parentName:"p"}),"\n","\u4e09\uff1a\u5982\u679c\u9047\u5230\u4e86\u91cd\u542ftdengine\u5931\u8d25\uff0c\u9700\u8981\u8c03\u6574\u6302\u8f7d\u6570\u636e\u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\uff0c\u89c1 .../taosdata/dnode/dnodeEps.json\uff0c\u4e2ddnodeFqdn\u8c03\u6574\u4e3a\u542f\u52a8\u5931\u8d25\u7684dockerId\u5373\u53ef\uff0c\u7136\u540edocker restart tdengine",(0,a.yg)("br",{parentName:"p"}),"\n",'6.\u914d\u7f6ehttp api\u76d1\u63a7\uff0c\u7528\u4e8e\u8fdb\u884c\u4e1a\u52a1\u63a5\u53e3\u63a2\u6d4b\uff0c\u786e\u4fdd\u4e1a\u52a1\u53ef\u4ee5\u7528\uff0c\u53e6\u5916\u63a5\u53e3\u6709\u8fdb\u884ctoken\u9274\u6743\u6821\u9a8c\uff0c"Authorization\uff1aBearer eyJhbGciOiJIUzI1...."\uff0c\u914d\u7f6e\u540e\u6d4b\u8bd5\uff0c\u63d0\u793a\u201cStatusCode 401\u201d\u3002\u670d\u52a1\u7aef\u5e94\u7528\u6536\u5230\u7684token\u4e3a"Authorization\uff1aBearer%20eyJhbGciOiJIUzI1....",hertzbeat\u5bf9\u7a7a\u683c\u8fdb\u884c\u8f6c\u4e49\u4e3a\u201c%20\u201d\uff0c\u670d\u52a1\u5668\u6ca1\u6709\u8f6c\u4e49\u5bfc\u81f4\u9274\u6743\u5931\u8d25\uff0c\u5efa\u8bae\u8f6c\u4e49\u529f\u80fd\u4f5c\u4e3a\u53ef\u9009\u9879\u3002')))),(0,a.yg)("h3",{id:"docker\u90e8\u7f72\u5e38\u89c1\u95ee\u9898"},"Docker\u90e8\u7f72\u5e38\u89c1\u95ee\u9898"),(0,a.yg)("ol",null,(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},(0,a.yg)("strong",{parentName:"p"},"MYSQL,TDENGINE\u548cHertzBeat\u90fdDocker\u90e8\u7f72\u5728\u540c\u4e00\u4e3b\u673a\u4e0a\uff0cHertzBeat\u4f7f\u7528localhost\u6216127.0.0.1\u8fde\u63a5\u6570\u636e\u5e93\u5931\u8d25"),(0,a.yg)("br",{parentName:"p"}),"\n","\u6b64\u95ee\u9898\u672c\u8d28\u4e3aDocker\u5bb9\u5668\u8bbf\u95ee\u5bbf\u4e3b\u673a\u7aef\u53e3\u8fde\u63a5\u5931\u8d25\uff0c\u7531\u4e8edocker\u9ed8\u8ba4\u7f51\u7edc\u6a21\u5f0f\u4e3aBridge\u6a21\u5f0f\uff0c\u5176\u901a\u8fc7localhost\u8bbf\u95ee\u4e0d\u5230\u5bbf\u4e3b\u673a\u3002"),(0,a.yg)("blockquote",{parentName:"li"},(0,a.yg)("p",{parentName:"blockquote"},"\u89e3\u51b3\u529e\u6cd5\u4e00\uff1a\u914d\u7f6eapplication.yml\u5c06\u6570\u636e\u5e93\u7684\u8fde\u63a5\u5730\u5740\u7531localhost\u4fee\u6539\u4e3a\u5bbf\u4e3b\u673a\u7684\u5bf9\u5916IP",(0,a.yg)("br",{parentName:"p"}),"\n","\u89e3\u51b3\u529e\u6cd5\u4e8c\uff1a\u4f7f\u7528Host\u7f51\u7edc\u6a21\u5f0f\u542f\u52a8Docker\uff0c\u5373\u4f7fDocker\u5bb9\u5668\u548c\u5bbf\u4e3b\u673a\u5171\u4eab\u7f51\u7edc ",(0,a.yg)("inlineCode",{parentName:"p"},"docker run -d --network host .....")," "))),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},(0,a.yg)("strong",{parentName:"p"},"\u6309\u7167\u6d41\u7a0b\u90e8\u7f72\uff0c\u8bbf\u95ee http://ip:1157/ \u65e0\u754c\u9762"),(0,a.yg)("br",{parentName:"p"}),"\n","\u8bf7\u53c2\u8003\u4e0b\u9762\u51e0\u70b9\u6392\u67e5\u95ee\u9898\uff1a "),(0,a.yg)("blockquote",{parentName:"li"},(0,a.yg)("p",{parentName:"blockquote"},"\u4e00\uff1a\u4f9d\u8d56\u670d\u52a1MYSQL\u6570\u636e\u5e93\uff0cTDENGINE\u6570\u636e\u5e93\u662f\u5426\u5df2\u6309\u7167\u542f\u52a8\u6210\u529f\uff0c\u5bf9\u5e94hertzbeat\u6570\u636e\u5e93\u662f\u5426\u5df2\u521b\u5efa\uff0cSQL\u811a\u672c\u662f\u5426\u6267\u884c",(0,a.yg)("br",{parentName:"p"}),"\n","\u4e8c\uff1aHertzBeat\u7684\u914d\u7f6e\u6587\u4ef6 ",(0,a.yg)("inlineCode",{parentName:"p"},"application.yml")," \u91cc\u9762\u7684\u4f9d\u8d56\u670d\u52a1IP\u8d26\u6237\u5bc6\u7801\u7b49\u914d\u7f6e\u662f\u5426\u6b63\u786e",(0,a.yg)("br",{parentName:"p"}),"\n","\u4e09\uff1a\u82e5\u90fd\u65e0\u95ee\u9898\u53ef\u4ee5 ",(0,a.yg)("inlineCode",{parentName:"p"},"docker logs hertzbeat")," \u67e5\u770b\u5bb9\u5668\u65e5\u5fd7\u662f\u5426\u6709\u660e\u663e\u9519\u8bef\uff0c\u63d0issue\u6216\u4ea4\u6d41\u7fa4\u6216\u793e\u533a\u53cd\u9988"))),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},(0,a.yg)("strong",{parentName:"p"},"\u65e5\u5fd7\u62a5\u9519TDengine\u8fde\u63a5\u6216\u63d2\u5165SQL\u5931\u8d25")," "),(0,a.yg)("blockquote",{parentName:"li"},(0,a.yg)("p",{parentName:"blockquote"},"\u4e00\uff1a\u6392\u67e5\u914d\u7f6e\u7684\u6570\u636e\u5e93\u8d26\u6237\u5bc6\u7801\u662f\u5426\u6b63\u786e\uff0c\u6570\u636e\u5e93\u662f\u5426\u521b\u5efa",(0,a.yg)("br",{parentName:"p"}),"\n","\u4e8c\uff1a\u82e5\u662f\u5b89\u88c5\u5305\u5b89\u88c5\u7684TDengine2.3+\uff0c\u9664\u4e86\u542f\u52a8server\u5916\uff0c\u8fd8\u9700\u6267\u884c ",(0,a.yg)("inlineCode",{parentName:"p"},"systemctl start taosadapter")," \u542f\u52a8 adapter ")))),(0,a.yg)("h3",{id:"\u5b89\u88c5\u5305\u90e8\u7f72\u5e38\u89c1\u95ee\u9898"},"\u5b89\u88c5\u5305\u90e8\u7f72\u5e38\u89c1\u95ee\u9898"),(0,a.yg)("ol",null,(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},(0,a.yg)("strong",{parentName:"p"},"\u6309\u7167\u6d41\u7a0b\u90e8\u7f72\uff0c\u8bbf\u95ee http://ip:1157/ \u65e0\u754c\u9762"),(0,a.yg)("br",{parentName:"p"}),"\n","\u8bf7\u53c2\u8003\u4e0b\u9762\u51e0\u70b9\u6392\u67e5\u95ee\u9898\uff1a"),(0,a.yg)("blockquote",{parentName:"li"},(0,a.yg)("p",{parentName:"blockquote"},"\u4e00\uff1a\u4f9d\u8d56\u670d\u52a1MYSQL\u6570\u636e\u5e93\uff0cTDENGINE\u6570\u636e\u5e93\u662f\u5426\u5df2\u6309\u7167\u542f\u52a8\u6210\u529f\uff0c\u5bf9\u5e94hertzbeat\u6570\u636e\u5e93\u662f\u5426\u5df2\u521b\u5efa\uff0cSQL\u811a\u672c\u662f\u5426\u6267\u884c",(0,a.yg)("br",{parentName:"p"}),"\n","\u4e8c\uff1aHertzBeat\u7684\u914d\u7f6e\u6587\u4ef6 ",(0,a.yg)("inlineCode",{parentName:"p"},"hertzbeat/config/application.yml")," \u91cc\u9762\u7684\u4f9d\u8d56\u670d\u52a1IP\u8d26\u6237\u5bc6\u7801\u7b49\u914d\u7f6e\u662f\u5426\u6b63\u786e",(0,a.yg)("br",{parentName:"p"}),"\n","\u4e09\uff1a\u82e5\u90fd\u65e0\u95ee\u9898\u53ef\u4ee5\u67e5\u770b ",(0,a.yg)("inlineCode",{parentName:"p"},"hertzbeat/logs/")," \u76ee\u5f55\u4e0b\u9762\u7684\u8fd0\u884c\u65e5\u5fd7\u662f\u5426\u6709\u660e\u663e\u9519\u8bef\uff0c\u63d0issue\u6216\u4ea4\u6d41\u7fa4\u6216\u793e\u533a\u53cd\u9988"))),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},(0,a.yg)("strong",{parentName:"p"},"\u65e5\u5fd7\u62a5\u9519TDengine\u8fde\u63a5\u6216\u63d2\u5165SQL\u5931\u8d25")),(0,a.yg)("blockquote",{parentName:"li"},(0,a.yg)("p",{parentName:"blockquote"},"\u4e00\uff1a\u6392\u67e5\u914d\u7f6e\u7684\u6570\u636e\u5e93\u8d26\u6237\u5bc6\u7801\u662f\u5426\u6b63\u786e\uff0c\u6570\u636e\u5e93\u662f\u5426\u521b\u5efa",(0,a.yg)("br",{parentName:"p"}),"\n","\u4e8c\uff1a\u82e5\u662f\u5b89\u88c5\u5305\u5b89\u88c5\u7684TDengine2.3+\uff0c\u9664\u4e86\u542f\u52a8server\u5916\uff0c\u8fd8\u9700\u6267\u884c ",(0,a.yg)("inlineCode",{parentName:"p"},"systemctl start taosadapter")," \u542f\u52a8 adapter")))))}s.isMDXComponent=!0}}]); |