Watchy 分布式监控系统

程序名称:Watchy

授权协议: MIT

操作系统: Linux

开发语言: Python

Watchy 介绍

Watchy 是一个分布式的系统,用于监控应用程序和服务器。该系统非常简单和易于管理。Watchy 提供一个分布式的架构和每个服务器之间守护进程的通讯,通过
UDP 获取不同服务器上的数据并在同一个面板上显示

工作原理

Watchy 使用应用/事件驱动模型,如下图所示:

而且整个系统是脚本化的,可通过 Python 或者 C/C++ 来进行操作。但首先要启动服务器:

$ /usr/local/bin/watchy.py --help
Usage: watchy.py [options]Options:
  -h, --help            show this help message and exit
  -v, --version         Print version
  -c CONfig, --config=CONfig
                        Config file location
  -F, --fork            Fork as daemon

然后通过下列命令运行服务器

$ /usr/local/bin/watchy.py -c /etc/watchy/example-watchy.cfg 
WATCHY INFO - Starting StatsAggregator on 0.0.0.0:7878
WATCHY INFO - Starting Async Backend handler
WATCHY INFO - WsgiServer:[gevent] starting http://0.0.0.0:8787/
...

现在可以启动监控成员

>>> import pywatchy
# hostname and port of watchy server
>>> daemon = pywatchy.WatchyDaemon ('localhost', 7878) 
# Creates or attaches to existing daemon on the server                                                                                                                                                              
>>> daemon.watchHost ('hostname')
# tell the daemon to watch the host server for statistics and post under specified key ('hostname')

启动和停止进程:

>>> daemon.watchPid ('watchyserver', 14293) # watch the python web app
>>> daemon.postMessage ('test', 'Hello World')
>>> daemon.stopWatchPid (14293) # stop watching in

这些操作都是实时而动态的.

Watchy 官网

http://redbrain.github.io/watchy/

相关编程语言

IPTraf是一个使用简单的网络状况监视工具。
所谓 rootkit ,是一类入侵者经常使用的工具。这类工...
系统管理员可以利用Health Monitor 去监控网络中的每...
当服务器遭到黑客攻击时,在多数情况下,黑客可能对...
Hobbit是一个基于WEB用于监视系统运行状态和网络信息...
MX4J是Java管理扩展技术的一个开源实现,支持JSR3 (...