Skip to content

A full featured Generic SNMP data collector with Web Administration Interface for InfluxDB

License

Notifications You must be signed in to change notification settings

voiprodrigo/snmpcollector

This branch is 175 commits behind toni-moreno/snmpcollector:master.

Folders and files

NameName
Last commit message
Last commit date
Jun 26, 2017
Sep 23, 2017
May 1, 2017
Apr 29, 2017
Dec 21, 2016
Jun 8, 2016
Dec 31, 2016
Mar 18, 2018
Feb 26, 2018
Sep 23, 2017
May 1, 2017
Dec 20, 2016
Jan 17, 2018
Mar 5, 2018
Apr 15, 2016
Jan 4, 2018
Jun 10, 2016
Dec 1, 2017
Apr 29, 2017
Dec 21, 2016
Jan 26, 2018
Dec 21, 2016
Jan 25, 2017
Dec 20, 2016

Repository files navigation

SnmpCollector Go Report Card

SnmpCollector is a full featured Generic SNMP data collector with Web Administration Interface Open Source tool which has as main goal simplify the configuration for getting data from any device witch snmp protocol support and send resulting data to an influxdb backend.

For complete information on installation from binary package and configuration you could read the snmpcollector wiki.

If you wish to compile from source code you can follow the next steps

Run from master

If you want to build a package yourself, or contribute. Here is a guide for how to do that.

Dependencies

  • Go 1.5
  • NodeJS >=6.2.1

Get Code

go get -d github.com/toni-moreno/snmpcollector/...

Building the backend

cd $GOPATH/src/github.com/toni-moreno/snmpcollector
go run build.go setup            # only needed once to install godep
godep restore                    # will pull down all golang lib dependencies in your current GOPATH

Building frontend and backend in production mode

npm install
PATH=$(npm bin):$PATH            # or export PATH=$(npm bin):$PATH depending on your shell
npm run build:prod               # will build fronted and backend

Creating minimal package tar.gz

npm run postbuild #will build fronted and backend

Running first time

To execute without any configuration you need a minimal config.toml file on the conf directory.

cp conf/sample.config.toml conf/config.toml
./bin/snmpcollector

This will create a default user with username adm1 and password adm1pass (don't forget to change them!).

Recompile backend on source change (only for developers)

To rebuild on source change (requires that you executed godep restore)

go get github.com/Unknwon/bra
npm start

will init a change autodetect webserver with angular-cli (ng serve) and also a autodetect and recompile process with bra for the backend

Online config

Now you wil be able to configure metrics/measuremnets and devices from the builting web server at http://localhost:8090 or http://localhost:4200 if working in development mode (npm start)

Offline configuration.

You will be able also insert data directly on the sqlite db that snmpcollector has been created at first execution on config/snmpcollector.db examples on example_config.sql

cat conf/example_config.sql |sqlite3 conf/snmpcollector.db

About

A full featured Generic SNMP data collector with Web Administration Interface for InfluxDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 39.9%
  • TypeScript 38.1%
  • HTML 18.5%
  • CSS 1.7%
  • Shell 1.6%
  • JavaScript 0.2%