Closed TotalAnnihilation closed 1 week ago
报错是因为 categraf 采集本来就带有 ident 标签来标识 categraf 所在的机器的标识,你可以修改 categraf 的config.toml,把忽略 hostname 的那个配置设置为 true。
另外,商业版本有专门的网络设备管理。开源版本的话,非常不建议交换机的agent_host_tag设置为 ident,机器列表本来就是给机器用的,不是给交换机用的,交换机还是建议使用标签做分类管理。
如果还有疑问可以到 github.com/flashcatcloud/categraf 提 issue 哈
报错是因为 categraf 采集本来就带有 ident 标签来标识 categraf 所在的机器的标识,你可以修改 categraf 的config.toml,把忽略 hostname 的那个配置设置为 true。
另外,商业版本有专门的网络设备管理。开源版本的话,非常不建议交换机的agent_host_tag设置为 ident,机器列表本来就是给机器用的,不是给交换机用的,交换机还是建议使用标签做分类管理。
如果还有疑问可以到 github.com/flashcatcloud/categraf 提 issue 哈
谢谢解答。不过如果使用标签的话无法区分业务组,交换机不是一个人在管,所以希望用业务组分发给不同的人。
Your config.toml
Relevant logs
System info
CentOS Linux release 7.9.2009 (Core)
Steps to reproduce
categraf使用snmp协议采集交换机,如果将字段agent_host_tag = "ident",夜莺报错。 注释掉这个字段则可以正常采集,但是ident是虚拟机的ip,非交换机的ip,难以用业务组进行管理
Expected behavior
无
Actual behavior
无
Additional info
No response