45 Commits

Author SHA1 Message Date
UUBulb
3dfb62287b
report geoip separately (#87)
* report geoip separately

* default 30s
2024-11-22 22:36:50 +08:00
UUBulb
32481e2b6f
fix potential race (#86) 2024-11-18 20:51:15 +08:00
UUBulb
af41e4d843
modularize monitor, reduce init usage (#81)
* kill process tree using syscall on windows & cleanup (#80)

* kill process tree using syscall on windows & cleanup

* use job api

* add error check for cmd.Start

* modularize monitor, reduce init usage

* replace slices with sort

* update gopsutil & other dependencies
2024-11-03 21:53:09 +08:00
UUBulb
0cba96bae1
gpu: support read usage of multiple cards on linux (#79) 2024-10-24 20:43:17 +08:00
naiba
f0c2a7a766 refactor cmd arch & auth func 2024-10-20 22:54:48 +08:00
UUBulb
404260187c
grpc: update deprecated method (#74)
* grpc: update deprecated method

* grpc: add connection timeout

* remove cf-ns.com

* prolong connection timeout to 10s

* remove connection timeout
2024-10-18 15:08:51 +08:00
UUBulb
b3211b9c40
improve: sort sensor names & add an ignore list for sensors (#71)
* improve: sort sensor names

* add an ignore list for sensors
2024-10-01 19:09:32 +08:00
UUBulb
20316996f4
gpu(darwin): format the string & fix behaviors on intel (#60)
* gpu(darwin): format the string

* gpu(darwin): fix behaviors on intel

* return string directly
2024-09-06 08:31:19 +08:00
UUBulb
c8134a8b86
replace cloudflare-bpc with utls (#58)
* replace cloudflare-bpc with utls

* fix test

* ci: skip utls test
2024-08-28 23:21:25 +08:00
UUBulb
42187f2bf2
gpu/darwin: pure go implemention (#57) 2024-08-26 22:57:07 +08:00
UUBulb
73a727d435
feat: add file transfer support (#55)
* feat: add file transfer support

* 1MB buffer
2024-08-20 22:24:03 +08:00
naiba
2083512607 improve: 提高单栈机器 IP 获取速度 2024-08-11 00:14:25 +08:00
naiba
f837a6fdc8 fix: ipv6 单栈机器上报位置 2024-07-29 10:10:43 +08:00
naiba
3989ee87c8 fix: 双栈位置上报 2024-07-28 22:22:47 +08:00
naiba
fa0cc9bb7a fix: tcp-ping 2024-07-28 18:48:44 +08:00
naiba
c50a21c5b1 fix: 避免 agent 与 dashboard 更新不同步情况 2024-07-28 15:44:06 +08:00
naiba
80ef923a38 feat: tcp/icmp ping 提前取 IP 2024-07-28 15:05:30 +08:00
UUBulb
7ad3094cee
feat: use embed geoip database (#46) 2024-07-28 14:02:27 +08:00
UUBulb
c0288971d8
chore: code style (#44)
* some code refactor

* service

* chore: code style

---------

Co-authored-by: naiba <hi@nai.ba>
2024-07-23 23:20:55 +08:00
naiba
f220134e5b HTTP 内网穿透 2024-07-14 19:41:13 +08:00
UUBulb
1344fc3dd8
feat: self-updating using gitee (#39)
* feat: self-updating using gitee

* chore: rename

---------

Co-authored-by: naiba <hi@nai.ba>
2024-07-14 11:19:59 +08:00
UUBulb
fda3a52533
use --debug to replace --silent (#37)
* add --silent to service command

* ?

* use --debug to toggle the logging
2024-07-13 12:47:22 +08:00
UUBulb
3bf3f97767
feat: make logging and temperature monitoring optional (#35)
* feat: make logging and temperature monitoring optional

* chore: improve code style

* fix: import

---------

Co-authored-by: naiba <hi@nai.ba>
2024-07-10 23:58:19 +08:00
xykt
1bf702cfaa
Add --ipv6-countrycode runtime parameter to set the region flag using IPv6 by default (#36)
* Update main.go

Add --ipv6-countrycode runtime parameter to set the region flag using IPv6 by default.

* Update service.go

Add --ipv6-countrycode runtime parameter to set the region flag using IPv6 by default.

* Update myip.go

Add --ipv6-countrycode runtime parameter to set the region flag using IPv6 by default.

* chore: rename

---------

Co-authored-by: naiba <hi@nai.ba>
2024-07-10 23:29:35 +08:00
UUBulb
09c4ef1764
refactor(pty): switch to using interface (#34)
* refactor(pty): switch to using interface

for better flexibility (although may not be useful)

* chore: reduce error messages

* delete redundant messages
2024-07-07 10:18:59 +08:00
UUBulb
fb7b45527b
service: logging to syslog (#33)
* service: logging to syslog

* chore: update gopsutil to v4

* chore: move println() to the util package

* gpu: only return 0 on failure
2024-07-05 22:31:56 +08:00
UUBulb
532bca8867
Fix CPU counts error on Windows (#31) 2024-06-25 22:10:32 +08:00
UUBulb
fb86c89de7
fix: wrong IP value in some situations (#32) 2024-06-25 22:08:28 +08:00
UUBulb
81b774a7f0
fix: temperatureStat will stack up (#30) 2024-06-23 22:27:23 +08:00
UUBulb
804364e6c9
make atomicStoreFloat64 safe (#29) 2024-06-23 15:58:39 +08:00
Leon
136b3801c7
refactor: improve error handling for fetching sensor temperatures (#27) 2024-06-23 14:42:27 +08:00
UUBulb
338f0dabbe
feat: Add GPU inspection/monitoring support (#28) 2024-06-23 10:27:18 +08:00
Leon
968faca950
Add support for monitoring sensor temperatures (#21) 2024-06-01 19:11:54 +08:00
UUBulb
833398cca0
Fix ret.CPU detection on various platforms (#16) 2024-05-12 16:49:21 +08:00
UUBulb
25ee86800c
fix virtualization detection (#15) 2024-05-05 00:06:50 +08:00
naiba
e4c52105ef Update dependencies in go.mod and go.sum files 2024-03-23 13:06:31 +08:00
Darc Z
4bfb17df46
feat: make ip update period modifiable (#13)
* feat: make ip update period modifiable

* doc: change text lead to misunderstand
2024-02-24 21:07:59 +08:00
naiba
af85ddd97e Revert "修复cpu核心数识别错误 (#7)"
This reverts commit 9abb5c0f72159c4913ad09ce211515f78cb1e5d9.
2024-01-10 09:34:56 +08:00
naiba
9abb5c0f72 修复cpu核心数识别错误 (#7)
* fix distinguish kvm host as guset

* Fix spelling errors

* Update .gitignore

* 修复cpu核心数读取错误

* 添加判断ci的长度
2024-01-05 15:58:43 +08:00
Crazy
4c7faecf1b
修复识别运行kvm虚拟机的独服为虚拟机 (#6)
* fix distinguish kvm host as guset

* Fix spelling errors

* Update .gitignore

* update contributors[no ci]

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-19 23:35:42 +08:00
naiba
25a730a4a8 enable api.myip.la 2023-09-06 09:59:09 +08:00
naiba
f7a6981a8c 🗑️ 移除失效 Geo IP API 2023-06-30 00:44:10 +08:00
naiba
3e6cc035e0 update 2023-05-13 15:28:54 +08:00
naiba
7eab9d9ed0 update 2023-05-10 23:18:35 +08:00
naiba
fb83d0d303 init 2023-05-10 23:02:15 +08:00