kc32668287 2022-10-17 18:15 采纳率: 28.3%
浏览 77
已结题

prometheus监控cisco交换机的问题1

prometheus监控cisco交换机的问题1
参照 https://www.cnblogs.com/dgp-zjz/p/16199804.html
配置prometheus监控思科的3750G交换机
做 到
5、获取snmp-exporter源码包,包括generator源码包。
go get github.com/prometheus/snmp_exporter/generator
的时候报错了

img


generator 根本没下载下来,求指导,谢谢!

  • 写回答

2条回答 默认 最新

  • 游一游走一走 2022-10-17 19:11
    关注

    pleae use go1.17,because the project use go1.17

    yum install gcc gcc-g++ make net-snmp net-snmp-utils net-snmp-libs net-snmp-devel
    go env -w GOPROXY=https://goproxy.cn,direct
    go install github.com/prometheus/snmp_exporter/generator@latest
    cd ${GOPATH}/pkg/mod/github.com/prometheus/snmp_exporter@v0.20.0/generator
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 10月26日
  • 已采纳回答 10月18日
  • 创建了问题 10月17日