GithubHelp home page GithubHelp logo

mistshi / windows-agent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from autohomeradar/windows-agent

0.0 3.0 0.0 20 KB

Windows agent of Open-Falcon Monitor System

License: Apache License 2.0

Python 100.00%

windows-agent's Introduction

Windows-Agent

Windows agent of Open-Falcon Monitor System

Features

  • Basic data collection
  • IIS data collection
  • SQLserver data colecttion
  • HTTP api to push
  • Run as window backgroud service

Provide in Future

  • Plugin schedule
  • Memory cache

Requirements

  • pypiwin32
  • wmi
  • flask
  • psutil
  • winstats

Installation

git clone https://github.com/AutohomeRadar/Windows-Agent
cd Windows-Agent
pip install -r requirements.txt
python agent install
python agent start

Configuration

Edit the cfg.json file. You can copy it from cfg.json.example. The meaning of each key are as follow

Basic config

key type descript
debug bool whether in debug mode or not
hostname string the same as OpenFalcon Linux agent
ip string ip address
heartbeat dict details in the later of this file
transfer dict details in the later of this file
http dict details in the later of this file
collector dict details in the later of this file
ignore array the metrics you wanna ignore

Heartbeat config

key type descript
enabled bool whether enable send heartbeat to hbs
addr string ip adrress of hbs
interval int intervals between two heartbeat report
timeout int timeout

Transfer config

key type descript
enabled bool whether enable send data to transfer
addr dict of string ip adrresses of all transfer
interval int intervals between two heartbeat report
timeout int timeout

Http config

key type descript
enabled bool whether enable http api
listen string the port server listened on

Usage

Install the agent to register it to Service and Registry

python agent install

Start the agent

python agent start

Stop the agent

python agent stop

Remove service

python agent remove

Deployment

You can deploy manually

python agent.py install
python agent.py start

Update is similar to installation. But don't forget to stop the old installations at first and than install the new version.

python agent.py stop
## Unzip and replace all files with new version
python agent.py install
python agent.py start

Or You can deploy using puppet

Developing and Contributing

You're highly encouraged to participate in the development. Please submit Issues and Pull Requests with pleasure.

Support and Community

QQ Group

You could join our official Open Source QQ Group 452994151. What's more, you could join Open-Falcon QQ Group,we are also there.

Mail

You can contact us by [email protected].

Bug Track

If you have any suggestions, bug reports, or annoyances please report them to our issue tracker at https://github.com/AutohomeRadar/Windows-Agent/issues.

Wiki

https://github.com/AutohomeRadar/Windows-Agent/wiki

Blog

The official blog of our team http://autohomeops.corpautohome.com

License

This software is licensed under the Apache License. See the LICENSE file in the top distribution directory for the full license text.

windows-agent's People

Contributors

jackywu avatar ninjadq avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.