Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input.ping 配置文件中有500台机器,就会出现ping失败,但实际机器是可以ping通的 #1101

Open
lyujinxiang opened this issue Dec 5, 2024 · 6 comments

Comments

@lyujinxiang
Copy link

Relevant config.toml

null

Logs from categraf

[[instances]]
targets = ["10.28.66.1"]

[instances.labels]
bmc_ip = "10.28.64.1"
os_type = "windows"


[[instances]]
targets = ["10.28.66.2"]

[instances.labels]
bmc_ip = "10.28.64.2"
os_type = "windows"
.
.
.
500

System info

ubuntu22.04.3

Docker

No response

Steps to reproduce

...

Expected behavior

categraf ping检测是不通的,实际机器都是通,

Actual behavior

image

Additional info

No response

@kongfei605
Copy link
Collaborator

config.toml 中有个配置,可以调整试试
image

如果想保持跟系统ping一致, input.ping 的配置中有个method="exec" ,会调用系统ping命令进行探测

@lyujinxiang
Copy link
Author

image
image
不起作用,还有会有ping 失败的数据,实际机器是可以ping 通的,

@UlricQin
Copy link
Contributor

这估计得抓包看看

@xmlgrg
Copy link

xmlgrg commented Dec 24, 2024

为啥不这样设置呢
[[instances]]

send ping packets to

targets = [
"www.baidu.com",
"127.0.0.1",
"10.4.5.6",
"10.4.5.7"
"172.16.180.68",
"172.16.180.21",
"172.16.180.24",
...........
]

@kongfei605
Copy link
Collaborator

image image 不起作用,还有会有ping 失败的数据,实际机器是可以ping 通的,

这个配置不对, concurrency是config.toml 的 method="exec" 是放到[[instances]]下的

@lyujinxiang
Copy link
Author

@kongfei605 好的,我试试改下配置,
@xmlgrg 我们给每个 业务ip 加了bmc 的 ip标签,报警后,可以通过 bmc 自动重启机器

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants