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.exec 设置间隔时间长不执行任务的问题 #1075

Open
rayn316 opened this issue Oct 18, 2024 · 1 comment
Open

input.exec 设置间隔时间长不执行任务的问题 #1075

rayn316 opened this issue Oct 18, 2024 · 1 comment

Comments

@rayn316
Copy link

rayn316 commented Oct 18, 2024

Relevant config.toml

cat input.exec/default.toml
# collect interval
interval = 10

# 获取目录大小
[[instances]]
commands = [
"/usr/bin/bash /usr/local/blockpi/node_disk_use.sh"
]
timeout = 60
interval_times = 120
data_format = "prometheus"

Logs from categraf

没有执行日志

System info

v0.3.81-a87cb4ea40fba4a0e4dff9fcfc8b38526c276a80

Docker

No response

Steps to reproduce

  1. 手动执行任务脚本确认执行正常 /usr/bin/bash /usr/local/blockpi/node_disk_use.sh
  2. 设置好exec配置后重启categraf程序
  3. 查询任务执行情况,一直没有执行
    ...

Expected behavior

每隔20分钟执行一次任务

Actual behavior

一直不执行此任务

Additional info

No response

@kongfei605
Copy link
Collaborator

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

2 participants