The client of NodeStatus / Golang Version

NodeStatus-client-go

The client of NodeStatus written in Golang

使用说明

请直接下载release下的对应平台的二进制文件。

运行时需传入客户端对应参数。

假设你的服务端地址是https://tz.mydomain.com,客户端用户名username,密码password

你可以这样运行

/usr/local/NodeStatus/client/config.conf wget https://raw.githubusercontent.com/cokemine/nodestatus-client-go/master/service/status-client.service -P /usr/lib/systemd/system/ systemctl enable status-client systemctl start status-client systemctl status status-client ">
mkdir -p /usr/local/NodeStatus/client/
cd /tmp && wget "https://github.com/cokemine/nodestatus-client-go/releases/latest/download/status-client_linux_amd64.tar.gz"
tar -zxvf status-client_linux_amd64.tar.gz status-client
mv status-client /usr/local/NodeStatus/client/
chmod +x /usr/local/NodeStatus/client/status-client
echo 'DSN="wss://username:[email protected]"' > /usr/local/NodeStatus/client/config.conf
wget https://raw.githubusercontent.com/cokemine/nodestatus-client-go/master/service/status-client.service -P /usr/lib/systemd/system/
systemctl enable status-client
systemctl start status-client
systemctl status status-client

CLI Options

  -dsn string
        Input DSN, format: ws(s)://username:password@host
  -h string
        Input the host of the server
  -interval float
        Input the INTERVAL (default 1.5)
  -p string
        Input the client's password
  -u string
        Input the client's username
  -vnstat
        Use vnstat for traffic statistics, linux only
Owner
神楽坂みずき
Frontend learner
神楽坂みずき
Comments
  • macOS 运行出错

    macOS 运行出错

    运行命令:

    status-client --dsn wss://xxx:[email protected]
    

    加不加 sudo 都一样

    报错信息:

    panic: runtime error: index out of range [0] with length 0
    
    goroutine 1 [running]:
    github.com/cokemine/ServerStatus-goclient/pkg/status.Cpu(0xc0000163d8, 0xc00039cd90)
    	/home/runner/go/pkg/mod/github.com/cokemine/[email protected]/pkg/status/status.go:77 +0x130
    main.connect()
    	/home/runner/work/nodestatus-client-go/nodestatus-client-go/cmd/client/client.go:104 +0x476
    main.main()
    	/home/runner/work/nodestatus-client-go/nodestatus-client-go/cmd/client/client.go:182 +0x1a5
    
  • 一键脚本问题咨询

    一键脚本问题咨询

    假设你的服务端地址是https://tz.mydomain.com,客户端用户名username,密码password

    服务端地址如果没有使用反代 是不是要加上端口号啊

    DSN="wss://username:[email protected]:端口号

    还是必须反代以后才可以用啊

  • 出现Only one connection per user allowed是什么原因?

    出现Only one connection per user allowed是什么原因?

    有一台vps 频繁收到掉线通知, 看log 里出现这条log, 然后就被nodestatus服务器那边ban了. 等2分钟后重试才连上. ssh连vps上同时看的 journalctl -f -u status-client 和 ping nodestatus服务器地址. 看ping是没掉线, 网络有抖动会 导致这个问题吗?

    Dec 11 17:31:01 C20210906147344 status-client[7720]: 2021/12/11 17:31:01 Authentication successful. Access granted.
    Dec 11 17:31:01 C20210906147344 status-client[7720]: 2021/12/11 17:31:01 You are connecting via: IPv4
    Dec 11 17:38:06 C20210906147344 status-client[7720]: 2021/12/11 17:38:06 Authentication required
    Dec 11 17:38:06 C20210906147344 status-client[7720]: 2021/12/11 17:38:06 Only one connection per user allowed.
    Dec 11 17:38:12 C20210906147344 status-client[7720]: 2021/12/11 17:38:12 Authentication required
    Dec 11 17:38:12 C20210906147344 status-client[7720]: 2021/12/11 17:38:12 You are banned. Please try connecting after 60 / 120 seconds
    Dec 11 17:38:18 C20210906147344 status-client[7720]: 2021/12/11 17:38:18 Authentication required
    Dec 11 17:38:18 C20210906147344 status-client[7720]: 2021/12/11 17:38:18 You are banned. Please try connecting after 60 / 120 seconds
    ......
    Dec 11 17:40:32 C20210906147344 status-client[7720]: 2021/12/11 17:40:32 Authentication successful. Access granted
    
  • chore(deps): update module go to 1.19 - autoclosed

    chore(deps): update module go to 1.19 - autoclosed

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | go (source) | golang | minor | 1.16 -> 1.19 |


    Release Notes

    golang/go

    v1.19.4

    v1.19.3

    v1.19.2

    v1.19.1

    v1.19.0

    v1.18.9

    v1.18.8

    v1.18.7

    v1.18.6

    v1.18.5

    v1.18.4

    v1.18.3

    v1.18.2

    v1.18.1

    v1.18.0

    v1.17.13

    v1.17.12

    v1.17.11

    v1.17.10

    v1.17.9

    v1.17.8

    v1.17.7

    v1.17.6

    v1.17.5

    v1.17.4

    v1.17.3

    v1.17.2

    v1.17.1

    v1.17.0


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update module github.com/cokemine/serverstatus-goclient to v1.1.14

    fix(deps): update module github.com/cokemine/serverstatus-goclient to v1.1.14

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/cokemine/ServerStatus-goclient | require | patch | v1.1.13 -> v1.1.14 |


    Release Notes

    cokemine/ServerStatus-goclient

    v1.1.14

    Compare Source

    Changelog

    • dd93027 chore: run go mod tidy after go module updates
    • 3eb4d95 fix(deps): update module github.com/shirou/gopsutil/v3 to v3.22.10 (#​21)

    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • chore(deps): update actions/checkout action to v3

    chore(deps): update actions/checkout action to v3

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | actions/checkout | action | major | v2 -> v3 |


    Release Notes

    actions/checkout

    v3

    Compare Source


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

  • chore(deps): update actions/setup-go action to v3

    chore(deps): update actions/setup-go action to v3

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | actions/setup-go | action | major | v2 -> v3 |


    Release Notes

    actions/setup-go

    v3

    Compare Source


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

  • fix(deps): update module github.com/gorilla/websocket to v1.5.0

    fix(deps): update module github.com/gorilla/websocket to v1.5.0

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/gorilla/websocket | require | minor | v1.4.2 -> v1.5.0 |


    Release Notes

    gorilla/websocket

    v1.5.0

    Compare Source

    Minor new features and maintenance update

    CHANGELOG


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

  • fix(deps): update module github.com/cokemine/serverstatus-goclient to v1.1.9

    fix(deps): update module github.com/cokemine/serverstatus-goclient to v1.1.9

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/cokemine/ServerStatus-goclient | require | patch | v1.1.8 -> v1.1.9 |


    Release Notes

    cokemine/ServerStatus-goclient

    v1.1.9

    Compare Source

    Changelog

    • 583c3b6 feat: add installation script (#​13)
    • 53dc663 fix(deps): update module github.com/shirou/gopsutil/v3 to v3.21.12 (#​9)
    • 2a238be fix(deps): update module github.com/shirou/gopsutil/v3 to v3.22.1 (#​15)
    • 5d93eb4 fix(vnstat): panic when not enough data available (#​14)

    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

  • fix(deps): update module github.com/vmihailenco/msgpack/v5 to v5.3.5

    fix(deps): update module github.com/vmihailenco/msgpack/v5 to v5.3.5

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/vmihailenco/msgpack/v5 | require | patch | v5.3.4 -> v5.3.5 |


    Release Notes

    vmihailenco/msgpack

    v5.3.5

    Compare Source


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

  • fix(deps): update module github.com/cokemine/serverstatus-goclient to v1.1.8

    fix(deps): update module github.com/cokemine/serverstatus-goclient to v1.1.8

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/cokemine/ServerStatus-goclient | require | patch | v1.1.5 -> v1.1.8 |


    Release Notes

    cokemine/ServerStatus-goclient

    v1.1.8

    Compare Source

    Changelog

    38a04c2 chore: update deps 2ec85d7 fix: fix hot swapping disk panic

    v1.1.7

    Compare Source

    Changelog

    0f63f63 chore: add renovate bot d828ba9 fix(deps): update module github.com/shirou/gopsutil/v3 to v3.21.9 (#​5) e1b64e8 refactor: replace encoding/json with jsoniter

    v1.1.6

    Compare Source

    Changelog

    820621d fix: fix wrong load and cpu display


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

  • 甲骨文ARM机器安装客户端出错

    甲骨文ARM机器安装客户端出错

    [错误] NodeStatus Client 启动失败! [root@abudhabi-tz ~]# systemctl start status-client [root@abudhabi-tz ~]# systemctl status status-client ● status-client.service - NodeStatus-Client Loaded: loaded (/usr/lib/systemd/system/status-client.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2022-02-11 08:09:41 GMT; 7s ago Docs: https://github.com/cokemine/nodestatus-client-go Process: 86278 ExecStart=/usr/local/NodeStatus/client/status-client --dsn $DSN (code=exited, status=203/EXEC) Main PID: 86278 (code=exited, status=203/EXEC)

    Feb 11 08:09:41 abudhabi-tz systemd[1]: status-client.service: Main process exited, code=exited, status=203/EXEC Feb 11 08:09:41 abudhabi-tz systemd[1]: status-client.service: Failed with result 'exit-code'. Feb 11 08:09:41 abudhabi-tz systemd[1]: status-client.service: Service RestartSec=100ms expired, scheduling restart. Feb 11 08:09:41 abudhabi-tz systemd[1]: status-client.service: Scheduled restart job, restart counter is at 5. Feb 11 08:09:41 abudhabi-tz systemd[1]: Stopped NodeStatus-Client. Feb 11 08:09:41 abudhabi-tz systemd[1]: status-client.service: Start request repeated too quickly. Feb 11 08:09:41 abudhabi-tz systemd[1]: status-client.service: Failed with result 'exit-code'. Feb 11 08:09:41 abudhabi-tz systemd[1]: Failed to start NodeStatus-Client. [root@abudhabi-tz ~]#

  • Dependency Dashboard

    Dependency Dashboard

    This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

    This repository currently has no open or pending branches.

    Detected dependencies

    github-actions
    .github/workflows/release.yml
    • actions/checkout v3
    gomod
    go.mod
    • go 1.16
    • github.com/cokemine/ServerStatus-goclient v1.1.14
    • github.com/gorilla/websocket v1.5.0
    • github.com/vmihailenco/msgpack/v5 v5.3.5

    • [ ] Check this box to trigger a request for Renovate to run again on this repository
Clusterpedia-client - clusterpedia-client supports the use of native client-go mode to call the clusterpedia API

clusterpedia-client supports the use of native client-go mode to call the cluste

Jan 7, 2022
Client-go - Clusterpedia-client supports the use of native client-go mode to call the clusterpedia API

clusterpedia-client supports the use of native client-go mode to call the cluste

Dec 5, 2022
This is a Golang wrapper for working with TMDb API. It aims to support version 3.
This is a Golang wrapper for working with TMDb API. It aims to support version 3.

This is a Golang wrapper for working with TMDb API. It aims to support version 3. An API Key is required. To register for one, head over to themoviedb

Dec 27, 2022
Golang API for Whatsapp API MultiDevice version
Golang API for Whatsapp API MultiDevice version

Go Whatsapp API Multi Device Version Required Mac OS: brew install vips export C

Jan 3, 2023
Client-server-golang-sqs - Client Server with SQS and golang

Client Server with SQS and golang Multi-threaded client-server demo with Go What

Feb 14, 2022
okex v5sdk for go version

okex v5sdk for go version

Jan 2, 2023
The task given by Appointy completed to develop APIs for a basic version of Instagram.

✨ Instagram APIs ✨ The task given by Appointy completed to develop APIs for a basic version of Instagram. Create an User Get User by Id Create a Post

Oct 9, 2021
The task is to develop a basic version of a Instagram.
The task is to develop a basic version of a Instagram.

Golang-api-task Developer: Mukka Deepak The task is to develop a basic version of aInstagram. You are only required to develop the API for the system.

Oct 23, 2021
A serverless teeny-tiny version of Diomedes which sends alerts to Telegram. Written in Go.
A serverless teeny-tiny version of Diomedes which sends alerts to Telegram. Written in Go.

diomedes-search Get a notification on Telegram whenever your movie opens bookings in a theater of your choice. Pre-requisites Install AWS CLI (v2) by

Oct 11, 2022
Sdk-go - Go version of the Synapse SDK

synapsesdk-go Synapse Protocol's Go SDK. Currently in super duper alpha, do not

Jan 7, 2022
Go-archvariant - Go package for determining the maximum compatibility version of the current system

go-archvariant Go package for determining the maximum compatibility version of t

Feb 19, 2022
🐥 Sturdy is an open-source, real-time, version control platform for startups
🐥 Sturdy is an open-source, real-time, version control platform for startups

Welcome to Sturdy! ?? ?? Real-time code collaboration. Sturdy is an open-source version control platform that allows you to interact with your code at

Dec 24, 2022
Go-http-client: An enhanced http client for Golang
Go-http-client: An enhanced http client for Golang

go-http-client An enhanced http client for Golang Documentation on go.dev ?? This package provides you a http client package for your http requests. Y

Jan 7, 2023
Client for the cloud-iso-client

cloud-iso-client Client for the cloud-iso-client. Register an API token Before using this client library, you need to register an API token under your

Dec 6, 2021
Nutanix-client-go - Go client for the Nutanix Prism V3 API

nutanix-client-go This repository contains portions of the Nutanix API client code in nutanix/terraform-provider-nutanix. It has been extracted to red

Jan 6, 2022
Aoe4-client - Client library for aoe4 leaderboards etc

AOE4 Client Overview This is a go client used to query AOE4 data from either the

Jan 18, 2022
Balabola-go-client - GO client for Yandex balabola service

Balabola GO Client GO client for Yandex balabola service Yandex warning The neur

Jan 29, 2022
Golang client for ethereum json rpc api

Ethrpc Golang client for ethereum JSON RPC API. web3_clientVersion web3_sha3 net_version net_peerCount net_listening eth_protocolVersion eth_syncing e

Jan 7, 2023
A golang client for the Twitch v3 API - public APIs only (for now)

go-twitch Test CLIENT_ID="<my client ID>" go test -v -cover Usage Example File: package main import ( "log" "os" "github.com/knspriggs/go-twi

Sep 27, 2022