项目作者: eservicesgreece

项目描述 :
Tools for statistic acquisition from services (nginx, php-fpm, bind) for cacti
高级语言: Go
项目地址: git://github.com/eservicesgreece/cacti-go-tools.git
创建时间: 2017-04-03T10:08:27Z
项目社区:https://github.com/eservicesgreece/cacti-go-tools

开源协议:GNU General Public License v2.0

下载


cacti-go-tools

Tools for statistic acquisition from services for cacti

You can find information on setup in the wiki

OS & Arch Support

  • Linux - amd64, 386, arm, arm64, mips, mipsle, ppc64, ppc64le, s390x
  • Windows - 386, amd64
  • OS X - 386, amd64
  • Dragonfly - amd64
  • FreeBSD - 386, amd64, arm
  • NetBSD - 386, amd64, arm
  • openBSD - 386, amd64
  • Solaris - amd64

Build

In most cases this is enough to build:

  1. go get github.com/eservicesgreece/cacti-go-tools

If you would like to build all supported platforms you can use the build.bat and build.sh from here build.bat, it expects a properly setup go environment and upx to be in the path.

Usage

  1. usage: cacti-go-tools.exe [<flags>] <command> [<args> ...]
  2. Flags:
  3. -h, --help Show context-sensitive help (also try --help-long and
  4. --help-man).
  5. -v, --version Show application version.
  6. Commands:
  7. help [<command>...]
  8. Show help.
  9. config
  10. Show Configuration
  11. engine <enginetype> [<engine options>]
  12. Acquisition Engine
  13. test nginx <host>
  14. Test SNMP Acquisition
  15. install [<flags>] [<config>] [<binary>]
  16. Install cacti-go-tools

Configuration

The tool retrieves its configuration from the cacti-go-tools.json file, in normal operation you will not need to pass any other parameters other than which engine you want it to use.

Installation

Testing the Setup

You can always test if your setup is working by invocking the tool directly from the command line, to test if your nginx setup is working you would execute:

  1. cacti-go-tools engine nginx

This should show something similar to this:

  1. 1
  2. 181
  3. 181
  4. 172
  5. 0
  6. 1
  7. 0

In case there is an error the tool will pass that error directly to the result, for http errors you will receive http/{http status code}
Error Example:
http/403 Forbidden