GithubHelp home page GithubHelp logo

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

Stargazers

duty avatar Lindsay Deibert avatar  avatar Niko Lee avatar RBPi avatar Clavin avatar zhangfeng avatar  avatar  avatar  avatar 杨刚 avatar  avatar Jerry Yang avatar  avatar  avatar hpxl avatar focus.li avatar  avatar Mick Han avatar itfarmer avatar 唐禹 avatar KaneZ Bro.Hammer avatar charlie avatar fengde avatar Chris Goes avatar PeliHa avatar Carlos avatar  avatar  avatar  avatar 红枫 avatar  avatar  avatar  avatar young-public avatar  avatar ChangTai LIANG avatar Victor Li avatar  avatar  avatar lgs3137 avatar dTap avatar  avatar  avatar newliver avatar semsevens avatar Jailman avatar  avatar itxx00 avatar  avatar DeanWu avatar  avatar  avatar Vicla avatar

Watchers

 avatar James Cloos avatar  avatar Song Chang avatar space avatar ZHOU YAOYONG avatar  avatar  avatar DeanWu avatar  avatar

windows-agent's Issues

http server 500 error

I push the obj to http://127.0.0.1:1988/v1/push

curl -X POST -d '[{"metric": "qps", "endpoint": "open-falcon-graph01.bj", "timestamp": 1431347802, "step": 60,"value": 9,"counterType": "GAUGE","tags": "project=falcon,module=graph"}]' http://127.0.0.1:1988/v1/push

but return 500 error code

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   457  100   291  100   166  19400  11066 --:--:-- --:--:-- --:--:-- 19400<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.</p>

system windows xp / server 2003
python 2.7.14
Special
python module psutil==3.4.2 ( The latest version can run xp /2003)

You python Windows-Agent is last agent can run on xp / server2003 .
Can you help me ?

can't start the agent service

install pass:
D:\Program Files\Open-falcon>python agent.py install
Installing service OpenFalconAgent
Service installed

can 't startup the agent service:
D:\Program Files\Open-falcon>python agent.py start
Starting service OpenFalconAgent
Error starting service: 服务没有及时响应启动或控制请求。

python2.7 安装agent出现ImportError: No module named guppy

C:\Windows-Agent-master>python agent.py install
Traceback (most recent call last):
File "agent.py", line 14, in
from utils.threads import (APIThread, BasicCollectThread, IISCollectThread,
File "C:\Windows-Agent-master\utils\threads.py", line 4, in
from api.http import app
File "C:\Windows-Agent-master\api\http.py", line 5, in
from guppy import hpy
ImportError: No module named guppy

C:\Windows-Agent-master>

service

启动命令执行完成,但实际服务没有开起来,请问是什么原因?
image

image

Python could not import the service's module

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.