Skip to content

gaker/snmp-send

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snmp-send

Rather than relying on a central SNMP data collecting server such as Cacti, have each server send the data to InfluxDB.

In order to keep InfluxDB off of the public internet in a cloud environment, a simple collector called fuzz is used to provide rudimentary authorization, and to transform the data into InfluxDB Line Protocol

Prerequisites

  • A Go build env on the target server environment.
  • GoDep

Build

$ mkdir -p $GOPATH/src/github.com/gaker && cd $GOPATH/src/github.com/gaker
$ git clone https://github.com/gaker/snmp-send.git && cd snmp-send
$ godep restore
$ go get github.com/gaker/snmp-send

And the binary will be in your $GOPATH/bin/ directory.

Installation

The binary can now be deployed to any server matching the architecture it was built on, typically as a cron job at whatever interval suits your needs. For instance, as a 1 minute cron job, the following could be set in the crontab.

* * * * * /usr/local/bin/snmp-send -conf=/etc/snmp-send.conf

Configuration file

A config file matching the following should be included on each server the binary will be deployed to.