Comments (24)
windows?获取不到net信息就不会上报了
from categraf.
不是windows,系统是linux,降回到 0.3.48,数据就正常了,net_ 的数据就都是有的。
现在用的是 0.3.48。
from categraf.
没有保报错,指标就突然没有了?
from categraf.
下载的是 categraf-v0.3.49-linux-amd64.tar.gz
解压后,把categraf 文件替换掉,然后重新运行,再检查监控的时候就发现net相关的数值是空的。
之后重新下载了 categraf-v0.3.48-linux-amd64.tar.gz ,换掉 categraf ,所有数值就正常了。
整个过程,没有修改过任何一个配置文件。
from categraf.
3.49运行没有报错?
from categraf.
没有报错,就是net_相关的数据没有,其它的数据都是正常的。
from categraf.
from categraf.
一开始也没注意,跑了一天之后发现 Linux Host by Categraf 面板中的 “网络详情” 一直是空的才注意到这个情况的。
from categraf.
我的也是net数据没有,版本349,debian12,VPS类型服务器。
from categraf.
即时查询中,查询net开头的指标 ,看看有没有指标
from categraf.
这张图片是 0.3.49 的,
运行命令是 ./categraf --test | grep net
from categraf.
./categraf --test --inputs net
from categraf.
这个命令执行了,只有下面的内容
root@Nightingale:/opt/categraf# ./categraf.0.3.49 --test --inputs net
2024/02/18 15:25:20 I! collector.arp state (default: disabled).
2024/02/18 15:25:20 I! collector.bcache state (default: disabled).
2024/02/18 15:25:20 I! collector.bonding state (default: disabled).
2024/02/18 15:25:20 I! collector.btrfs state (default: disabled).
2024/02/18 15:25:20 I! collector.buddyinfo state (default: disabled).
2024/02/18 15:25:20 I! collector.cgroups state (default: disabled).
2024/02/18 15:25:20 I! collector.conntrack state (default: disabled).
2024/02/18 15:25:20 I! collector.cpu state (default: disabled).
2024/02/18 15:25:20 I! collector.cpu_vulnerabilities state (default: disabled).
2024/02/18 15:25:20 I! collector.cpufreq state (default: disabled).
2024/02/18 15:25:20 I! collector.crontab state (default: disabled).
2024/02/18 15:25:20 I! collector.diskstats state (default: disabled).
2024/02/18 15:25:20 I! collector.dmi state (default: disabled).
2024/02/18 15:25:20 I! collector.drbd state (default: disabled).
2024/02/18 15:25:20 I! collector.drm state (default: disabled).
2024/02/18 15:25:20 I! collector.edac state (default: disabled).
2024/02/18 15:25:20 I! collector.entropy state (default: disabled).
2024/02/18 15:25:20 I! collector.ethtool state (default: disabled).
2024/02/18 15:25:20 I! collector.fibrechannel state (default: disabled).
2024/02/18 15:25:20 I! collector.filenotify state (default: enabled).
2024/02/18 15:25:20 I! collector.filefd state (default: disabled).
2024/02/18 15:25:20 I! collector.filesystem state (default: disabled).
2024/02/18 15:25:20 I! collector.hwmon state (default: disabled).
2024/02/18 15:25:20 I! collector.infiniband state (default: disabled).
2024/02/18 15:25:20 I! collector.interrupts state (default: disabled).
2024/02/18 15:25:20 I! collector.ipvs state (default: disabled).
2024/02/18 15:25:20 I! collector.ksmd state (default: disabled).
2024/02/18 15:25:20 I! collector.lnstat state (default: disabled).
2024/02/18 15:25:20 I! collector.loadavg state (default: disabled).
2024/02/18 15:25:20 I! collector.logind state (default: disabled).
2024/02/18 15:25:20 I! collector.mdadm state (default: disabled).
2024/02/18 15:25:20 I! collector.meminfo state (default: disabled).
2024/02/18 15:25:20 I! collector.meminfo_numa state (default: disabled).
2024/02/18 15:25:20 I! collector.mountstats state (default: disabled).
2024/02/18 15:25:20 I! collector.netclass state (default: disabled).
2024/02/18 15:25:20 I! collector.netdev state (default: disabled).
2024/02/18 15:25:20 I! collector.netstat state (default: disabled).
2024/02/18 15:25:20 I! collector.network_route state (default: disabled).
2024/02/18 15:25:20 I! collector.nfs state (default: disabled).
2024/02/18 15:25:20 I! collector.nfsd state (default: disabled).
2024/02/18 15:25:20 I! collector.ntp state (default: disabled).
2024/02/18 15:25:20 I! collector.nvme state (default: disabled).
2024/02/18 15:25:20 I! collector.os state (default: disabled).
2024/02/18 15:25:20 I! collector.perf state (default: disabled).
2024/02/18 15:25:20 I! collector.powersupplyclass state (default: disabled).
2024/02/18 15:25:20 I! collector.pressure state (default: disabled).
2024/02/18 15:25:20 I! collector.processes state (default: disabled).
2024/02/18 15:25:20 I! collector.qdisc state (default: disabled).
2024/02/18 15:25:20 I! collector.rapl state (default: disabled).
2024/02/18 15:25:20 I! collector.runit state (default: disabled).
2024/02/18 15:25:20 I! collector.schedstat state (default: disabled).
2024/02/18 15:25:20 I! collector.selinux state (default: disabled).
2024/02/18 15:25:20 I! collector.slabinfo state (default: disabled).
2024/02/18 15:25:20 I! collector.sockstat state (default: disabled).
2024/02/18 15:25:20 I! collector.softirqs state (default: disabled).
2024/02/18 15:25:20 I! collector.softnet state (default: disabled).
2024/02/18 15:25:20 I! collector.stat state (default: disabled).
2024/02/18 15:25:20 I! collector.supervisord state (default: disabled).
2024/02/18 15:25:20 I! collector.sysctl state (default: disabled).
2024/02/18 15:25:20 I! collector.systemd state (default: disabled).
2024/02/18 15:25:20 I! collector.tapestats state (default: disabled).
2024/02/18 15:25:20 I! collector.tcpstat state (default: disabled).
2024/02/18 15:25:20 I! collector.textfile state (default: disabled).
2024/02/18 15:25:20 I! collector.thermal_zone state (default: disabled).
2024/02/18 15:25:20 I! collector.time state (default: disabled).
2024/02/18 15:25:20 I! collector.timex state (default: disabled).
2024/02/18 15:25:20 I! collector.udp_queues state (default: disabled).
2024/02/18 15:25:20 I! collector.uname state (default: disabled).
2024/02/18 15:25:20 I! collector.vmstat state (default: disabled).
2024/02/18 15:25:20 I! collector.wifi state (default: disabled).
2024/02/18 15:25:20 I! collector.xfrm state (default: disabled).
2024/02/18 15:25:20 I! collector.xfs state (default: disabled).
2024/02/18 15:25:20 I! collector.zfs state (default: disabled).
2024/02/18 15:25:20 I! collector.zoneinfo state (default: disabled).
2024/02/18 15:25:20 I! tracing disabled
2024/02/18 15:25:20 main.go:148: I! runner.binarydir: /opt/categraf
2024/02/18 15:25:20 main.go:149: I! runner.hostname: Nightingale
2024/02/18 15:25:20 main.go:150: I! runner.fd_limits: (soft=1048576, hard=1048576)
2024/02/18 15:25:20 main.go:151: I! runner.vm_limits: (soft=unlimited, hard=unlimited)
2024/02/18 15:25:20 provider_manager.go:60: I! use input provider: [local]
2024/02/18 15:25:20 traces_agent.go:19: I! traces agent disabled!
2024/02/18 15:25:20 prometheus_agent.go:19: I! prometheus scraping disabled!
2024/02/18 15:25:20 ibex_agent.go:19: I! ibex agent disabled!
from categraf.
检查下conf目录下是否有 input.net/net.toml
from categraf.
用 0.3.48 跑的结果
root@Nightingale:/opt/categraf# ./categraf --test --inputs net
2024/02/18 15:35:16 I! tracing disabled
2024/02/18 15:35:16 main.go:148: I! runner.binarydir: /opt/categraf
2024/02/18 15:35:16 main.go:149: I! runner.hostname: Nightingale
2024/02/18 15:35:16 main.go:150: I! runner.fd_limits: (soft=1048576, hard=1048576)
2024/02/18 15:35:16 main.go:151: I! runner.vm_limits: (soft=unlimited, hard=unlimited)
2024/02/18 15:35:16 provider_manager.go:60: I! use input provider: [local]
2024/02/18 15:35:16 traces_agent.go:19: I! traces agent disabled!
2024/02/18 15:35:16 prometheus_agent.go:19: I! prometheus scraping disabled!
2024/02/18 15:35:16 ibex_agent.go:19: I! ibex agent disabled!
2024/02/18 15:35:16 agent.go:39: I! agent starting
2024/02/18 15:35:16 metrics_agent.go:310: I! input: local.net started
2024/02/18 15:35:16 agent.go:47: I! [*agent.MetricsAgent] started
2024/02/18 15:35:16 agent.go:50: I! agent started
15:35:16 net_err_in agent_hostname=Nightingale interface=ens18 0
15:35:16 net_err_out agent_hostname=Nightingale interface=ens18 0
15:35:16 net_drop_out agent_hostname=Nightingale interface=ens18 0
15:35:16 net_bytes_sent agent_hostname=Nightingale interface=ens18 11725589538
15:35:16 net_packets_recv agent_hostname=Nightingale interface=ens18 371105890
15:35:16 net_bits_recv agent_hostname=Nightingale interface=ens18 6459360734200
15:35:16 net_packets_sent agent_hostname=Nightingale interface=ens18 87944484
15:35:16 net_drop_in agent_hostname=Nightingale interface=ens18 0
15:35:16 net_bits_sent agent_hostname=Nightingale interface=ens18 93804716304
15:35:16 net_bytes_recv agent_hostname=Nightingale interface=ens18 807420091775
15:35:16 net_bytes_sent agent_hostname=Nightingale interface=ens19 1871020
15:35:16 net_bits_sent agent_hostname=Nightingale interface=ens19 14968160
15:35:16 net_bytes_recv agent_hostname=Nightingale interface=ens19 20524367
15:35:16 net_bits_recv agent_hostname=Nightingale interface=ens19 164194936
15:35:16 net_packets_recv agent_hostname=Nightingale interface=ens19 267246
15:35:16 net_err_in agent_hostname=Nightingale interface=ens19 0
15:35:16 net_drop_out agent_hostname=Nightingale interface=ens19 0
15:35:16 net_packets_sent agent_hostname=Nightingale interface=ens19 43290
15:35:16 net_err_out agent_hostname=Nightingale interface=ens19 0
15:35:16 net_drop_in agent_hostname=Nightingale interface=ens19 0
^C2024/02/18 15:35:18 main.go:130: I! received signal: interrupt
2024/02/18 15:35:18 agent.go:54: I! agent stopping
2024/02/18 15:35:18 agent.go:62: I! [*agent.MetricsAgent] stopped
2024/02/18 15:35:18 agent.go:65: I! agent stopped
2024/02/18 15:35:18 main.go:143: I! exited
from categraf.
net.toml , 原始文件,没有编辑过
root@Nightingale:/opt/categraf/conf/input.net# cat net.toml
# # collect interval
# interval = 15
# # whether collect protocol stats on Linux
# collect_protocol_stats = false
# # setting interfaces will tell categraf to gather these explicit interfaces
# interfaces = ["eth0"]root@Nightingale:/opt/categraf/conf/input.net#
root@Nightingale:/opt/categraf/conf/input.net#
from categraf.
用 0.3.48 跑的结果
root@Nightingale:/opt/categraf# ./categraf --test --inputs net 2024/02/18 15:35:16 I! tracing disabled 2024/02/18 15:35:16 main.go:148: I! runner.binarydir: /opt/categraf 2024/02/18 15:35:16 main.go:149: I! runner.hostname: Nightingale 2024/02/18 15:35:16 main.go:150: I! runner.fd_limits: (soft=1048576, hard=1048576) 2024/02/18 15:35:16 main.go:151: I! runner.vm_limits: (soft=unlimited, hard=unlimited) 2024/02/18 15:35:16 provider_manager.go:60: I! use input provider: [local] 2024/02/18 15:35:16 traces_agent.go:19: I! traces agent disabled! 2024/02/18 15:35:16 prometheus_agent.go:19: I! prometheus scraping disabled! 2024/02/18 15:35:16 ibex_agent.go:19: I! ibex agent disabled! 2024/02/18 15:35:16 agent.go:39: I! agent starting 2024/02/18 15:35:16 metrics_agent.go:310: I! input: local.net started 2024/02/18 15:35:16 agent.go:47: I! [*agent.MetricsAgent] started 2024/02/18 15:35:16 agent.go:50: I! agent started 15:35:16 net_err_in agent_hostname=Nightingale interface=ens18 0 15:35:16 net_err_out agent_hostname=Nightingale interface=ens18 0 15:35:16 net_drop_out agent_hostname=Nightingale interface=ens18 0 15:35:16 net_bytes_sent agent_hostname=Nightingale interface=ens18 11725589538 15:35:16 net_packets_recv agent_hostname=Nightingale interface=ens18 371105890 15:35:16 net_bits_recv agent_hostname=Nightingale interface=ens18 6459360734200 15:35:16 net_packets_sent agent_hostname=Nightingale interface=ens18 87944484 15:35:16 net_drop_in agent_hostname=Nightingale interface=ens18 0 15:35:16 net_bits_sent agent_hostname=Nightingale interface=ens18 93804716304 15:35:16 net_bytes_recv agent_hostname=Nightingale interface=ens18 807420091775 15:35:16 net_bytes_sent agent_hostname=Nightingale interface=ens19 1871020 15:35:16 net_bits_sent agent_hostname=Nightingale interface=ens19 14968160 15:35:16 net_bytes_recv agent_hostname=Nightingale interface=ens19 20524367 15:35:16 net_bits_recv agent_hostname=Nightingale interface=ens19 164194936 15:35:16 net_packets_recv agent_hostname=Nightingale interface=ens19 267246 15:35:16 net_err_in agent_hostname=Nightingale interface=ens19 0 15:35:16 net_drop_out agent_hostname=Nightingale interface=ens19 0 15:35:16 net_packets_sent agent_hostname=Nightingale interface=ens19 43290 15:35:16 net_err_out agent_hostname=Nightingale interface=ens19 0 15:35:16 net_drop_in agent_hostname=Nightingale interface=ens19 0 ^C2024/02/18 15:35:18 main.go:130: I! received signal: interrupt 2024/02/18 15:35:18 agent.go:54: I! agent stopping 2024/02/18 15:35:18 agent.go:62: I! [*agent.MetricsAgent] stopped 2024/02/18 15:35:18 agent.go:65: I! agent stopped 2024/02/18 15:35:18 main.go:143: I! exited
像是被disable了,我看看
from categraf.
![image](https://private-user-images.githubusercontent.com/12164762/305698317-6b9c3c20-7c1e-4b23-90f2-add9531c6de5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyMjkzMjcsIm5iZiI6MTcyMzIyOTAyNywicGF0aCI6Ii8xMjE2NDc2Mi8zMDU2OTgzMTctNmI5YzNjMjAtN2MxZS00YjIzLTkwZjItYWRkOTUzMWM2ZGU1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDE4NDM0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJmZmVmMGViNmM4YTIxYWMwMTJjMzJjYWMxNDk1MjAxODE1NGE2Mzk5MDUzNTA5YjBhYTJmOWI4ZDMxNDdjMDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OKbMEY62BKXqi_q5g-hEIvz-ZTsqh0YNMDaBaZ4PpsY)
我从release页面下载没有发现问题 , 检查下你的版本,./categraf --version
from categraf.
这里显示有版本信息吧
from categraf.
那看不出来啥问题了,我从release页面下载v0.3.49,直接跑就没问题
from categraf.
label中的version可以手工指定,用命令./categraf --version 2>/dev/null 最准确, 非release页面下载的不保修
from categraf.
#787 疑似引入了一个bug
from categraf.
问题已修复,用v0.3.50版本 。 修复 #787引入的bug, #799
from categraf.
OK,明天去试一下。
from categraf.
Related Issues (20)
- categraf中redis自定义命令采集如何写 HOT 7
- input.snmp获取不到数据收否可以默认置为0? HOT 1
- categraf 的 input.zookeeper 插件是对端口进行探活吗? HOT 2
- kafka插件只有3个指标,什么情况,giegie
- iptables input.iptables panic: runtime error: invalid memory address or nil pointer dereference HOT 1
- 使用categraf采集SNMP数据,遇到string类型的数据会提示没有信息获取 HOT 6
- categraf中的net_response和http_response插件获取的code值能否调整一下 HOT 2
- 没有docker 容器监控的 系统内置模板么 HOT 1
- input.netstat_filter 端口监控,80端口偶尔误报 HOT 1
- Categraf-v0.3.60 采集日志文件无法达到采集上限 HOT 3
- categraf的ibex的设计请教 HOT 2
- 使用--intall安装 systemctl 日志输出问题 HOT 1
- 希望增加vsphere插件中的ESXi主机存活检测 HOT 4
- categraf是否可以增加windows执行powerShell脚本的支持? HOT 4
- postgre 监控采集up指标异常 HOT 1
- categraf在windows执行脚本,当meta/{id}/stdout文件 有中文的时候,会报错 HOT 8
- 夜莺怎么设置GPU的告警呀?很着急,window 使用了categraf 的dcgm插件 启动categraf 却说 dcgm not support HOT 4
- 关于日志采集存储 HOT 3
- 日志采集未按照预期 HOT 2
- categraf输出到promethues的数据时间不对 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from categraf.