liu304424818 commented on issue #3262: URL: https://github.com/apache/hertzbeat/issues/3262#issuecomment-2814902287
我的自定义监控完全copy了ubuntu系统监控之后 下面是我新增的 ```yaml - name: sda_mountPath i18n: zh-CN: sda挂载路径 en-US: sdaMountPath priority: 3 fields: - field: sdaMounted type: 0 unit: "/mnt/ssd" i18n: zh-CN: sda挂载点 en-US: sdaMounted protocol: ssh ssh: host: ^_^host^_^ port: ^_^port^_^ username: ^_^username^_^ password: ^_^password^_^ privateKey: ^_^privateKey^_^ privateKeyPassphrase: ^_^privateKeyPassphrase^_^ timeout: ^_^timeout^_^ reuseConnection: ^_^reuseConnection^_^ # whether to use proxy server for ssh connection useProxy: ^_^useProxy^_^ # ssh proxy host: ipv4 domain proxyHost: ^_^proxyHost^_^ # ssh proxy port proxyPort: ^_^proxyPort^_^ # ssh proxy username proxyUsername: ^_^proxyUsername^_^ # ssh proxy password proxyPassword: ^_^proxyPassword^_^ # ssh proxy private key proxyPrivateKey: ^_^proxyPrivateKey^_^ script: if [[ -n "$(lsblk | grep /mnt/ssd | awk '{print $NF}')" && "$(lsblk | grep /mnt/ssd | awk '{print $NF}')" = '/mnt/ssd' ]]; then echo 1; else echo 0; fi parseType: oneRow - name: version i18n: zh-CN: 版本号 en-US: version info priority: 3 fields: - field: who type: 1 label: true i18n: zh-CN: 板子 en-US: who - field: bundle type: 0 i18n: zh-CN: bundle版本 en-US: bundle protocol: ssh ssh: host: ^_^host^_^ port: ^_^port^_^ username: ^_^username^_^ password: ^_^password^_^ privateKey: ^_^privateKey^_^ privateKeyPassphrase: ^_^privateKeyPassphrase^_^ timeout: ^_^timeout^_^ reuseConnection: ^_^reuseConnection^_^ # whether to use proxy server for ssh connection useProxy: ^_^useProxy^_^ # ssh proxy host: ipv4 domain proxyHost: ^_^proxyHost^_^ # ssh proxy port proxyPort: ^_^proxyPort^_^ # ssh proxy username proxyUsername: ^_^proxyUsername^_^ # ssh proxy password proxyPassword: ^_^proxyPassword^_^ # ssh proxy private key proxyPrivateKey: ^_^proxyPrivateKey^_^ script: version|grep app_uuid | awk -F'"' 'BEGIN{print "who bundle"} {for(i=1;i<=NF;i++)if($i~/app_uuid/){printf NR==1?"A %s\n":"B %s\n",$4;break}}' parseType: multiRow ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org For additional commands, e-mail: notifications-h...@hertzbeat.apache.org